@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function getSettlements() |
26 | 26 | { |
27 | - $this->db = $this->db->select(['address_id', 'title', 'code'])->from('fias_address_object'); |
|
27 | + $this->db = $this->db->select([ 'address_id', 'title', 'code' ])->from('fias_address_object'); |
|
28 | 28 | |
29 | 29 | return $this; |
30 | 30 | } |
@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | public function addressLevel($full_settlements = false) |
40 | 40 | { |
41 | 41 | if ($full_settlements == false) { |
42 | - $this->db = $this->db->andWhere(['address_level' => self::CITY]); |
|
42 | + $this->db = $this->db->andWhere([ 'address_level' => self::CITY ]); |
|
43 | 43 | } else { |
44 | - $this->db = $this->db->andWhere(['OR' => [['address_level' => self::CITY], ['address_level' => self::SETTLEMENT]]]); |
|
44 | + $this->db = $this->db->andWhere([ 'OR' => [ [ 'address_level' => self::CITY ], [ 'address_level' => self::SETTLEMENT ] ] ]); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | return $this; |