@@ -15,20 +15,20 @@ |
||
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 |