original_string: public function buildAssets($moduleName)
      {
          $module = $this->getModuleDirectory($moduleName);
          if ($module)
          {
              $module .= '/assets';
              if ($this->files->exists($module))
              {
                  if (!@$this->files->copyDirectory($module, $this->getAssetDirectory($moduleName)))
                  {
                      $this->errors->add('build_assets', 'Unable to build assets');
                      return false;
                  }
              }
              return true;
          }
          return false;
      }
code: public function buildAssets($moduleName)
      {
          $module = $this->getModuleDirectory($moduleName);
          if ($module)
          {
              $module .= '/assets';
              if ($this->files->exists($module))
              {
                  if (!@$this->files->copyDirectory($module, $this->getAssetDirectory($moduleName)))
                  {
                      $this->errors->add('build_assets', 'Unable to build assets');
                      return false;
                  }
              }
              return true;
          }
          return false;
      }
code_tokens: public function buildAssets ( $ moduleName ) { $ module = $ this -> getModuleDirectory ( $ moduleName ) ; if ( $ module ) { $ module .= '/assets' ; if ( $ this -> files -> exists ( $ module ) ) { if ( ! @ $ this -> files -> copyDirectory ( $ module , $ this -> getAssetDirectory ( $ moduleName ) ) ) { $ this -> errors -> add ( 'build_assets' , 'Unable to build assets' ) ; return false ; } } return true ; } return false ; }
docstring: Move contents assets module to public directory
  
  @param string $moduleName
  @return bool
docstring_tokens: Move contents assets module to public directory