@@ -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 | } |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | // take care of the called class |
| 98 | 98 | $cls = static::class; |
| 99 | 99 | |
| 100 | - if (! isset($invalid[$cls][$value])) { |
|
| 100 | + if (!isset($invalid[$cls][$value])) { |
|
| 101 | 101 | |
| 102 | 102 | $inst = new static(); |
| 103 | 103 | $inst->value = $value; |