Completed
Pull Request — master (#22)
by Dave
03:31
created
src/Behat/GuzzleExtension/Context/RawGuzzleContext.php 1 patch
Spacing   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function executeCommand($command, array $data = array())
81 81
     {
82 82
         $this->getGuzzleClient()->setUserAgent(
83
-            self::GUZZLE_EXTENSION_NAME . '/' . self::GUZZLE_EXTENSION_VERSION
83
+            self::GUZZLE_EXTENSION_NAME.'/'.self::GUZZLE_EXTENSION_VERSION
84 84
         );
85 85
 
86 86
         $command = $this->getGuzzleClient()->getCommand($command, $data);
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
     {
108 108
         if ($this->client === null) {
109 109
             throw new \RuntimeException(
110
-                'Guzzle client instance has not been set on Guzzle context ' .
111
-                'class.' . chr(10) . 'Have you enabled the Guzzle Extension?'
110
+                'Guzzle client instance has not been set on Guzzle context '.
111
+                'class.'.chr(10).'Have you enabled the Guzzle Extension?'
112 112
             );
113 113
         }
114 114
 
@@ -246,11 +246,10 @@  discard block
 block discarded – undo
246 246
             if (!array_key_exists($field, $input)) {
247 247
                 throw new ClientErrorResponseException(
248 248
                     sprintf(
249
-                        'Expected value %s is missing from array ' .
249
+                        'Expected value %s is missing from array '.
250 250
                         'of actual values at position %s',
251 251
                         is_array($expected) ?
252
-                        json_encode($expected) :
253
-                        $expected,
252
+                        json_encode($expected) : $expected,
254 253
                         $field
255 254
                     )
256 255
                 );
@@ -277,8 +276,8 @@  discard block
 block discarded – undo
277 276
         } else {
278 277
             if ($input != $control) {
279 278
                 throw new ClientErrorResponseException(
280
-                    'Actual value ' . $input . ' does not match expected ' .
281
-                    'value ' . $control
279
+                    'Actual value '.$input.' does not match expected '.
280
+                    'value '.$control
282 281
                 );
283 282
             }
284 283
         }
Please login to merge, or discard this patch.
src/Behat/GuzzleExtension/Context/GuzzleContext.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
     {
64 64
         if (!isset($this->users[$user])) {
65 65
             throw new ClientErrorResponseException(
66
-                'User ' . $user . ' does not exist'
66
+                'User '.$user.' does not exist'
67 67
             );
68 68
         }
69 69
 
70 70
         $this->addGuzzleHeader(
71 71
             'Authorization',
72
-            'Bearer ' . $this->users[$user]
72
+            'Bearer '.$this->users[$user]
73 73
         );
74 74
     }
75 75
 
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
 
224 224
         if ($actual != $code) {
225 225
             throw new ClientErrorResponseException(
226
-                'Actual status code ' . $actual . ' does not match expected ' .
227
-                'status code ' . $code . ' with message: ' .
226
+                'Actual status code '.$actual.' does not match expected '.
227
+                'status code '.$code.' with message: '.
228 228
                 $this->getGuzzleResponse()->getMessage()
229 229
             );
230 230
         }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     {
243 243
         if (!$this->getGuzzleResponse()->isSuccessful()) {
244 244
             throw new ClientErrorResponseException(
245
-                'Response unsuccessful with status code ' .
245
+                'Response unsuccessful with status code '.
246 246
                 $this->getGuzzleResponse()->getStatusCode()
247 247
             );
248 248
         }
@@ -310,8 +310,8 @@  discard block
 block discarded – undo
310 310
 
311 311
         if (strpos($response, $formatted) === false) {
312 312
             throw new ClientErrorResponseException(
313
-                'Actual response ' . $response . ' does not contain ' .
314
-                'string ' . $formatted
313
+                'Actual response '.$response.' does not contain '.
314
+                'string '.$formatted
315 315
             );
316 316
         }
317 317
     }
@@ -408,8 +408,8 @@  discard block
 block discarded – undo
408 408
 
409 409
         if ($length != $count) {
410 410
             throw new ClientErrorResponseException(
411
-                'Actual count ' . $length . ' does not match expected ' .
412
-                'count ' . $count
411
+                'Actual count '.$length.' does not match expected '.
412
+                'count '.$count
413 413
             );
414 414
         }
415 415
 
Please login to merge, or discard this patch.