original_string: protected function getPath(): string
      {
          $directory = config('menus.directory');
  
          if (! $directory) {
              throw new DirectoryNotFound('Directory with menu files does not exist.');
          }
  
          $path = $this->file->exists(base_path($directory)) ? base_path($directory) : __DIR__ . '/../resources/menus';
  
          return $path;
      }
code: protected function getPath(): string
      {
          $directory = config('menus.directory');
  
          if (! $directory) {
              throw new DirectoryNotFound('Directory with menu files does not exist.');
          }
  
          $path = $this->file->exists(base_path($directory)) ? base_path($directory) : __DIR__ . '/../resources/menus';
  
          return $path;
      }
code_tokens: protected function getPath ( ) : string { $ directory = config ( 'menus.directory' ) ; if ( ! $ directory ) { throw new DirectoryNotFound ( 'Directory with menu files does not exist.' ) ; } $ path = $ this -> file -> exists ( base_path ( $ directory ) ) ? base_path ( $ directory ) : __DIR__ . '/../resources/menus' ; return $ path ; }
docstring: Get path to the directory with menus files.
docstring_tokens: Get path to the directory with menus files .