Completed
Pull Request — master (#2)
by Andreas
02:06
created
src/DateTimeInterval.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /*
6 6
  * Copyright (c) DateTime-Contributors
Please login to merge, or discard this patch.
src/DateTime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         if (null === $timezone) {
24 24
             $timezone = Timezone::fromString('UTC');
25 25
         }
26
-        $timezoneThief = function (Timezone $timezone) {
26
+        $timezoneThief = function(Timezone $timezone) {
27 27
             return $timezone->timezone;
28 28
         };
29 29
         $timezoneThief = Closure::bind($timezoneThief, null, $timezone);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $timezone = Timezone::fromString('UTC');
89 89
         }
90 90
 
91
-        $timezoneThief = function (Timezone $timezone) {
91
+        $timezoneThief = function(Timezone $timezone) {
92 92
             return $timezone->timezone;
93 93
         };
94 94
         $timezoneThief = Closure::bind($timezoneThief, null, $timezone);
Please login to merge, or discard this patch.
src/Timezone/Timezone.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -15,20 +15,20 @@  discard block
 block discarded – undo
15 15
 
16 16
 abstract class Timezone
17 17
 {
18
-    const AFRICA = 1 ;
19
-    const AMERICA = 2 ;
20
-    const ANTARCTICA = 4 ;
21
-    const ARCTIC = 8 ;
22
-    const ASIA = 16 ;
23
-    const ATLANTIC = 32 ;
24
-    const AUSTRALIA = 64 ;
25
-    const EUROPE = 128 ;
26
-    const INDIAN = 256 ;
27
-    const PACIFIC = 512 ;
28
-    const UTC = 1024 ;
29
-    const ALL = 2047 ;
30
-    const ALL_WITH_BC = 4095 ;
31
-    const PER_COUNTRY = 4096 ;
18
+    const AFRICA = 1;
19
+    const AMERICA = 2;
20
+    const ANTARCTICA = 4;
21
+    const ARCTIC = 8;
22
+    const ASIA = 16;
23
+    const ATLANTIC = 32;
24
+    const AUSTRALIA = 64;
25
+    const EUROPE = 128;
26
+    const INDIAN = 256;
27
+    const PACIFIC = 512;
28
+    const UTC = 1024;
29
+    const ALL = 2047;
30
+    const ALL_WITH_BC = 4095;
31
+    const PER_COUNTRY = 4096;
32 32
 
33 33
     const TYPE_TIMEZONE = 3;
34 34
     const TYPE_ABBREVIATION = 2;
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
 
61 61
     public function getOffset(DateTime $datetime) : int
62 62
     {
63
-        $datetimeThief = function (DateTime $datetime) {
63
+        $datetimeThief = function(DateTime $datetime) {
64 64
             return $datetime->datetime;
65 65
         };
66 66
         $datetimeThief = Closure::bind($datetimeThief, null, $datetime);
67
-        $datetime       = $datetimeThief($datetime);
67
+        $datetime = $datetimeThief($datetime);
68 68
 
69 69
         return $this->timezone->getOffset($datetime);
70 70
     }
Please login to merge, or discard this patch.
src/Timezone/Location.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
     public static function fromTimezone(Name $timezone) : self
33 33
     {
34
-        $timezoneThief = function (Name $timezone) {
34
+        $timezoneThief = function(Name $timezone) {
35 35
             return $timezone->timezone;
36 36
         };
37 37
         $timezoneThief = Closure::bind($timezoneThief, null, $timezone);
Please login to merge, or discard this patch.