diff --git a/PHPCI/Command/CreateAdminCommand.php b/PHPCI/Command/CreateAdminCommand.php index 6122a108..647dffca 100644 --- a/PHPCI/Command/CreateAdminCommand.php +++ b/PHPCI/Command/CreateAdminCommand.php @@ -46,7 +46,7 @@ class CreateAdminCommand extends Command if (empty($adminEmail)) { return; } - + $adminPass = $this->ask('Admin password: '); $adminName = $this->ask('Admin name: '); @@ -64,7 +64,7 @@ class CreateAdminCommand extends Command } catch (\Exception $ex) { print 'There was a problem creating your account. :(' . PHP_EOL; print $ex->getMessage(); - print PHP_EOL; + print PHP_EOL; } } diff --git a/PHPCI/Command/DaemoniseCommand.php b/PHPCI/Command/DaemoniseCommand.php index 5d2f003a..f8cbc45b 100644 --- a/PHPCI/Command/DaemoniseCommand.php +++ b/PHPCI/Command/DaemoniseCommand.php @@ -36,6 +36,16 @@ class DaemoniseCommand extends Command */ protected $output; + /** + * @var boolean + */ + protected $run; + + /** + * @var int + */ + protected $sleep; + /** * @param \Monolog\Logger $logger * @param string $name @@ -67,14 +77,14 @@ class DaemoniseCommand extends Command $this->sleep = 0; $runner = new RunCommand($this->logger); - $in = new ArgvInput(array()); + $emptyInput = new ArgvInput(array()); while ($this->run) { $buildCount = 0; try { - $buildCount = $runner->run($in, $output); + $buildCount = $runner->run($emptyInput, $output); } catch (\Exception $e) { var_dump($e); } diff --git a/PHPCI/Command/PollCommand.php b/PHPCI/Command/PollCommand.php index 8bbe83cf..503e83a8 100644 --- a/PHPCI/Command/PollCommand.php +++ b/PHPCI/Command/PollCommand.php @@ -80,7 +80,9 @@ class PollCommand extends Command $this->logger->info("Last commit to github for " . $project->getTitle() . " is " . $last_commit); if ($project->getLastCommit() != $last_commit && $last_commit != "") { - $this->logger->info("Last commit is different from database, adding new build for " . $project->getTitle()); + $this->logger->info( + "Last commit is different from database, adding new build for " . $project->getTitle() + ); $build = new Build(); $build->setProjectId($project->getId()); @@ -101,4 +103,3 @@ class PollCommand extends Command $this->logger->addInfo("Finished processing builds"); } } -