original_string: protected function parseAssets($assets, $order = 0, $mode = 'default')
      {
          if (is_string($assets) && ! empty($assets)) {
              $assets = array($assets);
          } else if (! is_array($assets)) {
              return array();
          }
  
          return array_map(function ($asset) use ($order, $mode)
          {
              return compact('asset', 'order', 'mode');
  
          }, array_filter($assets, function ($value)
          {
              return ! empty($value);
          }));
      }
code: protected function parseAssets($assets, $order = 0, $mode = 'default')
      {
          if (is_string($assets) && ! empty($assets)) {
              $assets = array($assets);
          } else if (! is_array($assets)) {
              return array();
          }
  
          return array_map(function ($asset) use ($order, $mode)
          {
              return compact('asset', 'order', 'mode');
  
          }, array_filter($assets, function ($value)
          {
              return ! empty($value);
          }));
      }
code_tokens: protected function parseAssets ( $ assets , $ order = 0 , $ mode = 'default' ) { if ( is_string ( $ assets ) && ! empty ( $ assets ) ) { $ assets = array ( $ assets ) ; } else if ( ! is_array ( $ assets ) ) { return array ( ) ; } return array_map ( function ( $ asset ) use ( $ order , $ mode ) { return compact ( 'asset' , 'order' , 'mode' ) ; } , array_filter ( $ assets , function ( $ value ) { return ! empty ( $ value ) ; } ) ) ; }
docstring: Parses and returns the given assets.
  
  @param  string|array $assets
  @param  int $order
  @param  string $mode
  
  @return array
docstring_tokens: Parses and returns the given assets .