Passed
Push — master ( 270527...372072 )
by Ricardo
02:54
created
src/Eloquent/Concerns/ChronosInteractsWithPivotTable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
      */
14 14
     protected function getCurrentlyAttachedPivots()
15 15
     {
16
-        return $this->newPivotQuery()->get()->map(function ($record) {
16
+        return $this->newPivotQuery()->get()->map(function($record) {
17 17
             $class = $this->using ? $this->using : Pivot::class;
18 18
 
19
-            $pivot = $class::fromRawAttributes($this->parent, (array)$record, $this->getTable(), true);
19
+            $pivot = $class::fromRawAttributes($this->parent, (array) $record, $this->getTable(), true);
20 20
 
21 21
             return $pivot->setPivotKeys($this->foreignPivotKey, $this->relatedPivotKey);
22 22
         });
Please login to merge, or discard this patch.
src/Eloquent/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             static::newQueryWithoutScopes()->findOrFail($this->getKey())->attributes
45 45
         );
46 46
 
47
-        $this->load(Collection::make($this->relations)->reject(function ($relation) {
47
+        $this->load(Collection::make($this->relations)->reject(function($relation) {
48 48
             return $relation instanceof Pivot;
49 49
         })->keys()->all());
50 50
 
Please login to merge, or discard this patch.