Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte authored and actions-user committed Aug 17, 2021
1 parent 390f3fe commit 34ad214
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Models/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ protected function fillModelFromArray(array $attributes)
$this->exists = true;
$this->original['id'] = $attributes['id'];
}

return $this;
}

Expand All @@ -197,6 +198,7 @@ protected function fillModelFromArray(array $attributes)
public static function getModelFromArray(array $attributes): ?PermissionContract
{
$permission = new static;

return $permission->fillModelFromArray($attributes);
}
}
2 changes: 2 additions & 0 deletions src/Models/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ protected function fillModelFromArray(array $attributes)
$this->exists = true;
$this->original['id'] = $attributes['id'];
}

return $this;
}

Expand All @@ -183,6 +184,7 @@ protected function fillModelFromArray(array $attributes)
public static function getModelFromArray(array $attributes): ?RoleContract
{
$roles = new static;

return $roles->fillModelFromArray($attributes);
}
}
2 changes: 2 additions & 0 deletions src/PermissionRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ private function loadPermissions()
unset($permissions[$i]['roles'][$j]['pivot']);
}
}

return $permissions;
});
if (is_array($this->permissions)) {
Expand Down Expand Up @@ -159,6 +160,7 @@ public function getPermissions(array $params = [], bool $onlyOne = false): Colle
return false;
}
}

return true;
});

Expand Down

0 comments on commit 34ad214

Please sign in to comment.