Completed
Push — develop ( fe1589...9aaff5 )
by Neil
04:59
created
app/Devices.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,16 +16,16 @@
 block discarded – undo
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 --
Please login to merge, or discard this patch.