@@ -2,4 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace DaveRandom\LibLifxLan; |
4 | 4 | |
5 | -abstract class Exception extends \Exception { } |
|
5 | +abstract class Exception extends \Exception |
|
6 | +{ |
|
7 | +} |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace DaveRandom\LibLifxLan; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace DaveRandom\LibLifxLan\Exceptions; |
4 | 4 |
@@ -4,4 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use DaveRandom\LibLifxLan\Exception; |
6 | 6 | |
7 | -final class InvalidValueException extends Exception { } |
|
7 | +final class InvalidValueException extends Exception |
|
8 | +{ |
|
9 | +} |
@@ -67,5 +67,7 @@ |
||
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 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace DaveRandom\LibLifxLan; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace DaveRandom\LibLifxLan\DataTypes; |
4 | 4 |
@@ -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 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace DaveRandom\LibLifxLan\DataTypes; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace DaveRandom\LibLifxLan\DataTypes\Light; |
4 | 4 |
@@ -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; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace DaveRandom\LibLifxLan\DataTypes\Light; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace DaveRandom\LibLifxLan\Messages\Device\Responses; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace DaveRandom\LibLifxLan\Messages\Device\Responses; |
4 | 4 |