@@ -14,7 +14,7 @@ |
||
| 14 | 14 | * |
| 15 | 15 | * @return \Illuminate\Validation\Validator |
| 16 | 16 | */ |
| 17 | - public static function create(array $data): Validator |
|
| 17 | + public static function create (array $data): Validator |
|
| 18 | 18 | { |
| 19 | 19 | $rules = [ |
| 20 | 20 | 'username' => 'required|min:4|max:20|unique:users', |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * |
| 14 | 14 | * @return \Xetaravel\Models\Account |
| 15 | 15 | */ |
| 16 | - public static function update(array $data): Account |
|
| 16 | + public static function update (array $data): Account |
|
| 17 | 17 | { |
| 18 | 18 | return Account::updateOrCreate( |
| 19 | 19 | [ |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * |
| 12 | 12 | * @return \Illuminate\Database\Eloquent\Collection |
| 13 | 13 | */ |
| 14 | - public static function sidebar(): Collection |
|
| 14 | + public static function sidebar (): Collection |
|
| 15 | 15 | { |
| 16 | 16 | return Article::latest()->take(5)->get(); |
| 17 | 17 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * |
| 14 | 14 | * @return \Xetaravel\Models\User |
| 15 | 15 | */ |
| 16 | - public static function create(array $data): User |
|
| 16 | + public static function create (array $data): User |
|
| 17 | 17 | { |
| 18 | 18 | $ip = FacadeRequest::ip(); |
| 19 | 19 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * |
| 12 | 12 | * @return \Illuminate\Database\Eloquent\Collection|static[] |
| 13 | 13 | */ |
| 14 | - public static function sidebar(): Collection |
|
| 14 | + public static function sidebar (): Collection |
|
| 15 | 15 | { |
| 16 | 16 | return Category::take(25)->orderBy('title', 'asc')->get(); |
| 17 | 17 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | * |
| 15 | 15 | * @return \Xetaravel\Models\Comment |
| 16 | 16 | */ |
| 17 | - public static function create(array $data, $user): Comment |
|
| 17 | + public static function create (array $data, $user): Comment |
|
| 18 | 18 | { |
| 19 | 19 | return Comment::create([ |
| 20 | 20 | 'article_id' => $data['article_id'], |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | * |
| 16 | 16 | * @return void |
| 17 | 17 | */ |
| 18 | - public function apply(Builder $builder, Model $model) |
|
| 18 | + public function apply (Builder $builder, Model $model) |
|
| 19 | 19 | { |
| 20 | 20 | $builder->where('is_display', '=', true); |
| 21 | 21 | } |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * |
| 9 | 9 | * @return string |
| 10 | 10 | */ |
| 11 | - public function getFirstNameAttribute(): string |
|
| 11 | + public function getFirstNameAttribute (): string |
|
| 12 | 12 | { |
| 13 | 13 | return $this->parse($this->account->first_name); |
| 14 | 14 | } |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | * |
| 19 | 19 | * @return string |
| 20 | 20 | */ |
| 21 | - public function getLastNameAttribute(): string |
|
| 21 | + public function getLastNameAttribute (): string |
|
| 22 | 22 | { |
| 23 | 23 | return $this->parse($this->account->last_name); |
| 24 | 24 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * |
| 29 | 29 | * @return string |
| 30 | 30 | */ |
| 31 | - public function getFullNameAttribute(): string |
|
| 31 | + public function getFullNameAttribute (): string |
|
| 32 | 32 | { |
| 33 | 33 | return $this->parse($this->account->first_name) . ' ' . $this->parse($this->account->last_name); |
| 34 | 34 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * |
| 39 | 39 | * @return string |
| 40 | 40 | */ |
| 41 | - public function getFacebookAttribute(): string |
|
| 41 | + public function getFacebookAttribute (): string |
|
| 42 | 42 | { |
| 43 | 43 | return $this->parse($this->account->facebook); |
| 44 | 44 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * |
| 49 | 49 | * @return string |
| 50 | 50 | */ |
| 51 | - public function getTwitterAttribute(): string |
|
| 51 | + public function getTwitterAttribute (): string |
|
| 52 | 52 | { |
| 53 | 53 | return $this->parse($this->account->twitter); |
| 54 | 54 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * |
| 59 | 59 | * @return string |
| 60 | 60 | */ |
| 61 | - public function getBiographyAttribute(): string |
|
| 61 | + public function getBiographyAttribute (): string |
|
| 62 | 62 | { |
| 63 | 63 | return $this->parse($this->account->biography); |
| 64 | 64 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return string |
| 70 | 70 | */ |
| 71 | - public function getSignatureAttribute(): string |
|
| 71 | + public function getSignatureAttribute (): string |
|
| 72 | 72 | { |
| 73 | 73 | return $this->parse($this->account->signature); |
| 74 | 74 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * |
| 81 | 81 | * @return string |
| 82 | 82 | */ |
| 83 | - protected function parse($attribute): string |
|
| 83 | + protected function parse ($attribute): string |
|
| 84 | 84 | { |
| 85 | 85 | if ($attribute === null) { |
| 86 | 86 | return ''; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * |
| 64 | 64 | * @return string |
| 65 | 65 | */ |
| 66 | - public static function getProfileBackground() |
|
| 66 | + public static function getProfileBackground () |
|
| 67 | 67 | { |
| 68 | 68 | $now = Carbon::now(); |
| 69 | 69 | $day = $now->day; |