diff --git a/app/Http/Controllers/DiaryController.php b/app/Http/Controllers/DiaryController.php index 4a0a62c..5fcf954 100644 --- a/app/Http/Controllers/DiaryController.php +++ b/app/Http/Controllers/DiaryController.php @@ -79,7 +79,7 @@ class DiaryController extends Controller $curDiary->wakeup = '06:30'; $curDiary->retire = '22:30'; $curDiary->user_id = $curUserId; - $curDiary->closed = (int)false; + $curDiary->closed = (int) false; $curDiary->comment = ''; $curDiary->save(); diff --git a/app/Livewire/ProductNutritional/Edit.php b/app/Livewire/ProductNutritional/Edit.php index d95d354..530a099 100644 --- a/app/Livewire/ProductNutritional/Edit.php +++ b/app/Livewire/ProductNutritional/Edit.php @@ -93,7 +93,6 @@ class Edit extends Component $this->product->save(); $this->redirectRoute('product_nutritional_value.index'); - } public function recalulateVals(int $mass): void diff --git a/app/Messages/ChatMessage.php b/app/Messages/ChatMessage.php index 4e2aa4b..b0177ec 100644 --- a/app/Messages/ChatMessage.php +++ b/app/Messages/ChatMessage.php @@ -20,7 +20,6 @@ class ChatMessage public function someRandomFillFunction(): void { - $users1 = User::all()->pluck('id'); $users2 = User::all()->pluck('id'); $faker = FakerFactory::create(); diff --git a/app/Models/BlogPost.php b/app/Models/BlogPost.php index 9d98fee..c79a4be 100644 --- a/app/Models/BlogPost.php +++ b/app/Models/BlogPost.php @@ -23,6 +23,7 @@ use Illuminate\Support\Str; * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property string $title + * * @property-read \App\Models\User $author * @property-read \Illuminate\Database\Eloquent\Collection $comments * @property-read int|null $comments_count diff --git a/app/Models/ChosenDiet.php b/app/Models/ChosenDiet.php index 227e426..6522260 100644 --- a/app/Models/ChosenDiet.php +++ b/app/Models/ChosenDiet.php @@ -17,6 +17,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; * @property string $start_date * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at + * * @property-read \App\Models\Diet|null $diet * @property-read \Illuminate\Database\Eloquent\Collection $stateHistory * @property-read int|null $state_history_count diff --git a/app/Models/CircumferenceMeasure.php b/app/Models/CircumferenceMeasure.php index 883ffb7..5a22243 100644 --- a/app/Models/CircumferenceMeasure.php +++ b/app/Models/CircumferenceMeasure.php @@ -16,6 +16,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; * @property int $hip_circumference * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at + * * @property-read \App\Models\User|null $user * * @method static \Illuminate\Database\Eloquent\Builder|CircumferenceMeasure newModelQuery() diff --git a/app/Models/ConsultantEducation.php b/app/Models/ConsultantEducation.php index 84732b5..b2efdef 100644 --- a/app/Models/ConsultantEducation.php +++ b/app/Models/ConsultantEducation.php @@ -20,6 +20,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; * @property string $request_state * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at + * * @property-read \App\Models\User|null $user * * @method static \Illuminate\Database\Eloquent\Builder|ConsultantEducation newModelQuery() diff --git a/app/Models/Diary.php b/app/Models/Diary.php index f3ea44b..7fbdc81 100644 --- a/app/Models/Diary.php +++ b/app/Models/Diary.php @@ -21,6 +21,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany; * @property \Illuminate\Support\Carbon|null $updated_at * @property int|bool $closed * @property string $comment + * * @property-read \Illuminate\Database\Eloquent\Collection $consultant_comments * @property-read int|null $consultant_comments_count * @property-read \Illuminate\Database\Eloquent\Collection $meals diff --git a/app/Models/Diet.php b/app/Models/Diet.php index 72978f7..3ea5808 100644 --- a/app/Models/Diet.php +++ b/app/Models/Diet.php @@ -24,6 +24,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany; * @property mixed $daily_schedule A list of planned foods * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at + * * @property-read \Illuminate\Database\Eloquent\Collection $author * @property-read int|null $author_count * @property-read \Illuminate\Database\Eloquent\Collection $choses diff --git a/app/Models/DietCommentUpvote.php b/app/Models/DietCommentUpvote.php index bdbcd6c..09edda7 100644 --- a/app/Models/DietCommentUpvote.php +++ b/app/Models/DietCommentUpvote.php @@ -16,6 +16,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; * @property string $type * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at + * * @property-read \App\Models\User $author * @property-read \App\Models\DietComment|null $diet_comment * diff --git a/app/Models/UserAttachment.php b/app/Models/UserAttachment.php index be4bc89..f166877 100644 --- a/app/Models/UserAttachment.php +++ b/app/Models/UserAttachment.php @@ -20,6 +20,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany; * @property mixed $specs * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at + * * @property-read \Illuminate\Database\Eloquent\Collection $meals * @property-read int|null $meals_count * @property-read \App\Models\User $user diff --git a/tests/Feature/Diet/CreateTest.php b/tests/Feature/Diet/CreateTest.php index 528ce85..2ecd4db 100644 --- a/tests/Feature/Diet/CreateTest.php +++ b/tests/Feature/Diet/CreateTest.php @@ -48,7 +48,7 @@ class CreateTest extends TestCase $dietCountAtStart = Diet::count(); - $testCase = Livewire::test(Create::class) + Livewire::test(Create::class) ->set('name', $this->diet->name) ->assertSet('name', $this->diet->name) ->set('image', $this->image)