Completed
Pull Request — master (#28)
by Jolita
04:57
created
app/Services/Html/FormBuilder.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -60,6 +60,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
app/Http/Requests/Request.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
app/Http/Controllers/Front/AuthController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
app/Http/Controllers/Back/AuthController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
app/Foundation/Models/Base/TranslatableEloquent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.