Passed
Push — master ( 85c714...92af55 )
by Morten Poul
02:37 queued 11s
created
src/Manageable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@  discard block
 block discarded – undo
9 9
 {
10 10
     protected static function bootManageable()
11 11
     {
12
-        static::creating(function (Model $model) {
12
+        static::creating(function(Model $model) {
13 13
             $model->setManageable('created_by', 'creator');
14 14
         });
15 15
 
16
-        static::updating(function (Model $model) {
16
+        static::updating(function(Model $model) {
17 17
             $model->setManageable('updated_by', 'editor');
18 18
         });
19 19
     }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     protected function setManageable(string $type, string $relation)
42 42
     {
43
-        if (! isset($this->{$type}) && Auth::check()) {
43
+        if ( ! isset($this->{$type}) && Auth::check()) {
44 44
             $this->{$type} = Auth::id();
45 45
             $this->setRelation($relation, Auth::user());
46 46
         }
Please login to merge, or discard this patch.
src/ManageableServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function boot()
19 19
     {
20
-        Blueprint::macro('manageable', function ($bigIntegers = true, $foreignTable = 'users', $foreignKey = 'id') {
20
+        Blueprint::macro('manageable', function($bigIntegers = true, $foreignTable = 'users', $foreignKey = 'id') {
21 21
             $createdBy = $bigIntegers
22 22
                 ? $this->unsignedBigInteger($this->createdBy)
23 23
                 : $this->unsignedInteger($this->createdBy);
Please login to merge, or discard this patch.