Passed
Pull Request — master (#12)
by Alfred
02:08
created
src/bin/GeoipNetwork.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
     /**
11 11
      * @var string $ipAddress
12
-    **/
12
+     **/
13 13
     private $ipAddress=null;
14 14
 
15 15
     public function __construct($ipAddress=null)
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,9 +57,11 @@
 block discarded – undo
57 57
         try
58 58
         {
59 59
             $this->validateAddress($ipAddress);
60
-            if (strpos($ipAddress, ':') !== false) // IPv6 address
60
+            if (strpos($ipAddress, ':') !== false) {
61
+                // IPv6 address
61 62
             {
62 63
                 $hex = unpack('H*hex', inet_pton($ipAddress));
64
+            }
63 65
                 $ipAddress = substr(preg_replace('/([A-f0-9]{4})/', "$1:", $hex['hex']), 0, -1);
64 66
                 $ipAddress = strtoupper($ipAddress);
65 67
             }
Please login to merge, or discard this patch.
src/bin/GeoipDatabase.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
     private $oPDOInstance;
18 18
     /**
19 19
      * PDO transaction Counter
20
-    *
21
-    * @var integer
22
-    */
20
+     *
21
+     * @var integer
22
+     */
23 23
     private $transactionCounter = 0;
24 24
     /**
25 25
      * Class Constructor
Please login to merge, or discard this patch.
src/GeoIP2Country.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@
 block discarded – undo
11 11
      * PDO SQLite3 database instance
12 12
      *
13 13
      * @var GeoipDatabase
14
-    **/
14
+     **/
15 15
     private $oDBInstance=null;
16 16
 
17 17
     /**
18 18
      * Network tools class instance
19 19
      *
20 20
      * @var GeoipNetwork
21
-    **/
21
+     **/
22 22
     private $oNetwork=null;
23 23
 
24 24
     /**
Please login to merge, or discard this patch.