original_string: protected function getAsset($assetData)
      {
          try {
              $Comet = \CometPHP\Comet::getInstance();
          } catch (\CometPHP\Exceptions\CometNotBooted $e) {
              return null;
          }
  
          if (! is_array($assetData)) {
              $assetData = [$assetData];
          }
  
          $asset = $Comet['template']->getFunction('asset')->call(
              $this->template,
              $assetData
          );
  
          return $asset;
      }
code: protected function getAsset($assetData)
      {
          try {
              $Comet = \CometPHP\Comet::getInstance();
          } catch (\CometPHP\Exceptions\CometNotBooted $e) {
              return null;
          }
  
          if (! is_array($assetData)) {
              $assetData = [$assetData];
          }
  
          $asset = $Comet['template']->getFunction('asset')->call(
              $this->template,
              $assetData
          );
  
          return $asset;
      }
code_tokens: protected function getAsset ( $ assetData ) { try { $ Comet = \ CometPHP \ Comet :: getInstance ( ) ; } catch ( \ CometPHP \ Exceptions \ CometNotBooted $ e ) { return null ; } if ( ! is_array ( $ assetData ) ) { $ assetData = [ $ assetData ] ; } $ asset = $ Comet [ 'template' ] -> getFunction ( 'asset' ) -> call ( $ this -> template , $ assetData ) ; return $ asset ; }
docstring: base function to return assets
  
  @param   mixed   asset path data received from the image method
  @return  string  url to pass to img or css
docstring_tokens: base function to return assets