Completed
Push — master ( 7b9353...8543f0 )
by Chris
02:56
created
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.
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/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")
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.
src/Zone.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 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
         return $this->getResponse();
54 54
     }
55 55
 }
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/Cloudflare.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public function getGuzzle()
44 44
     {
45 45
         //If Guzzle has not been setup yet
46
-        if($this->Guzzle === null) {
46
+        if ($this->Guzzle === null) {
47 47
             var_dump('Guzzle was created');
48 48
             $Guzzle = new Client();
49 49
             $this->setGuzzle($Guzzle);
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
         $configDist = $config.'.dist';
84 84
         $dir = $_SERVER['DOCUMENT_ROOT'];
85 85
 
86
-        if (@file_exists($dir . $config)) {
86
+        if (@file_exists($dir.$config)) {
87 87
             $load = $config;
88
-        } elseif (@file_exists($dir . $configDist)) {
88
+        } elseif (@file_exists($dir.$configDist)) {
89 89
             $load = $configDist;
90 90
         } else {
91 91
             die('Unable to load either "'.$config.'" or "'.$configDist.'"');
Please login to merge, or discard this patch.