@@ -26,11 +26,11 @@ discard block |
||
26 | 26 | */ |
27 | 27 | const TITLES = [ |
28 | 28 | 'Mr.', |
29 | - 'Ms.', // address for women regardless of their marital status |
|
29 | + 'Ms.', // address for women regardless of their marital status |
|
30 | 30 | 'Mrs.', |
31 | 31 | 'Miss', |
32 | - 'Mx.', // a title that does not indicate gender |
|
33 | - 'Adv.', // advocate |
|
32 | + 'Mx.', // a title that does not indicate gender |
|
33 | + 'Adv.', // advocate |
|
34 | 34 | 'Capt.', // captain |
35 | 35 | 'Dr.', |
36 | 36 | 'Prof.', // professor |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function __construct($fullname = null, $title = null) |
94 | 94 | { |
95 | - if($fullname) { |
|
95 | + if ($fullname) { |
|
96 | 96 | $this->buildFromString($fullname); |
97 | 97 | } |
98 | 98 |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | public static function createFromCidrNotation($cidr) |
85 | 85 | { |
86 | 86 | list($subnet, $bits) = explode('/', $cidr); |
87 | - $start = long2ip((ip2long($subnet)) & ((-1 << (32 - (int)$bits)))); |
|
88 | - $end = long2ip((ip2long($subnet)) + pow(2, (32 - (int)$bits))-1); |
|
87 | + $start = long2ip((ip2long($subnet)) & ((-1 << (32 - (int) $bits)))); |
|
88 | + $end = long2ip((ip2long($subnet)) + pow(2, (32 - (int) $bits)) - 1); |
|
89 | 89 | |
90 | 90 | return new IpRange(new IpAddress($start), new IpAddress($end)); |
91 | 91 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | public function __toString() |
101 | 101 | { |
102 | - return $this->isEmpty() ? '' : (string) $this->startIp.' - '. $this->endIp; |
|
102 | + return $this->isEmpty() ? '' : (string) $this->startIp.' - '.$this->endIp; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |