Completed
Pull Request — master (#1)
by nicolas
02:41
created
src/Cdn77/Query/PurgeFileQuery.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Dekalee\Cdn77\Query;
4 4
 
5
-use Dekalee\Cdn77\Exception\QueryErrorException;
6
-use GuzzleHttp\Client;
7
-
8 5
 /**
9 6
  * Class PurgeFileQuery
10 7
  */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         $urls = [];
26 26
         foreach ($files as $file) {
27
-            $urls[] = '/' . urlencode($file);
27
+            $urls[] = '/'.urlencode($file);
28 28
         }
29 29
 
30 30
         $cdnResources = array_filter($this->cdnResources, function($value, $key) use ($resource) {
Please login to merge, or discard this patch.
src/Cdn77/Query/ListResourcesQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         $this->url = $url;
29 29
         $this->login = $login;
30
-        $this->client = $client?: new Client();
30
+        $this->client = $client ?: new Client();
31 31
         $this->password = $password;
32 32
     }
33 33
 
Please login to merge, or discard this patch.
src/Cdn77/Query/AbstractPurgeQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
      */
29 29
     public function __construct(ListResourcesQuery $listResourcesQuery, $login, $password, $url = null, Client $client = null)
30 30
     {
31
-        $this->url = null === $url?static::URL: $url;
31
+        $this->url = null === $url ? static::URL : $url;
32 32
         $this->login = $login;
33
-        $this->client = $client?: new Client();
33
+        $this->client = $client ?: new Client();
34 34
         $this->password = $password;
35 35
         $this->listResourcesQuery = $listResourcesQuery;
36 36
     }
Please login to merge, or discard this patch.
src/Cdn77/Query/CreateResourceQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         $this->url = $url;
29 29
         $this->login = $login;
30
-        $this->client = $client?: new Client();
30
+        $this->client = $client ?: new Client();
31 31
         $this->password = $password;
32 32
     }
33 33
 
Please login to merge, or discard this patch.