@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | public function __construct(bool $isPhar = false) |
55 | 55 | { |
56 | 56 | if ($isPhar) { |
57 | - $this->longOptions['self-update'] = true; |
|
57 | + $this->longOptions['self-update'] = true; |
|
58 | 58 | $this->longOptions['version-check'] = true; |
59 | 59 | } |
60 | 60 | } |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | public function parseShortOption($arg, array &$options) |
103 | 103 | { |
104 | 104 | if (!isset($this->shortOptions[$arg])) { |
105 | - throw new Exception('unknown option: -' . $arg); |
|
105 | + throw new Exception('unknown option: -'.$arg); |
|
106 | 106 | } |
107 | - $options['-' . $arg] = true; |
|
107 | + $options['-'.$arg] = true; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
@@ -124,17 +124,17 @@ discard block |
||
124 | 124 | $argument = $list[1]; |
125 | 125 | } |
126 | 126 | if (count($list) > 2) { |
127 | - throw new Exception('invalid value for option: --' . $arg); |
|
127 | + throw new Exception('invalid value for option: --'.$arg); |
|
128 | 128 | } |
129 | - if (!isset($this->longOptions[$option]) && !isset($this->longOptions[$option . '='])) { |
|
130 | - throw new Exception('unknown option: --' . $option); |
|
129 | + if (!isset($this->longOptions[$option]) && !isset($this->longOptions[$option.'='])) { |
|
130 | + throw new Exception('unknown option: --'.$option); |
|
131 | 131 | } |
132 | - if ($argument === true && isset($this->longOptions[$option . '='])) { |
|
133 | - throw new Exception('argument required for option: --' . $option); |
|
132 | + if ($argument === true && isset($this->longOptions[$option.'='])) { |
|
133 | + throw new Exception('argument required for option: --'.$option); |
|
134 | 134 | } |
135 | 135 | if ($argument !== true && isset($this->longOptions[$option])) { |
136 | - throw new Exception('needless argument for option: --' . $option); |
|
136 | + throw new Exception('needless argument for option: --'.$option); |
|
137 | 137 | } |
138 | - $options['--' . $option] = $argument; |
|
138 | + $options['--'.$option] = $argument; |
|
139 | 139 | } |
140 | 140 | } |
@@ -9,16 +9,16 @@ |
||
9 | 9 | } else { |
10 | 10 | $branch = @exec('git rev-parse --abbrev-ref HEAD'); |
11 | 11 | $hash = @exec('git log -1 --format="%H"'); |
12 | - echo $branch . '@' . $hash; |
|
12 | + echo $branch.'@'.$hash; |
|
13 | 13 | } |
14 | 14 | echo PHP_EOL; |
15 | 15 | |
16 | -$lock = json_decode(file_get_contents(__DIR__ . '/../composer.lock')); |
|
16 | +$lock = json_decode(file_get_contents(__DIR__.'/../composer.lock')); |
|
17 | 17 | |
18 | 18 | foreach ($lock->packages as $package) { |
19 | - echo $package->name . ': ' . $package->version; |
|
19 | + echo $package->name.': '.$package->version; |
|
20 | 20 | if (!preg_match('/^[v= ]*(([0-9]+)(\\.([0-9]+)(\\.([0-9]+)(-([0-9]+))?(-?([a-zA-Z-+][a-zA-Z0-9\\.\\-:]*)?)?)?)?)$/', $package->version)) { |
21 | - echo '@' . $package->source->reference; |
|
21 | + echo '@'.$package->source->reference; |
|
22 | 22 | } |
23 | 23 | echo PHP_EOL; |
24 | 24 | } |
@@ -216,7 +216,7 @@ |
||
216 | 216 | |
217 | 217 | $tar->addOptionIfNotEmpty('--ignore-failed-read', $this->ignoreFailedRead, false); |
218 | 218 | $tar->addOptionIfNotEmpty('--use-compress-program', $this->compressProgram); |
219 | - $tar->addOption('-' . (empty($this->compressProgram) ? $this->compression : '') . 'cf'); |
|
219 | + $tar->addOption('-'.(empty($this->compressProgram) ? $this->compression : '').'cf'); |
|
220 | 220 | $tar->addArgument($this->tarPathname); |
221 | 221 | $tar->addOption('-C', dirname($this->path), ' '); |
222 | 222 | $tar->addArgument(basename($this->path)); |