Passed
Push — master ( 925cb8...9cc87f )
by Jordi
05:10
created
src/Http/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
      */
25 25
     public function doRequest($url, $queryString)
26 26
     {
27
-        return $this->http->request($url . '?' . $queryString);
27
+        return $this->http->request($url.'?'.$queryString);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Ip2c.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     public function dec($ip2long)
53 53
     {
54
-        return $this->doRequest($this->queryStringDec . $ip2long);
54
+        return $this->doRequest($this->queryStringDec.$ip2long);
55 55
     }
56 56
 
57 57
     /**
Please login to merge, or discard this patch.
tests/example.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../vendor/autoload.php';
3
+include __DIR__.'/../vendor/autoload.php';
4 4
 
5 5
 $ip2c = \Ip2c\Ip2cFactory::build();
6 6
 
7 7
 $result = $ip2c->self();
8 8
 
9
-echo "Status: " . $result->status() . "\n";
10
-echo "Iso2: " . $result->iso2() . "\n";
11
-echo "Iso3: " . $result->iso3() . "\n";
12
-echo "Name: " . $result->name() . "\n";
9
+echo "Status: ".$result->status()."\n";
10
+echo "Iso2: ".$result->iso2()."\n";
11
+echo "Iso3: ".$result->iso3()."\n";
12
+echo "Name: ".$result->name()."\n";
13 13
 
14 14
 /* Outputs
15 15
     Status: 1
Please login to merge, or discard this patch.
tests/Unit/Ip/IpUtilTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
 
54 54
     private function generateIp()
55 55
     {
56
-        return rand(1, 255) . "." . rand(1, 255) . "." . rand(1, 255) . "." . rand(1, 255);
56
+        return rand(1, 255).".".rand(1, 255).".".rand(1, 255).".".rand(1, 255);
57 57
     }
58 58
 }
Please login to merge, or discard this patch.