@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | if ($response->getBody()->__toString() === self::STATUS_OK_REPORT_RECORDED) { |
57 | 57 | return true; |
58 | 58 | } |
59 | - throw new RuntimeException('Report sending trouble: ' . $response->getBody() . '.'); |
|
59 | + throw new RuntimeException('Report sending trouble: '.$response->getBody().'.'); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | foreach ($paramsList as $item) { |
73 | 73 | // Fast parse tags |
74 | 74 | $value = substr($responseText, |
75 | - strpos($responseText, '<' . $item . '>') + mb_strlen('<' . $item . '>'), |
|
76 | - strpos($responseText, '</' . $item . '>') - strpos($responseText, '<' . $item . '>') - mb_strlen('<' . $item . '>') |
|
75 | + strpos($responseText, '<'.$item.'>') + mb_strlen('<'.$item.'>'), |
|
76 | + strpos($responseText, '</'.$item.'>') - strpos($responseText, '<'.$item.'>') - mb_strlen('<'.$item.'>') |
|
77 | 77 | ); |
78 | 78 | |
79 | 79 | if ($value !== false) { |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | { |
15 | 15 | foreach ($options as $option => $value) |
16 | 16 | { |
17 | - $setter = 'set' . ucfirst($option); |
|
17 | + $setter = 'set'.ucfirst($option); |
|
18 | 18 | |
19 | 19 | if (method_exists($this, $setter)) { |
20 | 20 | $this->$setter($value); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | if (!$ignoreMissingOptions) { |
30 | - throw new InvalidArgumentException("Property `{$option}` not found in class `" . __CLASS__ . "`."); |
|
30 | + throw new InvalidArgumentException("Property `{$option}` not found in class `".__CLASS__."`."); |
|
31 | 31 | } |
32 | 32 | } |
33 | 33 | } |
@@ -150,7 +150,7 @@ |
||
150 | 150 | continue; |
151 | 151 | } |
152 | 152 | |
153 | - $this->getLogger()->info("Got OK response: `{$result}`. Elapsed " . (time() - $startTime) . ' sec.'); |
|
153 | + $this->getLogger()->info("Got OK response: `{$result}`. Elapsed ".(time() - $startTime).' sec.'); |
|
154 | 154 | |
155 | 155 | return $result; |
156 | 156 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | if ($this->verbose) |
24 | 24 | { |
25 | - echo date("d/m/y H:i:s") . ' [' . $level . '] ' . $message . PHP_EOL; |
|
25 | + echo date("d/m/y H:i:s").' ['.$level.'] '.$message.PHP_EOL; |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | } |
29 | 29 | \ No newline at end of file |