original_string: protected function makeFilePath($folder, $name)
      {
          $folder = ltrim($folder, '\/');
          $folder = rtrim($folder, '\/');
  
          $name = ltrim($name, '\/');
          $name = rtrim($name, '\/');
  
          if ($this->packageInfo->get('type') == 'module') {
              return $this->packagesPath .DS .$this->packageInfo->get('basename') .DS .$folder .DS .$name;
          }
  
          return $this->packagesPath .DS .$this->packageInfo->get('basename') .DS .'src' .DS .$folder .DS .$name;
      }
code: protected function makeFilePath($folder, $name)
      {
          $folder = ltrim($folder, '\/');
          $folder = rtrim($folder, '\/');
  
          $name = ltrim($name, '\/');
          $name = rtrim($name, '\/');
  
          if ($this->packageInfo->get('type') == 'module') {
              return $this->packagesPath .DS .$this->packageInfo->get('basename') .DS .$folder .DS .$name;
          }
  
          return $this->packagesPath .DS .$this->packageInfo->get('basename') .DS .'src' .DS .$folder .DS .$name;
      }
code_tokens: protected function makeFilePath ( $ folder , $ name ) { $ folder = ltrim ( $ folder , '\/' ) ; $ folder = rtrim ( $ folder , '\/' ) ; $ name = ltrim ( $ name , '\/' ) ; $ name = rtrim ( $ name , '\/' ) ; if ( $ this -> packageInfo -> get ( 'type' ) == 'module' ) { return $ this -> packagesPath . DS . $ this -> packageInfo -> get ( 'basename' ) . DS . $ folder . DS . $ name ; } return $ this -> packagesPath . DS . $ this -> packageInfo -> get ( 'basename' ) . DS . 'src' . DS . $ folder . DS . $ name ; }
docstring: Make FilePath.
  
  @param string $folder
  @param string $name
  
  @return string
docstring_tokens: Make FilePath .