Completed
Branch master (a0b8e2)
by Konstantin
02:08
created
app/models/queries/SettlementsDatabaseQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.