Completed
Push — master ( 82bd5b...2cee2c )
by nicolas
04:32 queued 01:59
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.
src/Cdn77/Query/ResourceLogQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
         foreach ($this->cdnResources as $cdnResource) {
22 22
             if (false !== strpos($cdnResource['cname'], $resource)) {
23
-                $url = sprintf($this->url . '?login=%s&passwd=%s&cdn_id=%d&period=4&http_status[]=cached&http_status[]=noncached',
23
+                $url = sprintf($this->url.'?login=%s&passwd=%s&cdn_id=%d&period=4&http_status[]=cached&http_status[]=noncached',
24 24
                     $this->login,
25 25
                     $this->password,
26 26
                     $cdnResource['id']
Please login to merge, or discard this patch.