@@ -16,16 +16,16 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public $timestamps = false; |
| 18 | 18 | |
| 19 | - public function getIpAttribute( $ip ) |
|
| 19 | + public function getIpAttribute($ip) |
|
| 20 | 20 | { |
| 21 | - if (!empty($ip)){ |
|
| 22 | - return inet_ntop( $ip ); |
|
| 21 | + if (!empty($ip)) { |
|
| 22 | + return inet_ntop($ip); |
|
| 23 | 23 | } |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function setIpAttribute( $ip ) |
|
| 26 | + public function setIpAttribute($ip) |
|
| 27 | 27 | { |
| 28 | - $this->attributes['ip'] = inet_pton( $ip ); |
|
| 28 | + $this->attributes['ip'] = inet_pton($ip); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | // -- Define Reletionships -- |