Completed
Pull Request — master (#60)
by
unknown
01:35
created
src/Traits/Fetcher.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -12,35 +12,35 @@
 block discarded – undo
12 12
  */
13 13
 trait Fetcher
14 14
 {
15
-    /**
16
-     * Configuration for the Guzzle client
17
-     *
18
-     * @var array
19
-     */
20
-    protected $clientConfig = [];
15
+	/**
16
+	 * Configuration for the Guzzle client
17
+	 *
18
+	 * @var array
19
+	 */
20
+	protected $clientConfig = [];
21 21
 
22
-    /**
23
-     * Merges configuration arrays and returns the result
24
-     *
25
-     * @param array $extraConfig
26
-     * @return array
27
-     */
28
-    private function getClientConfig(array $extraConfig = [])
29
-    {
30
-        return array_merge($this->clientConfig, $extraConfig);
31
-    }
22
+	/**
23
+	 * Merges configuration arrays and returns the result
24
+	 *
25
+	 * @param array $extraConfig
26
+	 * @return array
27
+	 */
28
+	private function getClientConfig(array $extraConfig = [])
29
+	{
30
+		return array_merge($this->clientConfig, $extraConfig);
31
+	}
32 32
 
33
-    /**
34
-     * Fetch a response for a URL using Guzzle client.
35
-     *
36
-     * @param string $url
37
-     * @param array|null $extraConfig Extra configuration
38
-     * @return ResponseInterface
39
-     */
40
-    public function fetchResponse(string $url, array $extraConfig = [])
41
-    {
42
-        $config = $this->getClientConfig($extraConfig);
43
-        $client = new Client($config);
44
-        return $client->get($url);
45
-    }
33
+	/**
34
+	 * Fetch a response for a URL using Guzzle client.
35
+	 *
36
+	 * @param string $url
37
+	 * @param array|null $extraConfig Extra configuration
38
+	 * @return ResponseInterface
39
+	 */
40
+	public function fetchResponse(string $url, array $extraConfig = [])
41
+	{
42
+		$config = $this->getClientConfig($extraConfig);
43
+		$client = new Client($config);
44
+		return $client->get($url);
45
+	}
46 46
 }
Please login to merge, or discard this patch.