@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | { |
61 | 61 | $struct = parse_url($url); |
62 | 62 | // @codeCoverageIgnoreStart |
63 | - if (! $struct) { |
|
63 | + if (!$struct) { |
|
64 | 64 | throw new \InvalidArgumentException("$url is not valid URL"); |
65 | 65 | } |
66 | 66 | // @codeCoverageIgnoreEnd |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $this->username = self::setOr($struct, 'user', null); |
73 | 73 | $this->password = self::setOr($struct, 'pass', null); |
74 | 74 | |
75 | - if (! empty($struct['query'])) { |
|
75 | + if (!empty($struct['query'])) { |
|
76 | 76 | parse_str($struct['query'], $this->query); |
77 | 77 | } |
78 | 78 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | { |
68 | 68 | $that = $this; // for PHP5.3 |
69 | 69 | |
70 | - return $this->fetch($origin, $fileUrl, $progress, $options, function ($ch, $request) use ($that, $fileName) { |
|
70 | + return $this->fetch($origin, $fileUrl, $progress, $options, function($ch, $request) use ($that, $fileName) { |
|
71 | 71 | $outputFile = new OutputFile($fileName); |
72 | 72 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); |
73 | 73 | curl_setopt($ch, CURLOPT_FILE, $outputFile->getPointer()); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | $that = $this; // for PHP5.3 |
100 | 100 | |
101 | - return $this->fetch($origin, $fileUrl, $progress, $options, function ($ch, $request) use ($that) { |
|
101 | + return $this->fetch($origin, $fileUrl, $progress, $options, function($ch, $request) use ($that) { |
|
102 | 102 | // This order is important. |
103 | 103 | curl_setopt($ch, CURLOPT_FILE, STDOUT); |
104 | 104 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
@@ -162,6 +162,7 @@ |
||
162 | 162 | |
163 | 163 | /** |
164 | 164 | * @codeCoverageIgnore |
165 | + * @param resource $mh |
|
165 | 166 | */ |
166 | 167 | private function setupShareHandler($mh, array $unused, array $pluginConfig) |
167 | 168 | { |
@@ -22,8 +22,8 @@ |
||
22 | 22 | }); |
23 | 23 | declare(ticks=1) { |
24 | 24 | /** |
25 | - * |
|
26 | - */ |
|
25 | + * |
|
26 | + */ |
|
27 | 27 | class ParallelDownloader |
28 | 28 | { |
29 | 29 | /** @var IO/IOInterface */ |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | use Composer\IO; |
11 | 11 | use Composer\Config as CConfig; |
12 | 12 | |
13 | -register_tick_function(function(){ |
|
13 | +register_tick_function(function() { |
|
14 | 14 | $bt = debug_backtrace(false); |
15 | 15 | if (count($bt) > 1) { |
16 | 16 | array_shift($bt); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | } |
21 | 21 | } |
22 | 22 | }); |
23 | -declare(ticks=1) { |
|
23 | +declare(ticks = 1) { |
|
24 | 24 | /** |
25 | 25 | * |
26 | 26 | */ |
@@ -10,7 +10,7 @@ |
||
10 | 10 | use Composer\IO; |
11 | 11 | use Composer\Config as CConfig; |
12 | 12 | |
13 | -register_tick_function(function(){ |
|
13 | +register_tick_function(function() { |
|
14 | 14 | $bt = debug_backtrace(false); |
15 | 15 | if (count($bt) > 1) { |
16 | 16 | array_shift($bt); |