Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpar06 authored and StyleCIBot committed May 15, 2024
1 parent 2a72f02 commit 55e680f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
return new class() extends Migration {
/**
* Run the migrations.
*/
Expand Down
6 changes: 3 additions & 3 deletions app/Repositories/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public function model()
/**
* Get all of the fields which has the mapped values
*
* @param User $user
* @param bool $only_public_fields Only include the user's public fields
* @param User $user
* @param bool $only_public_fields Only include the user's public fields
* @param mixed $with_internal_fields
*
* @return \App\Models\UserField[]|\Illuminate\Database\Eloquent\Collection|\Illuminate\Support\Collection
*/
public function getUserFields(User $user, $only_public_fields = null, $with_internal_fields = false): Collection
{

$fields = UserField::when(!$with_internal_fields, function ($query) {
return $query->where('internal', false);
});
Expand Down

0 comments on commit 55e680f

Please sign in to comment.