original_string: protected function getArgumentPath($withName = false)
      {
          $name = $this->argumentName();
  
          if (str_contains($name, '.')) {
              $name = str_replace('.', '/', $name);
          }
  
          if (str_contains($name, '\\')) {
              $name = str_replace('\\', '/', $name);
          }
  
          // ucfirst char, for correct namespace
          $name = implode('/', array_map('ucfirst', explode('/', $name)));
  
          // if we need to keep lowercase
          if ($this->settingsDirectoryFormat() === 'strtolower') {
              $name = implode('/', array_map('strtolower', explode('/', $name)));
          }
  
          // if we want the path with name
          if ($withName) {
              return $name . '/';
          }
  
          if (str_contains($name, '/')) {
              return substr($name, 0, strripos($name, '/') + 1);
          }
  
          return '';
      }
code: protected function getArgumentPath($withName = false)
      {
          $name = $this->argumentName();
  
          if (str_contains($name, '.')) {
              $name = str_replace('.', '/', $name);
          }
  
          if (str_contains($name, '\\')) {
              $name = str_replace('\\', '/', $name);
          }
  
          // ucfirst char, for correct namespace
          $name = implode('/', array_map('ucfirst', explode('/', $name)));
  
          // if we need to keep lowercase
          if ($this->settingsDirectoryFormat() === 'strtolower') {
              $name = implode('/', array_map('strtolower', explode('/', $name)));
          }
  
          // if we want the path with name
          if ($withName) {
              return $name . '/';
          }
  
          if (str_contains($name, '/')) {
              return substr($name, 0, strripos($name, '/') + 1);
          }
  
          return '';
      }
code_tokens: protected function getArgumentPath ( $ withName = false ) { $ name = $ this -> argumentName ( ) ; if ( str_contains ( $ name , '.' ) ) { $ name = str_replace ( '.' , '/' , $ name ) ; } if ( str_contains ( $ name , '\\' ) ) { $ name = str_replace ( '\\' , '/' , $ name ) ; } // ucfirst char, for correct namespace $ name = implode ( '/' , array_map ( 'ucfirst' , explode ( '/' , $ name ) ) ) ; // if we need to keep lowercase if ( $ this -> settingsDirectoryFormat ( ) === 'strtolower' ) { $ name = implode ( '/' , array_map ( 'strtolower' , explode ( '/' , $ name ) ) ) ; } // if we want the path with name if ( $ withName ) { return $ name . '/' ; } if ( str_contains ( $ name , '/' ) ) { return substr ( $ name , 0 , strripos ( $ name , '/' ) + 1 ) ; } return '' ; }
docstring: Return the path of the file
  
  @param bool $withName
  @return array|mixed|string
docstring_tokens: Return the path of the file