Completed
Push — develop ( 23baee...f419bf )
by Michael
12s
created
src/Provider/GoogleMaps.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,13 +105,13 @@
 block discarded – undo
105 105
     {
106 106
         $params = [
107 107
             'key'       => $this->apiKey,
108
-            'location'  => implode(',', [$lat, $lng]),
108
+            'location'  => implode(',', [ $lat, $lng ]),
109 109
             'timestamp' => $timestamp,
110 110
         ];
111 111
 
112 112
         // Remove null values.
113 113
         $params = array_filter($params);
114 114
 
115
-        return static::ENDPOINT.'?'.http_build_query($params);
115
+        return static::ENDPOINT . '?' . http_build_query($params);
116 116
     }
117 117
 }
Please login to merge, or discard this patch.
src/Provider/TimeZoneDB.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,6 +114,6 @@
 block discarded – undo
114 114
         // Remove null values.
115 115
         $params = array_filter($params);
116 116
 
117
-        return $this->host.'?'.http_build_query($params);
117
+        return $this->host . '?' . http_build_query($params);
118 118
     }
119 119
 }
Please login to merge, or discard this patch.
src/ZoneInfo.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
         parent::__construct($id);
51 51
 
52 52
         $this->timestamp = (int) $timestamp;
53
-        $this->dateTime = new DateTimeImmutable('@'.$this->timestamp, $this);
54
-        $this->country = $this->getLocation()['country_code'];
53
+        $this->dateTime = new DateTimeImmutable('@' . $this->timestamp, $this);
54
+        $this->country = $this->getLocation()[ 'country_code' ];
55 55
     }
56 56
 
57 57
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function getAbbreviation()
61 61
     {
62
-        return $this->loadInfo()['abbr'];
62
+        return $this->loadInfo()[ 'abbr' ];
63 63
     }
64 64
 
65 65
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function getUtcOffset()
93 93
     {
94
-        return $this->loadInfo()['offset'];
94
+        return $this->loadInfo()[ 'offset' ];
95 95
     }
96 96
 
97 97
     /**
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function isDst()
101 101
     {
102
-        return $this->loadInfo()['isdst'];
102
+        return $this->loadInfo()[ 'isdst' ];
103 103
     }
104 104
 
105 105
     /**
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
     {
126 126
         $transitions = $this->getTransitions($timestamp, $timestamp);
127 127
         if (false === $transitions) {
128
-            $transitions = [['abbr' => null, 'isdst' => null, 'offset' => null]];
128
+            $transitions = [ [ 'abbr' => null, 'isdst' => null, 'offset' => null ] ];
129 129
         }
130 130
 
131
-        return $transitions[0];
131
+        return $transitions[ 0 ];
132 132
     }
133 133
 }
Please login to merge, or discard this patch.
src/Exception/ChainNoResult.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     /**
18 18
      * @var array
19 19
      */
20
-    private $exceptions = [];
20
+    private $exceptions = [ ];
21 21
 
22 22
     /**
23 23
      * ChainNoResult constructor.
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @param string $message
26 26
      * @param array  $exceptions Array of Exception instances.
27 27
      */
28
-    public function __construct($message, array $exceptions = [])
28
+    public function __construct($message, array $exceptions = [ ])
29 29
     {
30 30
         $this->exceptions = $exceptions;
31 31
 
Please login to merge, or discard this patch.
src/Provider/Chain.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * @var Provider[]
25 25
      */
26
-    private $providers = [];
26
+    private $providers = [ ];
27 27
 
28 28
     /**
29 29
      * Chain constructor.
30 30
      *
31 31
      * @param array $providers
32 32
      */
33
-    public function __construct(array $providers = [])
33
+    public function __construct(array $providers = [ ])
34 34
     {
35 35
         $this->providers = $providers;
36 36
     }
@@ -56,19 +56,19 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function find($lat, $lng, $timestamp = null)
58 58
     {
59
-        $exceptions = [];
59
+        $exceptions = [ ];
60 60
 
61 61
         /** @var Provider $provider */
62 62
         foreach ($this->providers as $provider) {
63 63
             try {
64 64
                 return $provider->find($lat, $lng, $timestamp);
65 65
             } catch (RuntimeException $ex) {
66
-                $exceptions[] = $ex;
66
+                $exceptions[ ] = $ex;
67 67
             }
68 68
         }
69 69
 
70 70
         throw new ChainNoResult(
71
-            sprintf('No provider could find %f,%f%s', $lat, $lng, $timestamp ? ' @'.$timestamp : ''),
71
+            sprintf('No provider could find %f,%f%s', $lat, $lng, $timestamp ? ' @' . $timestamp : ''),
72 72
             $exceptions
73 73
         );
74 74
     }
Please login to merge, or discard this patch.