original_string: private static function modelInstance(array $ctor = [])
      {
          static $cached;
          if (!isset($cached)) {
              $class = new ReflectionClass(get_called_class());
              $cached = $class->newInstanceArgs($ctor);
          }
          return $cached;
      }
code: private static function modelInstance(array $ctor = [])
      {
          static $cached;
          if (!isset($cached)) {
              $class = new ReflectionClass(get_called_class());
              $cached = $class->newInstanceArgs($ctor);
          }
          return $cached;
      }
code_tokens: private static function modelInstance ( array $ ctor = [ ] ) { static $ cached ; if ( ! isset ( $ cached ) ) { $ class = new ReflectionClass ( get_called_class ( ) ) ; $ cached = $ class -> newInstanceArgs ( $ ctor ) ; } return $ cached ; }
docstring: Internal helper to retrieve a cached, anonymous instance of the actual
  model to work on. Needed to ensure dependencies are properly injected
  etc.
  
  @param array $ctor Optional constructor arguments.
  @return object An instance of the Model being queried.
docstring_tokens: Internal helper to retrieve a cached anonymous instance of the actual model to work on . Needed to ensure dependencies are properly injected etc .