@@ -19,7 +19,7 @@ |
||
| 19 | 19 | public function __construct(int $brightness) |
| 20 | 20 | { |
| 21 | 21 | if ($brightness < 0 || $brightness > 65535) { |
| 22 | - throw new InvalidValueException("Brightness {$brightness} outside allowable range of 0 - 65535"); |
|
| 22 | + throw new InvalidValueException("brightness {$brightness} outside allowable range of 0 - 65535"); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | $this->brightness = $brightness; |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | // Protocol spec states this is a uint32 rather than a uint16, so allow any uint32 value at the protocol level |
| 34 | 34 | if ($port < UINT32_MIN || $port > UINT32_MAX) { |
| 35 | 35 | throw new InvalidValueException( |
| 36 | - "Port {$port} outside allowable range of " . UINT32_MIN . " - " . UINT32_MAX |
|
| 36 | + "port {$port} outside allowable range of " . UINT32_MIN . " - " . UINT32_MAX |
|
| 37 | 37 | ); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | { |
| 41 | 41 | if ($period < UINT32_MIN || $period > UINT32_MAX) { |
| 42 | 42 | throw new InvalidValueException( |
| 43 | - "Period {$period} outside allowable range of " . UINT32_MIN . " - " . UINT32_MAX |
|
| 43 | + "period {$period} outside allowable range of " . UINT32_MIN . " - " . UINT32_MAX |
|
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | private function setWaveform(int $waveform): void |
| 73 | 73 | { |
| 74 | 74 | if ($waveform < 0 || $waveform > 255) { |
| 75 | - throw new InvalidValueException("Waveform {$waveform} outside allowable range of 0 - 255"); |
|
| 75 | + throw new InvalidValueException("waveform {$waveform} outside allowable range of 0 - 255"); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | $this->waveform = $waveform; |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | public function __construct(int $brightness) |
| 20 | 20 | { |
| 21 | 21 | if ($brightness < 0 || $brightness > 65535) { |
| 22 | - throw new InvalidValueException("Brightness {$brightness} outside allowable range of 0 - 65535"); |
|
| 22 | + throw new InvalidValueException("brightness {$brightness} outside allowable range of 0 - 65535"); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | $this->brightness = $brightness; |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | $result = ($dateTime->format('U') * 1000000000) + ($dateTime->format('u') * 1000); |
| 164 | 164 | |
| 165 | 165 | if ($result < 0) { |
| 166 | - throw new InvalidMessageException("Timestamp {$dateTime->format('Y-m-d H:i:s.u')} is negative"); |
|
| 166 | + throw new InvalidMessageException("timestamp {$dateTime->format('Y-m-d H:i:s.u')} is negative"); |
|
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | return $result; |