1 | <?php declare(strict_types=1); |
||
10 | class Settings extends BaseRequest |
||
11 | { |
||
12 | const METHOD = 'POST'; |
||
|
|||
13 | |||
14 | const ENDPOINT = '/account/remove_profile_banner.json'; |
||
15 | |||
16 | 14 | public function __construct() |
|
20 | |||
21 | 2 | public function enableSleepTime(): Settings |
|
27 | |||
28 | 2 | public function disableSleepTime(): Settings |
|
34 | |||
35 | 2 | public function sleepTimeStart(int $hour): Settings |
|
41 | |||
42 | 2 | public function sleepTimeEnd(int $hour): Settings |
|
48 | |||
49 | 2 | public function timeZone(string $timeZone): Settings |
|
55 | |||
56 | 2 | public function trendLocationWoeId(int $woeId): Settings |
|
62 | |||
63 | 2 | public function language(string $language): Settings |
|
69 | } |
||
70 |
This check looks for improperly formatted assignments.
Every assignment must have exactly one space before and one space after the equals operator.
To illustrate:
will have no issues, while
will report issues in lines 1 and 2.