Completed
Push — master ( 60a69c...60b6e8 )
by Karsten
02:49
created
src/PeekAndPoke/Horizons/DateAndTime/LocalDate.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function __construct($input, $timezone)
61 61
     {
62
-        if (! $timezone instanceof \DateTimeZone) {
62
+        if ( ! $timezone instanceof \DateTimeZone) {
63 63
             $timezone = new \DateTimeZone((string) $timezone);
64 64
         }
65 65
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      *
206 206
      * @return LocalDate
207 207
      */
208
-    public function getDstStartOfDayPlusHours ($hours)
208
+    public function getDstStartOfDayPlusHours($hours)
209 209
     {
210 210
         $startOfDay = $this->getStartOfDay();
211 211
         $startOfDayOffset = $startOfDay->getOffset();
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
      */
369 369
     public function addInterval($interval)
370 370
     {
371
-        if (!$interval instanceof \DateInterval) {
371
+        if ( ! $interval instanceof \DateInterval) {
372 372
             $interval = new \DateInterval($interval);
373 373
         }
374 374
 
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
      */
386 386
     public function subInterval($interval)
387 387
     {
388
-        if (!$interval instanceof \DateInterval) {
388
+        if ( ! $interval instanceof \DateInterval) {
389 389
             $interval = new \DateInterval($interval);
390 390
         }
391 391
 
@@ -405,9 +405,9 @@  discard block
 block discarded – undo
405 405
         // This is a work-around for the day-light-saving shift days
406 406
         // If we would use minutesIntoDay and then add those to startOfDay, we loose one hour.
407 407
         // Example would be '2015-03-29 11:20' with tz 'Europe/Berlin' would result in '2015-03-29 10:00'
408
-        $minutesIntoDay = ((int)$this->date->format('H') * 60) + ((int)$this->date->format('i'));
408
+        $minutesIntoDay = ((int) $this->date->format('H') * 60) + ((int) $this->date->format('i'));
409 409
         // cut off partial intervals
410
-        $corrected = ((int)($minutesIntoDay / $minutesInterval)) * $minutesInterval;
410
+        $corrected = ((int) ($minutesIntoDay / $minutesInterval)) * $minutesInterval;
411 411
 
412 412
         return $this->getStartOfDay()->modifyByMinutes($corrected);
413 413
     }
Please login to merge, or discard this patch.