@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | require __DIR__ . '/deploy.php'; |
6 | 6 | |
7 | -task('deploy:update_code', function () { |
|
7 | +task('deploy:update_code', function() { |
|
8 | 8 | upload(__FIXTURES__ . '/project/', '{{release_path}}'); |
9 | 9 | }); |
@@ -5,6 +5,6 @@ |
||
5 | 5 | localhost('prod'); |
6 | 6 | localhost('beta'); |
7 | 7 | |
8 | -task('test_once', function () { |
|
8 | +task('test_once', function() { |
|
9 | 9 | writeln('SHOULD BE ONCE'); |
10 | 10 | })->once(); |
@@ -11,6 +11,6 @@ |
||
11 | 11 | localhost('group_b_2') |
12 | 12 | ->setLabels(['node' => 'anna']); |
13 | 13 | |
14 | -task('test_once_per_node', function () { |
|
14 | +task('test_once_per_node', function() { |
|
15 | 15 | writeln('alias: {{alias}} hostname: {{hostname}}'); |
16 | 16 | })->oncePerNode(); |
@@ -4,19 +4,19 @@ |
||
4 | 4 | |
5 | 5 | localhost(); |
6 | 6 | |
7 | -task('named_arguments', function () { |
|
7 | +task('named_arguments', function() { |
|
8 | 8 | run('echo "Hello, $name!"', env: ['name' => 'world']); |
9 | 9 | }); |
10 | 10 | |
11 | -task('options', function () { |
|
11 | +task('options', function() { |
|
12 | 12 | run('echo "Hello, $name!"', ['env' => ['name' => 'Anton']]); |
13 | 13 | }); |
14 | 14 | |
15 | -task('options_with_named_arguments', function () { |
|
15 | +task('options_with_named_arguments', function() { |
|
16 | 16 | // The `options:` arg has higher priority than named arguments. |
17 | 17 | run('echo "Hello, $name!"', ['env' => ['name' => 'override']], env: ['name' => 'world']); |
18 | 18 | }); |
19 | 19 | |
20 | -task('run_locally_named_arguments', function () { |
|
20 | +task('run_locally_named_arguments', function() { |
|
21 | 21 | runLocally('echo "Hello, $name!"', env: ['name' => 'world']); |
22 | 22 | }); |
@@ -6,7 +6,7 @@ |
||
6 | 6 | if (!headers_sent()) { |
7 | 7 | header('HTTP/1.1 500 Internal Server Error'); |
8 | 8 | } |
9 | - $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; |
|
9 | + $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running ' . PHP_VERSION . ', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.' . PHP_EOL; |
|
10 | 10 | if (!ini_get('display_errors')) { |
11 | 11 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { |
12 | 12 | fwrite(STDERR, $err); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * @param string $constraint the constraint/rule that is broken, e.g.: 'minLength' |
41 | 41 | * @param array $more more array elements to add to the error |
42 | 42 | */ |
43 | - public function addError(?JsonPointer $path, $message, $constraint='', ?array $more = null); |
|
43 | + public function addError(?JsonPointer $path, $message, $constraint = '', ?array $more = null); |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * checks if the validator has not raised errors |
@@ -21,15 +21,15 @@ discard block |
||
21 | 21 | { |
22 | 22 | protected $inlineSchemaProperty = '$schema'; |
23 | 23 | |
24 | - const CHECK_MODE_NONE = 0x00000000; |
|
25 | - const CHECK_MODE_NORMAL = 0x00000001; |
|
26 | - const CHECK_MODE_TYPE_CAST = 0x00000002; |
|
27 | - const CHECK_MODE_COERCE_TYPES = 0x00000004; |
|
28 | - const CHECK_MODE_APPLY_DEFAULTS = 0x00000008; |
|
29 | - const CHECK_MODE_EXCEPTIONS = 0x00000010; |
|
30 | - const CHECK_MODE_DISABLE_FORMAT = 0x00000020; |
|
31 | - const CHECK_MODE_ONLY_REQUIRED_DEFAULTS = 0x00000080; |
|
32 | - const CHECK_MODE_VALIDATE_SCHEMA = 0x00000100; |
|
24 | + const CHECK_MODE_NONE = 0x00000000; |
|
25 | + const CHECK_MODE_NORMAL = 0x00000001; |
|
26 | + const CHECK_MODE_TYPE_CAST = 0x00000002; |
|
27 | + const CHECK_MODE_COERCE_TYPES = 0x00000004; |
|
28 | + const CHECK_MODE_APPLY_DEFAULTS = 0x00000008; |
|
29 | + const CHECK_MODE_EXCEPTIONS = 0x00000010; |
|
30 | + const CHECK_MODE_DISABLE_FORMAT = 0x00000020; |
|
31 | + const CHECK_MODE_ONLY_REQUIRED_DEFAULTS = 0x00000080; |
|
32 | + const CHECK_MODE_VALIDATE_SCHEMA = 0x00000100; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * Bubble down the path |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | protected function convertJsonPointerIntoPropertyPath(JsonPointer $pointer) |
208 | 208 | { |
209 | 209 | $result = array_map( |
210 | - function ($path) { |
|
210 | + function($path) { |
|
211 | 211 | return sprintf(is_numeric($path) ? '[%d]' : '.%s', $path); |
212 | 212 | }, |
213 | 213 | $pointer->getPropertyPaths() |
@@ -38,7 +38,7 @@ |
||
38 | 38 | if (isset($schema->uniqueItems) && $schema->uniqueItems) { |
39 | 39 | $unique = $value; |
40 | 40 | if (is_array($value) && count($value)) { |
41 | - $unique = array_map(function ($e) { |
|
41 | + $unique = array_map(function($e) { |
|
42 | 42 | return var_export($e, true); |
43 | 43 | }, $value); |
44 | 44 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | if ($errors) { |
71 | 71 | $this->errors = array_merge($this->errors, $errors); |
72 | 72 | $errorMask = &$this->errorMask; |
73 | - array_walk($errors, function ($error) use (&$errorMask) { |
|
73 | + array_walk($errors, function($error) use (&$errorMask) { |
|
74 | 74 | if (isset($error['context'])) { |
75 | 75 | $errorMask |= $error['context']; |
76 | 76 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | return $this->errors; |
85 | 85 | } |
86 | 86 | |
87 | - return array_filter($this->errors, function ($error) use ($errorContext) { |
|
87 | + return array_filter($this->errors, function($error) use ($errorContext) { |
|
88 | 88 | if ($errorContext & $error['context']) { |
89 | 89 | return true; |
90 | 90 | } |