original_string: protected function removeModuleDirectory($moduleName)
      {
          $this->files->deleteDirectory($this->getModuleDirectory($moduleName));
          if($this->files->exists($this->getModuleDirectory($moduleName)))
          {
              $this->errors->add('delete_files', 'Unable to delete '.$this->getModuleDirectory($moduleName));
              return false;
          }
          return true;
      }
code: protected function removeModuleDirectory($moduleName)
      {
          $this->files->deleteDirectory($this->getModuleDirectory($moduleName));
          if($this->files->exists($this->getModuleDirectory($moduleName)))
          {
              $this->errors->add('delete_files', 'Unable to delete '.$this->getModuleDirectory($moduleName));
              return false;
          }
          return true;
      }
code_tokens: protected function removeModuleDirectory ( $ moduleName ) { $ this -> files -> deleteDirectory ( $ this -> getModuleDirectory ( $ moduleName ) ) ; if ( $ this -> files -> exists ( $ this -> getModuleDirectory ( $ moduleName ) ) ) { $ this -> errors -> add ( 'delete_files' , 'Unable to delete ' . $ this -> getModuleDirectory ( $ moduleName ) ) ; return false ; } return true ; }
docstring: Remove module directory
  
  @param string $moduleName
  @return bool
docstring_tokens: Remove module directory