Skip to content

Commit

Permalink
style: format code with PHP CS Fixer
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 0425f4c according to the output
from PHP CS Fixer.

Details: #358
  • Loading branch information
deepsource-autofix[bot] authored and viktorcsimma committed Oct 28, 2023
1 parent da2b55b commit 983f71d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Exports/UsersSheets/CollegistsExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function map($user): array
{

return [
'=HYPERLINK("'.route('users.show', ['user'=> $user->id]).'", "'.$user->name.'")',
'=HYPERLINK("'.route('users.show', ['user' => $user->id]).'", "'.$user->name.'")',
$user->educationalInformation?->neptun,
$user->isResident() ? 'Bentlakó' : ($user->isResidentExtern() ? 'Bentlakó-bejáró' :
($user->isExtern() ? 'Bejáró' : ($user->isAlumni() ? "Alumni" : ($user->isTenant() ? "Vendég" : "")))),
Expand Down
2 changes: 1 addition & 1 deletion app/Exports/UsersSheets/SemesterEvaluationExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function map($evaluation): array
$user = $evaluation->user;

return [
'=HYPERLINK("'.route('users.show', ['user'=> $user->id]).'", "'.$user->name.'")',
'=HYPERLINK("'.route('users.show', ['user' => $user->id]).'", "'.$user->name.'")',
$user->educationalInformation?->neptun,
implode(" \n", $user->faculties->pluck('name')->toArray()),
implode(" \n", $user->workshops->pluck('name')->toArray()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,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
2 changes: 1 addition & 1 deletion database/seeders/UsersTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private function createCollegist($user)
$user->roles()->attach(
Role::get(Role::COLLEGIST)->id,
[
'object_id' => RoleObject::firstWhere('name', Role::STATUSES[rand(0, count(Role::STATUSES)-1)])->id
'object_id' => RoleObject::firstWhere('name', Role::STATUSES[rand(0, count(Role::STATUSES) - 1)])->id
]
);
$user->educationalInformation()->save(EducationalInformation::factory()->make(['user_id' => $user->id]));
Expand Down

0 comments on commit 983f71d

Please sign in to comment.