@@ -76,7 +76,7 @@ |
||
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 | } |
@@ -86,7 +86,7 @@ discard block |
||
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 |
||
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) { |
@@ -41,7 +41,7 @@ |
||
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 | /** |
@@ -65,7 +65,7 @@ |
||
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 |
@@ -39,7 +39,7 @@ discard block |
||
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 |
||
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; |
@@ -36,7 +36,7 @@ |
||
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(), |
@@ -27,6 +27,6 @@ |
||
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 | } |