@@ -60,6 +60,10 @@ discard block |
||
| 60 | 60 | ]); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | + /** |
|
| 64 | + * @param string $fieldName |
|
| 65 | + * @param string $locale |
|
| 66 | + */ |
|
| 63 | 67 | public function getTranslatedFieldName($fieldName, $locale) |
| 64 | 68 | { |
| 65 | 69 | if ($locale == '') { |
@@ -85,6 +89,9 @@ discard block |
||
| 85 | 89 | return Form::getValueAttribute($locale == '' ? $propertyName : Form::getTranslatedFieldName($propertyName, $locale), $value); |
| 86 | 90 | } |
| 87 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $type |
|
| 94 | + */ |
|
| 88 | 95 | public function tags($subject, $type = null) |
| 89 | 96 | { |
| 90 | 97 | $allTags = app()->make(TagRepository::class)->getAllWithType($type)->lists('name', 'name'); |
@@ -97,6 +104,9 @@ discard block |
||
| 97 | 104 | ); |
| 98 | 105 | } |
| 99 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $type |
|
| 109 | + */ |
|
| 100 | 110 | public function category($subject, $type = null) |
| 101 | 111 | { |
| 102 | 112 | $allCategories = app()->make(TagRepository::class)->getAllWithType($type)->lists('name', 'name')->toArray(); |
@@ -118,6 +128,10 @@ discard block |
||
| 118 | 128 | return Form::select('locale', $list, $current, ['data-select' => 'select']); |
| 119 | 129 | } |
| 120 | 130 | |
| 131 | + /** |
|
| 132 | + * @param string $collection |
|
| 133 | + * @param string $type |
|
| 134 | + */ |
|
| 121 | 135 | public function media($subject, $collection, $type, $associated = []) |
| 122 | 136 | { |
| 123 | 137 | $initialMedia = htmlspecialchars(fractal() |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use App\Models\Enums\TagType; |
| 6 | 6 | use App\Models\Tag; |
| 7 | 7 | use App\Models\Transformers\MediaTransformer; |
| 8 | -use App\Repositories\TagRepository; |
|
| 9 | 8 | use Carbon\Carbon; |
| 10 | 9 | use Illuminate\Html\FormBuilder as BaseFormBuilder; |
| 11 | 10 | use HTML; |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * Get a parameter of the current route. |
| 37 | 37 | * |
| 38 | - * @param $key |
|
| 38 | + * @param string $key |
|
| 39 | 39 | * |
| 40 | 40 | * @return object|string |
| 41 | 41 | */ |
@@ -38,6 +38,9 @@ |
||
| 38 | 38 | return fragment('auth.failed'); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param Request $request |
|
| 43 | + */ |
|
| 41 | 44 | protected function sendInactiveAccountResponse($request) |
| 42 | 45 | { |
| 43 | 46 | return redirect()->back() |
@@ -38,6 +38,9 @@ |
||
| 38 | 38 | return fragment('auth.failed'); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param Request $request |
|
| 43 | + */ |
|
| 41 | 44 | protected function sendInactiveAccountResponse($request) |
| 42 | 45 | { |
| 43 | 46 | return redirect()->back() |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * Get the translation for the given locale. If it doesn't exist create it. |
| 28 | 28 | * |
| 29 | - * @param null $locale |
|
| 29 | + * @param string $locale |
|
| 30 | 30 | * @param bool $withFallback |
| 31 | 31 | * |
| 32 | 32 | * @return \Illuminate\Database\Eloquent\Model|null |