original_string: protected function getHint()
      {
          // Map a new array with [group => namespace].
          $groups = collect(config('flame'))->mapWithKeys(function ($item, $key) {
              return [$key => $item['namespace']];
          });
  
          //Map a new array only with namespaces.
          $namespaces = $groups->values();
  
          //Get the namespace that longest matches the controller namespace.
          $matchedNamespace = Str::longestMatch($namespaces->toArray(), $this->controllerNamespace());
  
          // Cannot continue if no namespace was found for the View hint.
          if (is_null($matchedNamespace)) {
              throw FlameException::namespaceNotFound($this->controllerNamespace());
          }
  
          return $groups->flip()[$matchedNamespace];
      }
code: protected function getHint()
      {
          // Map a new array with [group => namespace].
          $groups = collect(config('flame'))->mapWithKeys(function ($item, $key) {
              return [$key => $item['namespace']];
          });
  
          //Map a new array only with namespaces.
          $namespaces = $groups->values();
  
          //Get the namespace that longest matches the controller namespace.
          $matchedNamespace = Str::longestMatch($namespaces->toArray(), $this->controllerNamespace());
  
          // Cannot continue if no namespace was found for the View hint.
          if (is_null($matchedNamespace)) {
              throw FlameException::namespaceNotFound($this->controllerNamespace());
          }
  
          return $groups->flip()[$matchedNamespace];
      }
code_tokens: protected function getHint ( ) { // Map a new array with [group => namespace]. $ groups = collect ( config ( 'flame' ) ) -> mapWithKeys ( function ( $ item , $ key ) { return [ $ key => $ item [ 'namespace' ] ] ; } ) ; //Map a new array only with namespaces. $ namespaces = $ groups -> values ( ) ; //Get the namespace that longest matches the controller namespace. $ matchedNamespace = Str :: longestMatch ( $ namespaces -> toArray ( ) , $ this -> controllerNamespace ( ) ) ; // Cannot continue if no namespace was found for the View hint. if ( is_null ( $ matchedNamespace ) ) { throw FlameException :: namespaceNotFound ( $ this -> controllerNamespace ( ) ) ; } return $ groups -> flip ( ) [ $ matchedNamespace ] ; }
docstring: Computes the View hint based in the Controller namespace and the
  Flame configuration.
  
  @throws Laraning\Flame\Exceptions\FlameException
  
  @return string View hint.
docstring_tokens: Computes the View hint based in the Controller namespace and the Flame configuration .