original_string: protected function guessPolicyName($class)
      {
          if ($this->guessPolicyNamesUsingCallback) {
              return Arr::wrap(call_user_func($this->guessPolicyNamesUsingCallback, $class));
          }
  
          $classDirname = str_replace('/', '\\', dirname(str_replace('\\', '/', $class)));
  
          return [$classDirname.'\\Policies\\'.class_basename($class).'Policy'];
      }
code: protected function guessPolicyName($class)
      {
          if ($this->guessPolicyNamesUsingCallback) {
              return Arr::wrap(call_user_func($this->guessPolicyNamesUsingCallback, $class));
          }
  
          $classDirname = str_replace('/', '\\', dirname(str_replace('\\', '/', $class)));
  
          return [$classDirname.'\\Policies\\'.class_basename($class).'Policy'];
      }
code_tokens: protected function guessPolicyName ( $ class ) { if ( $ this -> guessPolicyNamesUsingCallback ) { return Arr :: wrap ( call_user_func ( $ this -> guessPolicyNamesUsingCallback , $ class ) ) ; } $ classDirname = str_replace ( '/' , '\\' , dirname ( str_replace ( '\\' , '/' , $ class ) ) ) ; return [ $ classDirname . '\\Policies\\' . class_basename ( $ class ) . 'Policy' ] ; }
docstring: Guess the policy name for the given class.
  
  @param  string  $class
  @return array
docstring_tokens: Guess the policy name for the given class .