Completed
Push — feature/decoupled ( ef93d4...6a89b6 )
by Webysther
02:32
created
src/Filesystem.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Packagist Mirror.
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     protected function isGzFile(string $file):bool
166 166
     {
167
-        if(substr($this->getGzName($file), -3) == '.gz'){
167
+        if (substr($this->getGzName($file), -3) == '.gz') {
168 168
             return true;
169 169
         }
170 170
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         $path = $this->getGzName($file);
188 188
         $link = $this->getLink($path);
189 189
 
190
-        if($this->hasLink($link)){
190
+        if ($this->hasLink($link)) {
191 191
             return $this;
192 192
         }
193 193
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      */
230 230
     public function move(string $from):Filesystem
231 231
     {
232
-        if(!$this->has($from)){
232
+        if (!$this->has($from)) {
233 233
             return $this;
234 234
         }
235 235
 
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
      */
328 328
     protected function getFullPath(string $path):string
329 329
     {
330
-        if(strpos($path, $this->directory) !== false){
330
+        if (strpos($path, $this->directory) !== false) {
331 331
             return $path;
332 332
         }
333 333
 
Please login to merge, or discard this patch.
src/Http.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the Packagist Mirror.
@@ -150,13 +150,13 @@  discard block
 block discarded – undo
150 150
             $this->connections = $this->maxConnections * $mirrors;
151 151
         }
152 152
 
153
-        $fulfilled = function ($response, $path) use ($success, $complete) {
153
+        $fulfilled = function($response, $path) use ($success, $complete) {
154 154
             $body = (string) $response->getBody();
155 155
             $success($body, $path);
156 156
             $complete();
157 157
         };
158 158
 
159
-        $rejected = function ($reason, $path) use ($complete) {
159
+        $rejected = function($reason, $path) use ($complete) {
160 160
             $uri = $reason->getRequest()->getUri();
161 161
             $host = $uri->getScheme().'://'.$uri->getHost();
162 162
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
      */
216 216
     public function getTotalErrorByMirror(string $mirror):int
217 217
     {
218
-        if(!isset($this->poolErrorsCount[$mirror])){
218
+        if (!isset($this->poolErrorsCount[$mirror])) {
219 219
             return 0;
220 220
         }
221 221
 
Please login to merge, or discard this patch.
src/Command/Create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@
 block discarded – undo
276 276
 
277 277
         foreach ($mirrors as $mirror) {
278 278
             $total = $this->http->getTotalErrorByMirror($mirror);
279
-            if($total < 1000){
279
+            if ($total < 1000) {
280 280
                 continue;
281 281
             }
282 282
 
Please login to merge, or discard this patch.