From 8b5b9e2c65193171a12bf99a8df860a66e6900a5 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 6 Nov 2019 13:43:57 +0100 Subject: src/: Formatting, doc block hints and cleanup --- src/Models/User/Contact.php | 8 +++++--- src/Models/User/PasswordReset.php | 11 ++++++---- src/Models/User/PersonalData.php | 23 +++++++++++---------- src/Models/User/Settings.php | 10 ++++++---- src/Models/User/State.php | 27 ++++++++++++++----------- src/Models/User/User.php | 42 ++++++++++++++++++++------------------- src/Models/User/UsesUserModel.php | 7 ++++--- 7 files changed, 72 insertions(+), 56 deletions(-) (limited to 'src/Models/User') diff --git a/src/Models/User/Contact.php b/src/Models/User/Contact.php index 9b4bdb2b..8077350b 100644 --- a/src/Models/User/Contact.php +++ b/src/Models/User/Contact.php @@ -2,14 +2,16 @@ namespace Engelsystem\Models\User; +use Illuminate\Database\Query\Builder as QueryBuilder; + /** * @property string|null $dect * @property string|null $email * @property string|null $mobile * - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Contact[] whereDect($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Contact[] whereEmail($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Contact[] whereMobile($value) + * @method static QueryBuilder|Contact[] whereDect($value) + * @method static QueryBuilder|Contact[] whereEmail($value) + * @method static QueryBuilder|Contact[] whereMobile($value) */ class Contact extends HasUserModel { diff --git a/src/Models/User/PasswordReset.php b/src/Models/User/PasswordReset.php index 5cf66953..82f44add 100644 --- a/src/Models/User/PasswordReset.php +++ b/src/Models/User/PasswordReset.php @@ -2,12 +2,15 @@ namespace Engelsystem\Models\User; +use Carbon\Carbon; +use Illuminate\Database\Query\Builder as QueryBuilder; + /** - * @property string $token - * @property \Carbon\Carbon|null $created_at + * @property string $token + * @property Carbon|null $created_at * - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PasswordReset[] whereToken($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PasswordReset[] whereCreatedAt($value) + * @method static QueryBuilder|PasswordReset[] whereToken($value) + * @method static QueryBuilder|PasswordReset[] whereCreatedAt($value) */ class PasswordReset extends HasUserModel { diff --git a/src/Models/User/PersonalData.php b/src/Models/User/PersonalData.php index 921e821e..228f55f3 100644 --- a/src/Models/User/PersonalData.php +++ b/src/Models/User/PersonalData.php @@ -2,18 +2,21 @@ namespace Engelsystem\Models\User; +use Carbon\Carbon; +use Illuminate\Database\Query\Builder as QueryBuilder; + /** - * @property string|null $first_name - * @property string|null $last_name - * @property string|null $shirt_size - * @property \Carbon\Carbon|null $planned_arrival_date - * @property \Carbon\Carbon|null $planned_departure_date + * @property string|null $first_name + * @property string|null $last_name + * @property string|null $shirt_size + * @property Carbon|null $planned_arrival_date + * @property Carbon|null $planned_departure_date * - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData[] whereFirstName($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData[] whereLastName($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData[] whereShirtSize($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData[] wherePlannedArrivalDate($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData[] wherePlannedDepartureDate($value) + * @method static QueryBuilder|PersonalData[] whereFirstName($value) + * @method static QueryBuilder|PersonalData[] whereLastName($value) + * @method static QueryBuilder|PersonalData[] whereShirtSize($value) + * @method static QueryBuilder|PersonalData[] wherePlannedArrivalDate($value) + * @method static QueryBuilder|PersonalData[] wherePlannedDepartureDate($value) */ class PersonalData extends HasUserModel { diff --git a/src/Models/User/Settings.php b/src/Models/User/Settings.php index d062f902..244f06e6 100644 --- a/src/Models/User/Settings.php +++ b/src/Models/User/Settings.php @@ -2,16 +2,18 @@ namespace Engelsystem\Models\User; +use Illuminate\Database\Query\Builder as QueryBuilder; + /** * @property string $language * @property int $theme * @property bool $email_human * @property bool $email_shiftinfo * - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Settings[] whereLanguage($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Settings[] whereTheme($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Settings[] whereEmailHuman($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Settings[] whereEmailShiftinfo($value) + * @method static QueryBuilder|Settings[] whereLanguage($value) + * @method static QueryBuilder|Settings[] whereTheme($value) + * @method static QueryBuilder|Settings[] whereEmailHuman($value) + * @method static QueryBuilder|Settings[] whereEmailShiftinfo($value) */ class Settings extends HasUserModel { diff --git a/src/Models/User/State.php b/src/Models/User/State.php index fbb8ad20..46660b7c 100644 --- a/src/Models/User/State.php +++ b/src/Models/User/State.php @@ -2,20 +2,23 @@ namespace Engelsystem\Models\User; +use Carbon\Carbon; +use Illuminate\Database\Query\Builder as QueryBuilder; + /** - * @property bool $arrived - * @property \Carbon\Carbon|null $arrival_date - * @property bool $active - * @property bool $force_active - * @property bool $got_shirt - * @property int $got_voucher + * @property bool $arrived + * @property Carbon|null $arrival_date + * @property bool $active + * @property bool $force_active + * @property bool $got_shirt + * @property int $got_voucher * - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereArrived($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereArrivalDate($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereActive($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereForceActive($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereGotShirt($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State[] whereGotVoucher($value) + * @method static QueryBuilder|State[] whereArrived($value) + * @method static QueryBuilder|State[] whereArrivalDate($value) + * @method static QueryBuilder|State[] whereActive($value) + * @method static QueryBuilder|State[] whereForceActive($value) + * @method static QueryBuilder|State[] whereGotShirt($value) + * @method static QueryBuilder|State[] whereGotVoucher($value) */ class State extends HasUserModel { diff --git a/src/Models/User/User.php b/src/Models/User/User.php index 4be3246c..af213c4e 100644 --- a/src/Models/User/User.php +++ b/src/Models/User/User.php @@ -2,32 +2,34 @@ namespace Engelsystem\Models\User; +use Carbon\Carbon; use Engelsystem\Models\BaseModel; use Illuminate\Database\Eloquent\Relations\HasOne; +use Illuminate\Database\Query\Builder as QueryBuilder; /** - * @property integer $id - * @property string $name - * @property string $email - * @property string $password - * @property string $api_key - * @property \Carbon\Carbon|null $last_login_at - * @property \Carbon\Carbon $created_at - * @property \Carbon\Carbon $updated_at + * @property integer $id + * @property string $name + * @property string $email + * @property string $password + * @property string $api_key + * @property Carbon|null $last_login_at + * @property Carbon $created_at + * @property Carbon $updated_at * - * @property-read \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Contact $contact - * @property-read \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData $personalData - * @property-read \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Settings $settings - * @property-read \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\State $state + * @property-read QueryBuilder|Contact $contact + * @property-read QueryBuilder|PersonalData $personalData + * @property-read QueryBuilder|Settings $settings + * @property-read QueryBuilder|State $state * - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User whereId($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User[] whereName($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User[] whereEmail($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User[] wherePassword($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User[] whereApiKey($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User[] whereLastLoginAt($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User[] whereCreatedAt($value) - * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User[] whereUpdatedAt($value) + * @method static QueryBuilder|User whereId($value) + * @method static QueryBuilder|User[] whereName($value) + * @method static QueryBuilder|User[] whereEmail($value) + * @method static QueryBuilder|User[] wherePassword($value) + * @method static QueryBuilder|User[] whereApiKey($value) + * @method static QueryBuilder|User[] whereLastLoginAt($value) + * @method static QueryBuilder|User[] whereCreatedAt($value) + * @method static QueryBuilder|User[] whereUpdatedAt($value) */ class User extends BaseModel { diff --git a/src/Models/User/UsesUserModel.php b/src/Models/User/UsesUserModel.php index 84795480..e0185b10 100644 --- a/src/Models/User/UsesUserModel.php +++ b/src/Models/User/UsesUserModel.php @@ -3,13 +3,14 @@ namespace Engelsystem\Models\User; use Illuminate\Database\Eloquent\Relations\BelongsTo; +use Illuminate\Database\Query\Builder as QueryBuilder; /** - * @property integer $user_id + * @property integer $user_id * - * @property-read \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User $user + * @property-read QueryBuilder|User $user * - * @method static \Illuminate\Database\Query\Builder|static whereUserId($value) + * @method static QueryBuilder|static whereUserId($value) */ trait UsesUserModel { -- cgit v1.2.3-70-g09d2