@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public function __construct($input, $timezone) |
| 59 | 59 | { |
| 60 | - if (! $timezone instanceof \DateTimeZone) { |
|
| 60 | + if (!$timezone instanceof \DateTimeZone) { |
|
| 61 | 61 | $timezone = new \DateTimeZone((string) $timezone); |
| 62 | 62 | } |
| 63 | 63 | |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | * |
| 200 | 200 | * @return LocalDate |
| 201 | 201 | */ |
| 202 | - public function getDstStartOfDayPlusHours ($hours) |
|
| 202 | + public function getDstStartOfDayPlusHours($hours) |
|
| 203 | 203 | { |
| 204 | 204 | $startOfDay = $this->getStartOfDay(); |
| 205 | 205 | $startOfDayOffset = $startOfDay->getOffset(); |
@@ -433,9 +433,9 @@ discard block |
||
| 433 | 433 | // This is a work-around for the day-light-saving shift days |
| 434 | 434 | // If we would use minutesIntoDay and then add those to startOfDay, we loose one hour. |
| 435 | 435 | // Example would be '2015-03-29 11:20' with tz 'Europe/Berlin' would result in '2015-03-29 10:00' |
| 436 | - $minutesIntoDay = ((int)$this->date->format('H') * 60) + ((int)$this->date->format('i')); |
|
| 436 | + $minutesIntoDay = ((int) $this->date->format('H') * 60) + ((int) $this->date->format('i')); |
|
| 437 | 437 | // cut off partial intervals |
| 438 | - $corrected = ((int)($minutesIntoDay / $minutesInterval)) * $minutesInterval; |
|
| 438 | + $corrected = ((int) ($minutesIntoDay / $minutesInterval)) * $minutesInterval; |
|
| 439 | 439 | |
| 440 | 440 | return $this->getStartOfDay()->modifyByMinutes($corrected); |
| 441 | 441 | } |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | // take care of the called class |
| 97 | 97 | $cls = get_called_class(); |
| 98 | 98 | |
| 99 | - if (! isset($invalid[$cls][$value])) { |
|
| 99 | + if (!isset($invalid[$cls][$value])) { |
|
| 100 | 100 | |
| 101 | 101 | $inst = new static(); |
| 102 | 102 | $inst->value = $value; |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | - * @return string[] |
|
| 111 | + * @return integer[] |
|
| 112 | 112 | */ |
| 113 | 113 | final public static function enumerateValues() |
| 114 | 114 | { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | - * @return array|Enumerated[] |
|
| 119 | + * @return string[] |
|
| 120 | 120 | */ |
| 121 | 121 | final public static function enumerateProps() |
| 122 | 122 | { |