Completed
Branch master (ce13db)
by Rolf
06:23
created
src/Guzzle/Service/Description/SchemaValidator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@
 block discarded – undo
260 260
      * @param string $type  Parameter type
261 261
      * @param mixed  $value Value to determine the type
262 262
      *
263
-     * @return string|bool Returns the matching type on
263
+     * @return string|false Returns the matching type on
264 264
      */
265 265
     protected function determineType($type, $value)
266 266
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,12 +205,12 @@
 block discarded – undo
205 205
 
206 206
             // Strings can have enums which are a list of predefined values
207 207
             if (($enum = $param->getEnum()) && !in_array($value, $enum)) {
208
-                $this->errors[] = "{$path} must be one of " . implode(' or ', array_map(function ($s) {
208
+                $this->errors[] = "{$path} must be one of " . implode(' or ', array_map(function($s) {
209 209
                     return '"' . addslashes($s) . '"';
210 210
                 }, $enum));
211 211
             }
212 212
             // Strings can have a regex pattern that the value must match
213
-            if (($pattern  = $param->getPattern()) && !preg_match($pattern, $value)) {
213
+            if (($pattern = $param->getPattern()) && !preg_match($pattern, $value)) {
214 214
                 $this->errors[] = "{$path} must match the following regular expression: {$pattern}";
215 215
             }
216 216
 
Please login to merge, or discard this patch.
src/Guzzle/Stream/Stream.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      * @param string          $algo      Hash algorithm (e.g. md5, crc32, etc)
91 91
      * @param bool            $rawOutput Whether or not to use raw output
92 92
      *
93
-     * @return bool|string Returns false on failure or a hash string on success
93
+     * @return false|string Returns false on failure or a hash string on success
94 94
      */
95 95
     public static function getHash(StreamInterface $stream, $algo, $rawOutput = false)
96 96
     {
Please login to merge, or discard this patch.
src/Guzzle/Parser/Message/MessageParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             'body'     => $parts['body']
34 34
         );
35 35
 
36
-        $parsed['request_url'] = $this->getUrlPartsFromMessage(isset($parts['start_line'][1]) ? $parts['start_line'][1] : '' , $parsed);
36
+        $parsed['request_url'] = $this->getUrlPartsFromMessage(isset($parts['start_line'][1]) ? $parts['start_line'][1] : '', $parsed);
37 37
 
38 38
         return $parsed;
39 39
     }
Please login to merge, or discard this patch.
src/Guzzle/Common/Exception/ExceptionCollection.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             foreach ($e as $ee) {
99 99
                 $message .= "\n" . $this->getExceptionMessage($ee, $depth + 1);
100 100
             }
101
-        }  else {
101
+        } else {
102 102
             $message .= "\n{$prefix}{$sp}" . str_replace("\n", "\n{$prefix}{$sp}", $e->getMessage()) . "\n";
103 103
             $message .= "\n{$prefix}{$sp}" . str_replace("\n", "\n{$prefix}{$sp}", $e->getTraceAsString()) . "\n";
104 104
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             foreach ($e as $ee) {
99 99
                 $message .= "\n" . $this->getExceptionMessage($ee, $depth + 1);
100 100
             }
101
-        }  else {
101
+        } else {
102 102
             $message .= "\n{$prefix}{$sp}" . str_replace("\n", "\n{$prefix}{$sp}", $e->getMessage()) . "\n";
103 103
             $message .= "\n{$prefix}{$sp}" . str_replace("\n", "\n{$prefix}{$sp}", $e->getTraceAsString()) . "\n";
104 104
         }
Please login to merge, or discard this patch.
src/Guzzle/Batch/BatchCommandTransfer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $client = reset($batch)->getClient();
63 63
 
64 64
         // Keep a list of all commands with invalid clients
65
-        $invalid = array_filter($batch, function ($command) use ($client) {
65
+        $invalid = array_filter($batch, function($command) use ($client) {
66 66
             return $command->getClient() !== $client;
67 67
         });
68 68
 
Please login to merge, or discard this patch.
src/Guzzle/Service/Command/LocationVisitor/Response/JsonVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         Response $response,
28 28
         Parameter $param,
29 29
         &$value,
30
-        $context =  null
30
+        $context = null
31 31
     ) {
32 32
         $name = $param->getName();
33 33
         $key = $param->getWireName();
Please login to merge, or discard this patch.
Guzzle/Service/Command/LocationVisitor/Response/AbstractResponseVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
         Response $response,
22 22
         Parameter $param,
23 23
         &$value,
24
-        $context =  null
24
+        $context = null
25 25
     ) {}
26 26
 }
Please login to merge, or discard this patch.
src/Guzzle/Service/Command/LocationVisitor/Response/XmlVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         Response $response,
23 23
         Parameter $param,
24 24
         &$value,
25
-        $context =  null
25
+        $context = null
26 26
     ) {
27 27
         $sentAs = $param->getWireName();
28 28
         $name = $param->getName();
Please login to merge, or discard this patch.
src/Guzzle/Service/Command/LocationVisitor/Response/ReasonPhraseVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         Response $response,
17 17
         Parameter $param,
18 18
         &$value,
19
-        $context =  null
19
+        $context = null
20 20
     ) {
21 21
         $value[$param->getName()] = $response->getReasonPhrase();
22 22
     }
Please login to merge, or discard this patch.