Passed
Push — master ( 40bd0a...4b7539 )
by Chris
02:40
created
src/Exception.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,4 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace DaveRandom\LibLifxLan;
4 4
 
5
-abstract class Exception extends \Exception { }
5
+abstract class Exception extends \Exception
6
+{
7
+}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace DaveRandom\LibLifxLan;
4 4
 
Please login to merge, or discard this patch.
src/Exceptions/InvalidValueException.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace DaveRandom\LibLifxLan\Exceptions;
4 4
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use DaveRandom\LibLifxLan\Exception;
6 6
 
7
-final class InvalidValueException extends Exception { }
7
+final class InvalidValueException extends Exception
8
+{
9
+}
Please login to merge, or discard this patch.
src/Enum.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,5 +67,7 @@
 block discarded – undo
67 67
         return self::getClassConstants(static::class);
68 68
     }
69 69
 
70
-    final protected function __construct() { }
70
+    final protected function __construct()
71
+    {
72
+}
71 73
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace DaveRandom\LibLifxLan;
4 4
 
Please login to merge, or discard this patch.
src/DataTypes/Version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace DaveRandom\LibLifxLan\DataTypes;
4 4
 
Please login to merge, or discard this patch.
src/DataTypes/Service.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace DaveRandom\LibLifxLan\DataTypes;
4 4
 
Please login to merge, or discard this patch.
src/DataTypes/Light/HsbkColor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace DaveRandom\LibLifxLan\DataTypes\Light;
4 4
 
Please login to merge, or discard this patch.
src/DataTypes/Light/Effect.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace DaveRandom\LibLifxLan\DataTypes\Light;
4 4
 
Please login to merge, or discard this patch.
src/Messages/Device/Responses/StateLocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace DaveRandom\LibLifxLan\Messages\Device\Responses;
4 4
 
Please login to merge, or discard this patch.
src/Messages/Device/Responses/StateWifiInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace DaveRandom\LibLifxLan\Messages\Device\Responses;
4 4
 
Please login to merge, or discard this patch.