Passed
Pull Request — master (#13)
by Matthias
02:07
created
src/Metadata/DocumentMetadata.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
                 if(preg_match('/,/', $value))
102 102
                 {
103 103
                     $value = preg_split('/\s*,\s*/', $value);
104
-                }
105
-                else
104
+                } else
106 105
                 {
107 106
                     $value = preg_split('/\s+/', $value);
108 107
                 }
Please login to merge, or discard this patch.
src/Clients/WebClient.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -259,8 +259,7 @@  discard block
 block discarded – undo
259 259
         if(isset($this->cache[sha1($file)][$type]))
260 260
         {
261 261
             return $this->cache[sha1($file)][$type];
262
-        }
263
-        elseif(!isset($retries[sha1($file)]))
262
+        } elseif(!isset($retries[sha1($file)]))
264 263
         {
265 264
             $retries[sha1($file)] = $this->retries;
266 265
         }
@@ -341,8 +340,7 @@  discard block
 block discarded – undo
341 340
         if(is_null($this->callback))
342 341
         {
343 342
             $this->response = curl_exec($curl);
344
-        }
345
-        else
343
+        } else
346 344
         {
347 345
             $this->response = '';
348 346
             curl_exec($curl);
Please login to merge, or discard this patch.
src/Client.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -77,8 +77,7 @@  discard block
 block discarded – undo
77 77
         if (func_num_args() > 0 && preg_match('/\.jar$/', func_get_arg(0)))
78 78
         {
79 79
             return new CLIClient($param1, $param2);
80
-        }
81
-        else
80
+        } else
82 81
         {
83 82
             return new WebClient($param1, $param2, $options);
84 83
         }
@@ -106,15 +105,13 @@  discard block
 block discarded – undo
106 105
         if($callback instanceof Closure)
107 106
         {
108 107
             $this->callback = $callback;
109
-        }
110
-        elseif(is_callable($callback))
108
+        } elseif(is_callable($callback))
111 109
         {
112 110
             $this->callback = function($chunk) use($callback)
113 111
             {
114 112
                 return call_user_func_array($callback, [$chunk]);
115 113
             };
116
-        }
117
-        else
114
+        } else
118 115
         {
119 116
             throw new Exception('Invalid callback');
120 117
         }
@@ -144,12 +141,10 @@  discard block
 block discarded – undo
144 141
         if(static::MODE == 'cli' && is_numeric($size))
145 142
         {
146 143
             $this->chunkSize = (int)$size;
147
-        }
148
-        elseif(static::MODE == 'web')
144
+        } elseif(static::MODE == 'web')
149 145
         {
150 146
             throw new Exception('Chunk size is not supported on web mode');
151
-        }
152
-        else
147
+        } else
153 148
         {
154 149
             throw new Exception("$size is not a valid chunk size");
155 150
         }
Please login to merge, or discard this patch.