Passed
Branch version-1.x (02dcd3)
by Mariano
20:23 queued 10:14
created
Category
src/Client/Utils/ResponseBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      */
77 77
     public function andBinaryBody($body)
78 78
     {
79
-        $this->response->setBody(BinaryInfo::BINARY_BODY_PREFIX . base64_encode($body));
79
+        $this->response->setBody(BinaryInfo::BINARY_BODY_PREFIX.base64_encode($body));
80 80
 
81 81
         return $this;
82 82
     }
Please login to merge, or discard this patch.
src/Client/Phiremock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $uri = $this->createBaseUri()->withPath(self::API_EXPECTATIONS_URL);
87 87
         $body = @json_encode($expectation);
88 88
         if (false === $body) {
89
-            throw new \RuntimeException('Error generating json body for request: ' . json_last_error_msg());
89
+            throw new \RuntimeException('Error generating json body for request: '.json_last_error_msg());
90 90
         }
91 91
         $request = (new PsrRequest())
92 92
             ->withUri($uri)
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
         if ($response->getStatusCode() >= 500) {
289 289
             $errors = json_decode($response->getBody()->__toString(), true)['details'];
290 290
 
291
-            throw new \RuntimeException('An error occurred creating the expectation: ' . ($errors ? var_export($errors, true) : '') . $response->getBody()->__toString());
291
+            throw new \RuntimeException('An error occurred creating the expectation: '.($errors ? var_export($errors, true) : '').$response->getBody()->__toString());
292 292
         }
293 293
 
294 294
         if ($response->getStatusCode() >= 400) {
Please login to merge, or discard this patch.
src/Domain/Condition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
     public function __toString()
43 43
     {
44
-        return $this->matcher . ' ' . var_export($this->value, true);
44
+        return $this->matcher.' '.var_export($this->value, true);
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
src/Domain/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             [
66 66
                 'method'  => $this->method,
67 67
                 'url'     => isset($this->url) ? $this->url->__toString() : 'null',
68
-                'body'    => isset($this->body) ? $this->body->getMatcher() . ' => ' . (isset($bodyValue[5000]) ? '--VERY LONG CONTENTS--' : $bodyValue) : 'null',
68
+                'body'    => isset($this->body) ? $this->body->getMatcher().' => '.(isset($bodyValue[5000]) ? '--VERY LONG CONTENTS--' : $bodyValue) : 'null',
69 69
                 'headers' => print_r($this->headers, true),
70 70
             ],
71 71
             true
Please login to merge, or discard this patch.
src/Common/Utils/FileSystem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         return str_replace(
40 40
             \DIRECTORY_SEPARATOR,
41 41
             '/',
42
-            $existentPath . '/' . implode(\DIRECTORY_SEPARATOR, $tail)
42
+            $existentPath.'/'.implode(\DIRECTORY_SEPARATOR, $tail)
43 43
         );
44 44
     }
45 45
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $path = str_replace(\DIRECTORY_SEPARATOR, '/', $path);
54 54
         if ('/' !== $path[0]) {
55
-            $path = getcwd() . '/' . $path;
55
+            $path = getcwd().'/'.$path;
56 56
         }
57 57
 
58 58
         return $path;
Please login to merge, or discard this patch.
src/Common/Utils/RequestBuilderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             new Psr6CacheAdapter(
37 37
                 'requests',
38 38
                 3600,
39
-                sys_get_temp_dir() . '/phiremock/cache/'
39
+                sys_get_temp_dir().'/phiremock/cache/'
40 40
             ),
41 41
             new ParserGenerator(
42 42
                 new DoctrineAnnotationService(),
Please login to merge, or discard this patch.
src/Common/StringStream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
      */
28 28
     public function __construct($string)
29 29
     {
30
-        parent::__construct('data://text/plain;base64,' . base64_encode($string));
30
+        parent::__construct('data://text/plain;base64,'.base64_encode($string));
31 31
     }
32 32
 }
Please login to merge, or discard this patch.