Completed
Push — develop ( 6d4cdf...e482b1 )
by Chris
04:29
created
src/Cloudflare.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
         $configDist = $config.'.dist';
26 26
         $dir = $_SERVER['DOCUMENT_ROOT'];
27 27
 
28
-        if (@file_exists($dir . $config)) {
28
+        if (@file_exists($dir.$config)) {
29 29
             $load = $config;
30
-        } elseif (@file_exists($dir . $configDist)) {
30
+        } elseif (@file_exists($dir.$configDist)) {
31 31
             $load = $configDist;
32 32
         } else {
33 33
             die('Unable to load either "'.$config.'" or "'.$configDist.'"');
Please login to merge, or discard this patch.
tests/Cloudflare/ZoneTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@
 block discarded – undo
42 42
 
43 43
         $sting = explode('zones?', $RequestURL)[1];
44 44
 
45
-        $shouldBe = "name=" . $domain
46
-            . "&status=" . $options['status']
47
-            . "&page=" . $options['page']
48
-            . "&per_page=" . $options['per_page']
49
-            . "&order=" . $options['order']
50
-            . "&direction=" . $options['direction']
51
-            . "&match=". $options['match'];
45
+        $shouldBe = "name=".$domain
46
+            . "&status=".$options['status']
47
+            . "&page=".$options['page']
48
+            . "&per_page=".$options['per_page']
49
+            . "&order=".$options['order']
50
+            . "&direction=".$options['direction']
51
+            . "&match=".$options['match'];
52 52
 
53 53
         $this->assertSame($sting, $shouldBe, 'Request URL is not correct');
54 54
     }
Please login to merge, or discard this patch.
src/ZoneAnalytics.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
29 29
 
30 30
         $string = "?";
31 31
         foreach ($newOptions as $k => $v) {
32
-            $string .= $k . '=' . $v . '&';
32
+            $string .= $k.'='.$v.'&';
33 33
         }
34 34
 
35 35
         //Remove the last '&'
36 36
         $string = substr($string, 0, -1);
37 37
 
38
-        try{
39
-            $this->makeRequest($this->URL . '/' . $zone . '/analytics/dashboard/' . $string);
38
+        try {
39
+            $this->makeRequest($this->URL.'/'.$zone.'/analytics/dashboard/'.$string);
40 40
         } catch (ClientException $e) {
41 41
             return false;
42 42
         }
Please login to merge, or discard this patch.
src/Zone.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,20 +43,20 @@  discard block
 block discarded – undo
43 43
 
44 44
         $string = "?";
45 45
         foreach ($newOptions as $k => $v) {
46
-            $string .= $k . '=' . $v . '&';
46
+            $string .= $k.'='.$v.'&';
47 47
         }
48 48
 
49 49
         //Remove the last '&'
50 50
         $string = substr($string, 0, -1);
51 51
 
52
-        $this->makeRequest($this->URL . $string);
52
+        $this->makeRequest($this->URL.$string);
53 53
 
54 54
         return $this->getResponse();
55 55
     }
56 56
 
57 57
     public function getDetails($zoneID)
58 58
     {
59
-        $this->makeRequest($this->URL . '/' . $zoneID);
59
+        $this->makeRequest($this->URL.'/'.$zoneID);
60 60
 
61 61
         return $this->getResponse();
62 62
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     public function clearCache($zoneId)
65 65
     {
66 66
         $this->makeRequest(
67
-            $this->URL . '/' . $zoneId . '/purge_cache',
67
+            $this->URL.'/'.$zoneId.'/purge_cache',
68 68
             'DELETE',
69 69
             ['purge_everything' => true]
70 70
         );
Please login to merge, or discard this patch.
src/DNS.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function fetch()
25 25
     {
26
-        $this->makeRequest($this->getURL($this->URL . '?per_page=100'));
26
+        $this->makeRequest($this->getURL($this->URL.'?per_page=100'));
27 27
         $response = $this->getResponse();
28 28
 
29
-        if($response->success != true) {
29
+        if ($response->success != true) {
30 30
             return false;
31 31
         }
32 32
 
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function getInfo($id)
37 37
     {
38
-        $url = "zones/%s/dns_records/" . $id;
38
+        $url = "zones/%s/dns_records/".$id;
39 39
         $this->makeRequest($this->getURL($url));
40 40
         $response = $this->getResponse();
41 41
 
42
-        if($response->success != true) {
42
+        if ($response->success != true) {
43 43
             return false;
44 44
         }
45 45
 
@@ -58,15 +58,15 @@  discard block
 block discarded – undo
58 58
             'ttl' => $ttl
59 59
         ];
60 60
 
61
-        $url = $this->getURL($this->URL) . '/';
61
+        $url = $this->getURL($this->URL).'/';
62 62
         try {
63 63
             $this->makeRequest($url, 'POST', $data);
64
-        } catch(\Exception $e) {
64
+        } catch (\Exception $e) {
65 65
             //var_dump($e);
66 66
         }
67 67
         $response = $this->getResponse();
68 68
 
69
-        if($response->success != true) {
69
+        if ($response->success != true) {
70 70
             return false;
71 71
         }
72 72
 
@@ -83,15 +83,15 @@  discard block
 block discarded – undo
83 83
             $data['content'] = $value;
84 84
         }
85 85
 
86
-        $url = $this->getURL($this->URL) . '/' . $id;
86
+        $url = $this->getURL($this->URL).'/'.$id;
87 87
         try {
88 88
             $this->makeRequest($url, 'PUT', $data);
89
-        } catch(\Exception $e) {
89
+        } catch (\Exception $e) {
90 90
             //var_dump($e);
91 91
         }
92 92
         $response = $this->getResponse();
93 93
 
94
-        if($response->success != true) {
94
+        if ($response->success != true) {
95 95
             return false;
96 96
         }
97 97
 
@@ -100,16 +100,16 @@  discard block
 block discarded – undo
100 100
 
101 101
     public function delete($id)
102 102
     {
103
-        $url = $this->getURL($this->URL) . '/' . $id;
103
+        $url = $this->getURL($this->URL).'/'.$id;
104 104
         try {
105 105
             $this->makeRequest($url, 'DELETE');
106
-        } catch(\Exception $e) {
106
+        } catch (\Exception $e) {
107 107
             //var_dump($e);
108 108
         }
109 109
 
110 110
         $response = $this->getResponse();
111 111
 
112
-        if($response->success === true) {
112
+        if ($response->success === true) {
113 113
             return true;
114 114
         }
115 115
 
Please login to merge, or discard this patch.
src/Traits/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public function makeRequest($request = "", $type = "GET", $data = null)
27 27
     {
28
-        $this->setRequestURL($this->CF->getEndpoint() . $request);
28
+        $this->setRequestURL($this->CF->getEndpoint().$request);
29 29
 
30 30
         //Use in testing to not actualy make the request
31 31
         if ($this->CF->getMakeRequests() === false) {
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,4 +2,4 @@
 block discarded – undo
2 2
 /**
3 3
  * @author Chris Hilsdon <[email protected]>
4 4
  */
5
-require __DIR__ . '/../vendor/autoload.php';
5
+require __DIR__.'/../vendor/autoload.php';
Please login to merge, or discard this patch.