Passed
Push — master ( dbb22f...476838 )
by Matthieu
04:08
created
src/IPv4/Subnet.php 1 patch
Indentation   +11 added lines, -12 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@  discard block
 block discarded – undo
24 24
  *  * Countable : number of addresses
25 25
  *  * ArrayAccess : Address can be acceesed by offset (ex : $range[10])
26 26
  *  * IteratorAggregate :   range can be itrated (foreach)
27
-
28 27
  * @package IPTools
29 28
  */
30 29
 class Subnet extends Range
@@ -34,15 +33,15 @@  discard block
 block discarded – undo
34 33
      */
35 34
     protected $netmask;
36 35
 
37
-     /**
38
-     * Creates an IP Subnet from a an IP network addresses and a netamsk
39
-     *
40
-     * Lower and upper bound are automaticly choosen, no need to choose wich one to pass first.
41
-     * Only 
42
-     *
43
-     * @param Address $baseAddress the first address of the range
44
-     * @param int $count the number  other bound
45
-     */
36
+        /**
37
+         * Creates an IP Subnet from a an IP network addresses and a netamsk
38
+         *
39
+         * Lower and upper bound are automaticly choosen, no need to choose wich one to pass first.
40
+         * Only 
41
+         *
42
+         * @param Address $baseAddress the first address of the range
43
+         * @param int $count the number  other bound
44
+         */
46 45
     public function __construct(Address $network, Address $netmask)
47 46
     {
48 47
         if (!($netmask instanceof Netmask))
@@ -64,7 +63,7 @@  discard block
 block discarded – undo
64 63
         $this->netmask = $netmask;
65 64
     }
66 65
 
67
-   /**
66
+    /**
68 67
      * Construct an IPv4 Subnet from a CIDR notation (#.#.#.#/#)
69 68
      *
70 69
      * @param Address $network the network base address  of the subnet
@@ -153,7 +152,7 @@  discard block
 block discarded – undo
153 152
         return static::fromCidr(
154 153
             $this->getNetworkAddress()->shift($offset*count($this)),
155 154
             $this->getNetmaskAddress()->asCidr()
156
-         );
155
+            );
157 156
     }
158 157
 
159 158
     /*
Please login to merge, or discard this patch.