コード例 #1
0
ファイル: Application.php プロジェクト: nochso/phormat
 private function warnXdebug()
 {
     if (ini_get('xdebug.profiler_enabled')) {
         $this->stdio->warn("xdebug and its profiler is enabled. Formatting will be a lot slower.");
     } elseif (extension_loaded('xdebug')) {
         $this->stdio->warn("xdebug is enabled. Formatting would be faster with xdebug disabled.");
     }
     $this->stdio->outln();
 }
コード例 #2
0
ファイル: FormatJob.php プロジェクト: nochso/phormat
 private function showOutput()
 {
     foreach ($this->files as $file) {
         if ($file->hasOutput()) {
             $this->stdio->outln('<<ul>>' . $file->getPath() . '<<reset>>:');
             $this->stdio->outln($file->getOutput());
         }
     }
 }