original_string: public function getAssetPath($fileName, $assetPath = null)
      {
          if (starts_with($fileName, ['//', 'http://', 'https://'])) {
              return $fileName;
          }
  
          if (!$assetPath) {
              $assetPath = $this->assetPath;
          }
  
          if (substr($fileName, 0, 1) == '/' || $assetPath === null) {
              return $fileName;
          }
  
          return $assetPath . '/' . $fileName;
      }
code: public function getAssetPath($fileName, $assetPath = null)
      {
          if (starts_with($fileName, ['//', 'http://', 'https://'])) {
              return $fileName;
          }
  
          if (!$assetPath) {
              $assetPath = $this->assetPath;
          }
  
          if (substr($fileName, 0, 1) == '/' || $assetPath === null) {
              return $fileName;
          }
  
          return $assetPath . '/' . $fileName;
      }
code_tokens: public function getAssetPath ( $ fileName , $ assetPath = null ) { if ( starts_with ( $ fileName , [ '//' , 'http://' , 'https://' ] ) ) { return $ fileName ; } if ( ! $ assetPath ) { $ assetPath = $ this -> assetPath ; } if ( substr ( $ fileName , 0 , 1 ) == '/' || $ assetPath === null ) { return $ fileName ; } return $ assetPath . '/' . $ fileName ; }
docstring: Locates a file based on it's definition. If the file starts with
  a forward slash, it will be returned in context of the application public path,
  otherwise it will be returned in context of the asset path.
  @param string $fileName File to load.
  @param string $assetPath Explicitly define an asset path.
  @return string Relative path to the asset file.
docstring_tokens: Locates a file based on it s definition . If the file starts with a forward slash it will be returned in context of the application public path otherwise it will be returned in context of the asset path .