Completed
Pull Request — master (#4)
by Rolf
03:29
created
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 1 patch
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.
src/Guzzle/Common/Collection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     public function setPath($path, $value)
324 324
     {
325
-        $current =& $this->data;
325
+        $current = & $this->data;
326 326
         $queue = explode('/', $path);
327 327
         while (null !== ($key = array_shift($queue))) {
328 328
             if (!is_array($current)) {
@@ -330,10 +330,10 @@  discard block
 block discarded – undo
330 330
             } elseif (!$queue) {
331 331
                 $current[$key] = $value;
332 332
             } elseif (isset($current[$key])) {
333
-                $current =& $current[$key];
333
+                $current = & $current[$key];
334 334
             } else {
335 335
                 $current[$key] = array();
336
-                $current =& $current[$key];
336
+                $current = & $current[$key];
337 337
             }
338 338
         }
339 339
 
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
     public function getPath($path, $separator = '/', $data = null)
355 355
     {
356 356
         if ($data === null) {
357
-            $data =& $this->data;
357
+            $data = & $this->data;
358 358
         }
359 359
 
360 360
         $path = is_array($path) ? $path : explode($separator, $path);
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
             if (!is_array($data)) {
363 363
                 return null;
364 364
             } elseif (isset($data[$part])) {
365
-                $data =& $data[$part];
365
+                $data = & $data[$part];
366 366
             } elseif ($part != '*') {
367 367
                 return null;
368 368
             } else {
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/BodyVisitor.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()] = $param->filter($response->getBody());
22 22
     }
Please login to merge, or discard this patch.
src/Guzzle/Service/Command/LocationVisitor/Request/XmlVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
             foreach ((array) $root['namespaces'] as $prefix => $uri) {
98 98
                 $nsLabel = 'xmlns';
99 99
                 if (!is_numeric($prefix)) {
100
-                    $nsLabel .= ':'.$prefix;
100
+                    $nsLabel .= ':' . $prefix;
101 101
                 }
102 102
                 $xmlWriter->writeAttribute($nsLabel, $uri);
103 103
             }
Please login to merge, or discard this patch.
src/Guzzle/Service/Builder/ServiceBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
             return $this->clients[$name];
124 124
         }
125 125
 
126
-        $builder =& $this->builderConfig[$name];
126
+        $builder = & $this->builderConfig[$name];
127 127
 
128 128
         // Convert references to the actual client
129 129
         foreach ($builder['params'] as &$v) {
Please login to merge, or discard this patch.
src/Guzzle/Service/Resource/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $output .= "This data can be retrieved from the model object using the get() method of the model "
51 51
             . "(e.g. \$model->get(\$key)) or accessing the model like an associative array (e.g. \$model['key']).\n\n";
52 52
         $lines = array_slice(explode("\n", trim(print_r($this->toArray(), true))), 2, -1);
53
-        $output .=  implode("\n", $lines);
53
+        $output .= implode("\n", $lines);
54 54
 
55 55
         if ($this->structure) {
56 56
             $output .= "\n\nModel structure\n---------------\n\n";
Please login to merge, or discard this patch.
src/Guzzle/Service/Resource/ResourceIteratorApplyBatched.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
         $batch = BatchBuilder::factory()
69 69
             ->createBatchesWith(new BatchSizeDivisor($perBatch))
70
-            ->transferWith(new BatchClosureTransfer(function (array $batch) use ($that, $callback, &$batches, $it) {
70
+            ->transferWith(new BatchClosureTransfer(function(array $batch) use ($that, $callback, &$batches, $it) {
71 71
                 $batches++;
72 72
                 $that->dispatch('iterator_batch.before_batch', array('iterator' => $it, 'batch' => $batch));
73 73
                 call_user_func_array($callback, array($it, $batch));
Please login to merge, or discard this patch.