public function save()
 {
     $aInputFiles = $this->oBatch->getInputFiles();
     $aOutputFiles = PHP_Beautifier_Common::getSavePath($aInputFiles);
     for ($x = 0; $x < count($aInputFiles); $x++) {
         $this->beautifierSetInputFile($aInputFiles[$x]);
         $this->beautifierProcess();
         $this->oTar->addString($aOutputFiles[$x], $this->beautifierGet());
     }
 }
Exemplo n.º 2
0
 public function save()
 {
     $aInputFiles = $this->oBatch->getInputFiles();
     $sOutputPath = $this->oBatch->getOutputPath();
     $aOutputFiles = PHP_Beautifier_Common::getSavePath($aInputFiles, $sOutputPath);
     for ($x = 0; $x < count($aInputFiles); $x++) {
         unset($oTar);
         $oTar = $this->getTar($aOutputFiles[$x]);
         $this->beautifierSetInputFile($aInputFiles[$x]);
         $this->beautifierProcess();
         PHP_Beautifier_Common::createDir($aOutputFiles[$x]);
         $oTar->addString(basename($aOutputFiles[$x]), $this->beautifierGet());
     }
     return true;
 }
Exemplo n.º 3
0
 public function save()
 {
     $aInputFiles = $this->oBatch->getInputFiles();
     $sOutputPath = $this->oBatch->getOutputPath();
     $aOutputFiles = PHP_Beautifier_Common::getSavePath($aInputFiles, $sOutputPath);
     $oLog = PHP_Beautifier_Common::getLog();
     for ($x = 0; $x < count($aInputFiles); $x++) {
         try {
             $this->beautifierSetInputFile($aInputFiles[$x]);
             $this->beautifierProcess();
             PHP_Beautifier_Common::createDir($aOutputFiles[$x]);
             $this->beautifierSave($aOutputFiles[$x]);
         } catch (Exception $oExp) {
             $oLog->log($oExp->getMessage(), PEAR_LOG_ERR);
         }
     }
     return true;
 }