Completed
Push — master ( cd6efa...23013c )
by Chris
03:07
created
src/Messages/Light/Commands/SetInfrared.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/DataTypes/Service.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/DataTypes/Light/Effect.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Messages/Light/Responses/StateInfrared.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Encoding/MessageEncoder.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.