Test Setup Failed
Branch master (e50fd7)
by Syed Abidur
02:04
created
src/BooleanTimestampFieldManipulator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     protected static function bootBooleanTimestampFieldManipulator()
26 26
     {
27
-        static::saving(function (self $model) {
27
+        static::saving(function(self $model) {
28 28
             if (count($model::$boolTimestampFields)) {
29 29
                 foreach ($model::$boolTimestampFields as $field) {
30 30
                     unset($model->attributes[$model->getAppendableAttributeName($field)]);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             }
33 33
         });
34 34
 
35
-        static::saved(function (self $model) {
35
+        static::saved(function(self $model) {
36 36
             if (count($model::$boolTimestampFields)) {
37 37
                 foreach ($model::$boolTimestampFields as $field) {
38 38
                     if (!isset($model->attributes[$field])) {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             }
45 45
         });
46 46
 
47
-        static::retrieved(function (self $model) {
47
+        static::retrieved(function(self $model) {
48 48
             if (count($model::$boolTimestampFields)) {
49 49
                 foreach ($model::$boolTimestampFields as $field) {
50 50
                     $model->attributes[$model->getAppendableAttributeName($field)] = ($original = $model->getOriginal($field)) ? $model->asDateTime($original) : $original;
@@ -101,6 +101,6 @@  discard block
 block discarded – undo
101 101
 
102 102
     private static function getAppendableAttributeName($field)
103 103
     {
104
-        return 'time_being_'.preg_replace('/^is_/', '', $field);
104
+        return 'time_being_' . preg_replace('/^is_/', '', $field);
105 105
     }
106 106
 }
Please login to merge, or discard this patch.