original_string: protected function resolveContextStrategy($strategy)
      {
          if ( ! $strategy) {
              $strategy = config('cms-models.strategies.repository.default-strategy');
          }
  
          if ( ! ($strategyClass = $this->resolveContextStrategyClass($strategy))) {
              return null;
          }
  
          return app($strategyClass);
      }
code: protected function resolveContextStrategy($strategy)
      {
          if ( ! $strategy) {
              $strategy = config('cms-models.strategies.repository.default-strategy');
          }
  
          if ( ! ($strategyClass = $this->resolveContextStrategyClass($strategy))) {
              return null;
          }
  
          return app($strategyClass);
      }
code_tokens: protected function resolveContextStrategy ( $ strategy ) { if ( ! $ strategy ) { $ strategy = config ( 'cms-models.strategies.repository.default-strategy' ) ; } if ( ! ( $ strategyClass = $ this -> resolveContextStrategyClass ( $ strategy ) ) ) { return null ; } return app ( $ strategyClass ) ; }
docstring: Resolves the context strategy, if possible.
  
  @param $strategy
  @return ContextStrategyInterface|null
docstring_tokens: Resolves the context strategy if possible .