]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix style
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 18 May 2020 20:20:36 +0000 (22:20 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 18 May 2020 20:20:36 +0000 (22:20 +0200)
lib/PlaceLookup.php
test/php/Nominatim/ClassTypesTest.php

index 9cc62f6c8ecc0f03e6a1c7b9497f3fc2b578c313..eebfe98301cc16d2ffc100bbbc0869e358d71167 100644 (file)
@@ -449,8 +449,8 @@ class PlaceLookup
             }
 
             $aPlace['addresstype'] = ClassTypes\getLabelTag(
-                    $aPlace,
-                    $aPlace['country_code']
+                $aPlace,
+                $aPlace['country_code']
             );
         }
 
index 814e7cff6beec1d9da2736772d4cd1a5890afa2d..324acddecc7e1228f2e9f6b799b41642ff18c0dd 100644 (file)
@@ -9,41 +9,40 @@ class ClassTypesTest extends \PHPUnit\Framework\TestCase
     public function testGetLabelTag()
     {
         $aPlace = array('class' => 'boundary', 'type' => 'administrative',
-                        'rank_address' => '4', 'place_type' => 'city');
+                   'rank_address' => '4', 'place_type' => 'city');
         $this->assertEquals('city', ClassTypes\getLabelTag($aPlace));
 
         $aPlace = array('class' => 'boundary', 'type' => 'administrative',
-                        'rank_address' => '10');
+                   'rank_address' => '10');
         $this->assertEquals('state_district', ClassTypes\getLabelTag($aPlace));
 
         $aPlace = array('class' => 'boundary', 'type' => 'administrative');
         $this->assertEquals('administrative', ClassTypes\getLabelTag($aPlace));
 
-        $aPlace = array('class' => 'place', 'type' => 'hamlet',
-                        'rank_address' => '20');
+        $aPlace = array('class' => 'place', 'type' => 'hamlet', 'rank_address' => '20');
         $this->assertEquals('hamlet', ClassTypes\getLabelTag($aPlace));
 
         $aPlace = array('class' => 'highway', 'type' => 'residential',
-                        'rank_address' => '26');
+                   'rank_address' => '26');
         $this->assertEquals('road', ClassTypes\getLabelTag($aPlace));
 
         $aPlace = array('class' => 'place', 'type' => 'house_number',
-                        'rank_address' => '30');
+                   'rank_address' => '30');
         $this->assertEquals('house_number', ClassTypes\getLabelTag($aPlace));
 
         $aPlace = array('class' => 'amenity', 'type' => 'prison',
-                        'rank_address' => '30');
+                   'rank_address' => '30');
         $this->assertEquals('amenity', ClassTypes\getLabelTag($aPlace));
     }
 
     public function testGetLabel()
     {
         $aPlace = array('class' => 'boundary', 'type' => 'administrative',
-                        'rank_address' => '4', 'place_type' => 'city');
+                   'rank_address' => '4', 'place_type' => 'city');
         $this->assertEquals('City', ClassTypes\getLabel($aPlace));
 
         $aPlace = array('class' => 'boundary', 'type' => 'administrative',
-                        'rank_address' => '10');
+                   'rank_address' => '10');
         $this->assertEquals('State District', ClassTypes\getLabel($aPlace));
 
         $aPlace = array('class' => 'boundary', 'type' => 'administrative');