Passed
Push — master ( a205ac...d5069d )
by Anatoliy
02:30
created
src/decorators/GeocodeCache.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,20 +15,20 @@
 block discarded – undo
15 15
     /** @var \yii\caching\CacheInterface */
16 16
     private $cache;
17 17
 
18
-    public $duration=null;
18
+    public $duration = null;
19 19
 
20
-    public $dependency=null;
20
+    public $dependency = null;
21 21
 
22
-    public function __construct(Geocode $geocode,CacheInterface $cache)
22
+    public function __construct(Geocode $geocode, CacheInterface $cache)
23 23
     {
24
-        $this->geocode=$geocode;
25
-        $this->cache=$cache;
24
+        $this->geocode = $geocode;
25
+        $this->cache = $cache;
26 26
     }
27 27
 
28 28
     public function get($query, $params = [])
29 29
     {
30
-        return $this->cache->getOrSet($query,function ()use($query){
30
+        return $this->cache->getOrSet($query, function()use($query){
31 31
             return $this->geocode->get($query);
32
-        },$this->duration,$this->dependency);
32
+        },$this->duration, $this->dependency);
33 33
     }
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.