@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | // There is almost no sense in using polyfill function. |
| 29 | 29 | // If you're REALLY need to use HRTimer set `$ignoreVersionRestrictions` to true. |
| 30 | 30 | // Otherwise use `Timer::class` instance instead. |
| 31 | - throw new \RuntimeException('[' . static::class . '] Your php version is below 7.3.0.'); |
|
| 31 | + throw new \RuntimeException('['.static::class.'] Your php version is below 7.3.0.'); |
|
| 32 | 32 | } |
| 33 | 33 | // @codeCoverageIgnoreStart |
| 34 | 34 | if (PHP_INT_SIZE < INT_SIZE_64BIT) { |
@@ -55,10 +55,10 @@ discard block |
||
| 55 | 55 | $stop_ok = true; |
| 56 | 56 | } |
| 57 | 57 | if (!$start_ok) { |
| 58 | - throw new \RuntimeException('Start value is NOT ok. [' . typeOf($start) . ']'); |
|
| 58 | + throw new \RuntimeException('Start value is NOT ok. ['.typeOf($start).']'); |
|
| 59 | 59 | } |
| 60 | 60 | if (!$stop_ok) { |
| 61 | - throw new \RuntimeException('Stop value is NOT ok. [' . typeOf($stop) . ']'); |
|
| 61 | + throw new \RuntimeException('Stop value is NOT ok. ['.typeOf($stop).']'); |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
@@ -30,10 +30,10 @@ |
||
| 30 | 30 | $stop_ok = true; |
| 31 | 31 | } |
| 32 | 32 | if (!$start_ok) { |
| 33 | - throw new \RuntimeException('Start value is NOT ok. [' . typeOf($start) . ']'); |
|
| 33 | + throw new \RuntimeException('Start value is NOT ok. ['.typeOf($start).']'); |
|
| 34 | 34 | } |
| 35 | 35 | if (!$stop_ok) { |
| 36 | - throw new \RuntimeException('Stop value is NOT ok. [' . typeOf($stop) . ']'); |
|
| 36 | + throw new \RuntimeException('Stop value is NOT ok. ['.typeOf($stop).']'); |
|
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | public function check(?int $iterationNumber = null): self |
| 68 | 68 | { |
| 69 | 69 | if ($this->isStopped()) { |
| 70 | - throw new \RuntimeException('Timer[' . $this->name . '] is already stopped.'); |
|
| 70 | + throw new \RuntimeException('Timer['.$this->name.'] is already stopped.'); |
|
| 71 | 71 | } |
| 72 | 72 | if ($this->isNotStarted()) { |
| 73 | 73 | $this->start(); |