@@ -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; |
| 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 | |
@@ -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 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace DaveRandom\LibLifxLan\DataTypes\Light; |
| 4 | 4 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | public const SET_HUE = 0b0001; |
| 12 | 12 | public const SET_SATURATION = 0b0010; |
| 13 | 13 | public const SET_BRIGHTNESS = 0b0100; |
| 14 | - public const SET_TEMPERATURE = 0b1000; |
|
| 14 | + public const SET_TEMPERATURE = 0b1000; |
|
| 15 | 15 | public const SET_ALL = self::SET_HUE | self::SET_SATURATION | self::SET_BRIGHTNESS | self::SET_TEMPERATURE; |
| 16 | 16 | |
| 17 | 17 | private $transient; |
@@ -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\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\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\DataTypes; |
| 4 | 4 | |