Completed
Branch heritage_class (c07d31)
by Maxime
02:23
created
src/Nominatim.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,21 +76,18 @@
 block discarded – undo
76 76
 				'timeout'			 => 30,
77 77
 				'connection_timeout' => 5,
78 78
 			]);
79
-		} 
80
-		else if ($http_client instanceof Client)
79
+		} else if ($http_client instanceof Client)
81 80
 		{
82 81
 			$application_url_client = $http_client->getConfig('base_uri');
83 82
 
84 83
 			if (!isset($application_url_client))
85 84
 			{
86 85
 				$http_client->setDefaultOption('base_uri', $application_url);
87
-			}
88
-			else if ($application_url_client != $application_url)
86
+			} else if ($application_url_client != $application_url)
89 87
 			{
90 88
 				throw new InvalidParameterException("http_client parameter has a differente url to application_url parameter");
91 89
 			}
92
-		}
93
-		else
90
+		} else
94 91
 		{
95 92
 			throw new InvalidParameterException("http_client parameter must be a GuzzleHttp\Client object or empty");
96 93
 		}
Please login to merge, or discard this patch.