Test Setup Failed
Push — master ( c57aa3...f66e77 )
by Syed Abidur
02:23
created
src/BooleanTimestampFieldManipulator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,18 +28,18 @@  discard block
 block discarded – undo
28 28
      */
29 29
     protected static function bootBooleanTimestampFieldManipulator()
30 30
     {
31
-        static::saving(function (self $model) {
31
+        static::saving(function(self $model) {
32 32
             foreach ((array) $model::$boolTimestampFields as $field) {
33 33
                 unset($model->attributes[$model->getAppendableAttributeName($field)]);
34 34
             }
35 35
         });
36 36
 
37
-        static::saved(function (self $model) {
37
+        static::saved(function(self $model) {
38 38
             $model->setBoolTimestampFieldsIntoAttributes($model);
39 39
         });
40 40
 
41 41
         if (method_exists(__CLASS__, 'retrieved')) {
42
-            static::retrieved(function (self $model) {
42
+            static::retrieved(function(self $model) {
43 43
                 foreach ((array) $model::$boolTimestampFields as $field) {
44 44
                     $original = $model->getOriginal($field);
45 45
                     $model->attributes[$field] = !empty($original);
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
     private static function getAppendableAttributeName($field)
106 106
     {
107
-        return 'time_being_'.preg_replace('/^is_/', '', $field);
107
+        return 'time_being_' . preg_replace('/^is_/', '', $field);
108 108
     }
109 109
 
110 110
     private function setBoolTimestampFieldsIntoAttributes(self $model, $checkAttributeExists = false)
Please login to merge, or discard this patch.