@@ -91,7 +91,7 @@ |
||
91 | 91 | $parameters, |
92 | 92 | $data |
93 | 93 | ); |
94 | - $response = $this->applyBehaviours($behaviours, $response); |
|
94 | + $response = $this->applyBehaviours($behaviours, $response); |
|
95 | 95 | //end of business logic |
96 | 96 | |
97 | 97 | return $response; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $this->getDefaultHeaderLines() |
27 | 27 | ); |
28 | 28 | |
29 | - $defaultOptions = $this->createDefaultOptions( |
|
29 | + $defaultOptions = $this->createDefaultOptions( |
|
30 | 30 | $this->getDefaultRawOptions(), |
31 | 31 | $this->getDefaultOptions() |
32 | 32 | ); |
@@ -35,6 +35,6 @@ |
||
35 | 35 | */ |
36 | 36 | public function value() |
37 | 37 | { |
38 | - return $this->username . ':' . $this->password; |
|
38 | + return $this->username.':'.$this->password; |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | \ No newline at end of file |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | if ($statusCodeIsToHigh) { |
38 | 38 | throw new RuntimeException( |
39 | - 'limit of status code exceeded. dumping response: ' . |
|
39 | + 'limit of status code exceeded. dumping response: '. |
|
40 | 40 | implode(', ', $response->convertIntoAnArray()) |
41 | 41 | ); |
42 | 42 | } |
@@ -79,7 +79,7 @@ |
||
79 | 79 | |
80 | 80 | if ($valueIsNotAvailable) { |
81 | 81 | throw new InvalidArgumentException( |
82 | - 'no headline available for prefix: "' . $prefix . '"' |
|
82 | + 'no headline available for prefix: "'.$prefix.'"' |
|
83 | 83 | ); |
84 | 84 | } |
85 | 85 |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | $isDataProvided = (!is_null($data)); |
220 | 220 | |
221 | 221 | if ($isDataProvided) { |
222 | - $dataIsNotFromTypeScalar = (!is_scalar($data)); |
|
222 | + $dataIsNotFromTypeScalar = (!is_scalar($data)); |
|
223 | 223 | |
224 | 224 | if ($dataIsNotFromTypeScalar) { |
225 | 225 | $data = http_build_query($data); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $isParameterStringValid = (strlen($parametersAsString) > 0); |
250 | 250 | |
251 | 251 | if ($isParameterStringValid) { |
252 | - $urlWithParameters = $url . '?' . http_build_query($parameters); |
|
252 | + $urlWithParameters = $url.'?'.http_build_query($parameters); |
|
253 | 253 | } else { |
254 | 254 | $urlWithParameters = $url; |
255 | 255 | } |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | $merge = $this->merge; |
275 | 275 | $headerLines = $merge($this->headerLines, $this->defaultHeaderLines); |
276 | 276 | $options = $merge($this->options, $this->defaultOptions); |
277 | - $headerLines[] = 'X-HTTP-Method-Override: ' . $method; //@see: http://tr.php.net/curl_setopt#109634 |
|
277 | + $headerLines[] = 'X-HTTP-Method-Override: '.$method; //@see: http://tr.php.net/curl_setopt#109634 |
|
278 | 278 | //end of dependencies |
279 | 279 | |
280 | 280 | //begin of business logic |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | public function line() |
11 | 11 | { |
12 | - return $this->prefix() . ': ' . $this->suffix(); |
|
12 | + return $this->prefix().': '.$this->suffix(); |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | /** |
@@ -28,8 +28,8 @@ |
||
28 | 28 | */ |
29 | 29 | protected function log($url, array $options) |
30 | 30 | { |
31 | - echo 'url: ' . $url . PHP_EOL; |
|
32 | - echo 'options: ' . PHP_EOL; |
|
33 | - echo var_export($options, true) . PHP_EOL; |
|
31 | + echo 'url: '.$url.PHP_EOL; |
|
32 | + echo 'options: '.PHP_EOL; |
|
33 | + echo var_export($options, true).PHP_EOL; |
|
34 | 34 | } |
35 | 35 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function __construct($identifier, $value) |
23 | 23 | { |
24 | - $this->prefix = 'X-' . $identifier; |
|
24 | + $this->prefix = 'X-'.$identifier; |
|
25 | 25 | $this->suffix = $value; |
26 | 26 | } |
27 | 27 |