@@ -49,7 +49,7 @@ |
||
| 49 | 49 | ], |
| 50 | 50 | 'task' => [ |
| 51 | 51 | 'type' => 'callback', |
| 52 | - 'callback' => function (\Netresearch\Kite\Job $job) { |
|
| 52 | + 'callback' => function(\Netresearch\Kite\Job $job) { |
|
| 53 | 53 | $git = $job->get('git'); |
| 54 | 54 | $command = $job->get('cmd'); |
| 55 | 55 | foreach ($job->get('composer.packages') as $package) { |
@@ -27,9 +27,9 @@ |
||
| 27 | 27 | } |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | -if ((!$loader = includeIfExists(__DIR__.'/vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../autoload.php'))) { |
|
| 31 | - die('You must set up the project dependencies, run the following commands:'.PHP_EOL. |
|
| 32 | - 'curl -s http://getcomposer.org/installer | php'.PHP_EOL. |
|
| 33 | - 'php composer.phar install'.PHP_EOL); |
|
| 30 | +if ((!$loader = includeIfExists(__DIR__ . '/vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__ . '/../../autoload.php'))) { |
|
| 31 | + die('You must set up the project dependencies, run the following commands:' . PHP_EOL . |
|
| 32 | + 'curl -s http://getcomposer.org/installer | php' . PHP_EOL . |
|
| 33 | + 'php composer.phar install' . PHP_EOL); |
|
| 34 | 34 | } |
| 35 | 35 | ?> |
@@ -179,7 +179,7 @@ |
||
| 179 | 179 | } |
| 180 | 180 | } |
| 181 | 181 | } elseif (!is_subclass_of(ltrim($definition, '\\'), 'Netresearch\\Kite\\' . $ucType)) { |
| 182 | - throw new Exception($definition .' must extend Netresearch\\Kite\\' . $ucType); |
|
| 182 | + throw new Exception($definition . ' must extend Netresearch\\Kite\\' . $ucType); |
|
| 183 | 183 | } |
| 184 | 184 | return $definition; |
| 185 | 185 | } |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | parent::run( |
| 151 | - function ($type, $buffer) use ($callback) { |
|
| 151 | + function($type, $buffer) use ($callback) { |
|
| 152 | 152 | if ($callback) { |
| 153 | 153 | call_user_func($callback, $type, $buffer); |
| 154 | 154 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | public function assemble() |
| 58 | 58 | { |
| 59 | 59 | $this->callback( |
| 60 | - function () { |
|
| 60 | + function() { |
|
| 61 | 61 | $scriptPath = $this->createScript(); |
| 62 | 62 | if ($webUrl = $this->get('webUrl')) { |
| 63 | 63 | $this->callScript($webUrl, $scriptPath); |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | public function assemble() |
| 67 | 67 | { |
| 68 | 68 | $this->callback( |
| 69 | - function () { |
|
| 69 | + function() { |
|
| 70 | 70 | $this->checkoutPackages( |
| 71 | 71 | (array) $this->get('branch'), |
| 72 | 72 | $this->get('merge'), |
@@ -272,7 +272,7 @@ |
||
| 272 | 272 | } elseif ($create) { |
| 273 | 273 | $branches = array_unique( |
| 274 | 274 | array_map( |
| 275 | - function ($el) { |
|
| 275 | + function($el) { |
|
| 276 | 276 | $parts = explode('/', $el); |
| 277 | 277 | return array_pop($parts); |
| 278 | 278 | }, |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | public function assemble() |
| 82 | 82 | { |
| 83 | 83 | $this->callback( |
| 84 | - function () { |
|
| 84 | + function() { |
|
| 85 | 85 | $fix = $this->get('fix'); |
| 86 | 86 | $fixes = ($fix === true) ? $this->fixes : (array) $fix; |
| 87 | 87 | $checks = $this->get('check') ?: $this->checks; |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | public function assemble() |
| 78 | 78 | { |
| 79 | 79 | $this->callback( |
| 80 | - function () { |
|
| 80 | + function() { |
|
| 81 | 81 | $mergeBranch = $this->get('branch'); |
| 82 | 82 | $diagnose = !$this->get('no-diagnose'); |
| 83 | 83 | $delete = $this->get('delete', false); |