@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $client = new SomeClient(); |
87 | 87 | |
88 | 88 | $client->withHandler( |
89 | - function () { |
|
89 | + function() { |
|
90 | 90 | return [ |
91 | 91 | 'status' => 500, |
92 | 92 | 'headers' => ['Server' => 'Apache/2.4.38 (Ubuntu)'], |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $liveResponse = $client->call('GET', 'http://example.com/api'); |
113 | 113 | |
114 | 114 | $client->withHandler( |
115 | - function () { |
|
115 | + function() { |
|
116 | 116 | return [ |
117 | 117 | 'status' => 500, |
118 | 118 | 'headers' => ['Server' => 'Apache/2.4 (Ubuntu)'], |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $client = new SomeClient(); |
144 | 144 | |
145 | 145 | $client->withHandler( |
146 | - function () { |
|
146 | + function() { |
|
147 | 147 | throw new HttpClientException('Bad request exception'); |
148 | 148 | } |
149 | 149 | ); |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $client = new SomeClient(); |
159 | 159 | |
160 | 160 | $client->withHandler( |
161 | - function () { |
|
161 | + function() { |
|
162 | 162 | return 'Server Error'; |
163 | 163 | } |
164 | 164 | ); |