original_string: public function createFolder($parentFolderPath, $folderName)
      {
          $this->throwIfOperationNotInBaseFolder($parentFolderPath);
  
          $folderPath = $parentFolderPath . '/' . $folderName;
  
          $wasCreationSuccessful = mkdir($folderPath, 0777, true);
          if (!$wasCreationSuccessful) {
              throw new IOException("Unable to create folder: $folderPath");
          }
  
          return $folderPath;
      }
code: public function createFolder($parentFolderPath, $folderName)
      {
          $this->throwIfOperationNotInBaseFolder($parentFolderPath);
  
          $folderPath = $parentFolderPath . '/' . $folderName;
  
          $wasCreationSuccessful = mkdir($folderPath, 0777, true);
          if (!$wasCreationSuccessful) {
              throw new IOException("Unable to create folder: $folderPath");
          }
  
          return $folderPath;
      }
code_tokens: public function createFolder ( $ parentFolderPath , $ folderName ) { $ this -> throwIfOperationNotInBaseFolder ( $ parentFolderPath ) ; $ folderPath = $ parentFolderPath . '/' . $ folderName ; $ wasCreationSuccessful = mkdir ( $ folderPath , 0777 , true ) ; if ( ! $ wasCreationSuccessful ) { throw new IOException ( "Unable to create folder: $folderPath" ) ; } return $ folderPath ; }
docstring: Creates an empty folder with the given name under the given parent folder.
  
  @param string $parentFolderPath The parent folder path under which the folder is going to be created
  @param string $folderName The name of the folder to create
  @return string Path of the created folder
  @throws \Box\Spout\Common\Exception\IOException If unable to create the folder or if the folder path is not inside of the base folder
docstring_tokens: Creates an empty folder with the given name under the given parent folder .