Completed
Branch heritage_class (c7b9cc)
by Maxime
02:29
created
src/Search.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	{
203 203
 		$args = func_get_args();
204 204
 
205
-		if(count($args) > 0)
205
+		if (count($args) > 0)
206 206
 		{
207 207
 			$this->query['exclude_place_ids'] = implode(', ', $args);
208 208
 
@@ -236,9 +236,9 @@  discard block
 block discarded – undo
236 236
 	 */
237 237
 	public function polygon($polygon)
238 238
 	{
239
-		if(in_array($polygon, $this->polygon))
239
+		if (in_array($polygon, $this->polygon))
240 240
 		{
241
-			$this->query['polygon_'.$polygon] = "1";
241
+			$this->query['polygon_' . $polygon] = "1";
242 242
 
243 243
 			return $this;
244 244
 		}
Please login to merge, or discard this patch.
src/Query.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	 */
45 45
 	public function __construct(array $query = [])
46 46
 	{
47
-		if(!isset($query['format']))
47
+		if (!isset($query['format']))
48 48
 		{
49 49
 			//Default format
50 50
 			$query['format'] = 'json';
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	{
70 70
 		$format = strtolower($format);
71 71
 
72
-		if(in_array($format, $this->accepteFormat))
72
+		if (in_array($format, $this->accepteFormat))
73 73
 		{
74 74
 			$this->query['format'] = $format;
75 75
 			$this->setFormat($format);
Please login to merge, or discard this patch.
src/Reverse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 */
56 56
 	public function osmType($type)
57 57
 	{
58
-		if(in_array($type, $this->osmType))
58
+		if (in_array($type, $this->osmType))
59 59
 		{
60 60
 			$this->query['osm_type'] = $type;
61 61
 
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
 	 */
122 122
 	public function polygon($polygon)
123 123
 	{
124
-		if(in_array($polygon, $this->polygon))
124
+		if (in_array($polygon, $this->polygon))
125 125
 		{
126
-			$this->query['polygon_'.$polygon] = "1";
126
+			$this->query['polygon_' . $polygon] = "1";
127 127
 
128 128
 			return $this;
129 129
 		}
Please login to merge, or discard this patch.