Skip to content

Commit

Permalink
Code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Jul 28, 2017
1 parent cfae062 commit 897f8ac
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Boot/Preflight.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ public function prepareConfig($preflightArgs, $environment)
public function run($argv)
{
$status = 0;
try
{
$status = $this->do_run($argv);
try {
$status = $this->doRun($argv);
} catch (\Exception $e) {
$status = $e->getCode();
$message = $e->getMessage();
Expand All @@ -101,7 +100,7 @@ public function run($argv)
return $status;
}

protected function do_run($argv)
protected function doRun($argv)
{
// Fail fast if the PHP version is not at least 5.6.0.
$this->confirmPhpVersion('5.6.0');
Expand Down Expand Up @@ -196,7 +195,7 @@ protected function commandDiscovery()
* Return the search path containing all of the locations where Drush
* commands are found.
*/
function findCommandFileSearchPath($preflightArgs)
protected function findCommandFileSearchPath($preflightArgs)
{
// Start with the built-in commands
$searchpath = [ dirname(__DIR__) ];
Expand Down

0 comments on commit 897f8ac

Please sign in to comment.