Completed
Branch master (b46162)
by Mario
04:03
created
Category
lib/Hydrator/BaseHydrator.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
48 48
     protected function getDateTime($key, $data)
49 49
     {
50 50
         $date = empty($data[$key]) ?
51
-            null :
52
-            \DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data[$key], new \DateTimeZone('UTC'));
51
+            null : \DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data[$key], new \DateTimeZone('UTC'));
53 52
 
54 53
         if ($date) {
55 54
             return $date;
Please login to merge, or discard this patch.
lib/Factory/WeatherFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
     public function createDailyForecastService()
126 126
     {
127 127
         return new DailyForecast(
128
-            $this->httpClient,$this->factory, $this->cache, new DailyForecastHydrator($this->hydratorFactory->create())
128
+            $this->httpClient, $this->factory, $this->cache, new DailyForecastHydrator($this->hydratorFactory->create())
129 129
         );
130 130
     }
131 131
 }
Please login to merge, or discard this patch.
lib/Http/Response/JsonResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $this->data = $data;
29 29
 
30 30
         if (is_array($data) && array_key_exists('cod', $data)) {
31
-            $this->httpCode = (int) $data['cod'];
31
+            $this->httpCode = (int)$data['cod'];
32 32
         } else {
33 33
             $this->httpCode = $httpCode;
34 34
         }
Please login to merge, or discard this patch.
lib/Core/Cache/Memcached.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         // as a relative value, so we will make sure that it is converted to a timestamp for consistent
64 64
         // usage later on
65 65
         if ($this->ttl < 60 * 60 * 24 * 30) {
66
-            $this->ttl = time() + (int) $this->ttl;
66
+            $this->ttl = time() + (int)$this->ttl;
67 67
         }
68 68
 
69 69
         $this->memcached->set($cacheKey, $data, $this->ttl);
Please login to merge, or discard this patch.