@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use phm\HttpWebdriverClient\Http\Client\Guzzle\GuzzleClient as phmGuzzleClient; |
6 | 6 | use phm\HttpWebdriverClient\Http\Client\Decorator\FileCacheDecorator; |
7 | -use phm\HttpWebdriverClient\Http\Client\Decorator\LoggerDecorator; |
|
8 | 7 | use phm\HttpWebdriverClient\Http\Client\HttpClient; |
9 | 8 | use Psr\Http\Message\RequestInterface; |
10 | 9 |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | private function initConfigArray(array $configArray, array $defaultSettings = null) |
68 | 68 | { |
69 | 69 | if ($defaultSettings === null) { |
70 | - $defaultSettings = Yaml::parse(file_get_contents(__DIR__ . '/../settings/' . self::DEFAULT_SETTINGS)); |
|
70 | + $defaultSettings = Yaml::parse(file_get_contents(__DIR__.'/../settings/'.self::DEFAULT_SETTINGS)); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | if (count($configArray) === 0) { |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | if ($this->hasSection($section)) { |
170 | 170 | return $this->configArray[$section]; |
171 | 171 | } else { |
172 | - throw new \RuntimeException('The section (' . $section . ') you are trying to access does not exist.'); |
|
172 | + throw new \RuntimeException('The section ('.$section.') you are trying to access does not exist.'); |
|
173 | 173 | } |
174 | 174 | } |
175 | 175 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | if (array_key_exists($name, $this->extensions)) { |
179 | 179 | return $this->extensions[$name]; |
180 | 180 | } else { |
181 | - throw new \RuntimeException('The extension ("' . $name . '") you are trying to access does not exist. Registered extensions are: ' . implode(' ,', array_keys($this->extensions)) . '.'); |
|
181 | + throw new \RuntimeException('The extension ("'.$name.'") you are trying to access does not exist. Registered extensions are: '.implode(' ,', array_keys($this->extensions)).'.'); |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | try { |
204 | 204 | $client = Init::initialize($this->configArray['client']); |
205 | 205 | } catch (\Exception $e) { |
206 | - throw new ConfigurationException('Error initializing client (' . $e->getMessage() . ')'); |
|
206 | + throw new ConfigurationException('Error initializing client ('.$e->getMessage().')'); |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | return $client; |