original_string: public function make($data = null)
      {
          if (is_null($data)) {
              return new NullResource();
          } elseif (is_array($data)) {
              return static::makeFromArray($data);
          }
  
          $method = static::getMakeMethod($data);
  
          return static::$method($data);
      }
code: public function make($data = null)
      {
          if (is_null($data)) {
              return new NullResource();
          } elseif (is_array($data)) {
              return static::makeFromArray($data);
          }
  
          $method = static::getMakeMethod($data);
  
          return static::$method($data);
      }
code_tokens: public function make ( $ data = null ) { if ( is_null ( $ data ) ) { return new NullResource ( ) ; } elseif ( is_array ( $ data ) ) { return static :: makeFromArray ( $ data ) ; } $ method = static :: getMakeMethod ( $ data ) ; return static :: $ method ( $ data ) ; }
docstring: Build a resource instance from the given data.
  
  @param  mixed|null $data
  @return \League\Fractal\Resource\ResourceInterface
docstring_tokens: Build a resource instance from the given data .