@@ -85,6 +85,9 @@ discard block |
||
85 | 85 | return transcrud($this->name); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @return string |
|
90 | + */ |
|
88 | 91 | public function getModel() |
89 | 92 | { |
90 | 93 | return $this->model; |
@@ -334,7 +337,7 @@ discard block |
||
334 | 337 | } |
335 | 338 | |
336 | 339 | /** |
337 | - * @param array $requestForm |
|
340 | + * @param array $request |
|
338 | 341 | * @return mixed |
339 | 342 | */ |
340 | 343 | public function persist(Request $request) |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * @param array $config |
29 | 29 | * @param string $columnName |
30 | - * @return array |
|
30 | + * @return \Doctrine\DBAL\Schema\Column |
|
31 | 31 | */ |
32 | 32 | public function setConfig(array $config, $columnName) |
33 | 33 | { |
@@ -55,7 +55,6 @@ |
||
55 | 55 | public function getSecondaryRelations(); |
56 | 56 | |
57 | 57 | /** |
58 | - * @param Model $relatedModel |
|
59 | 58 | * @return Relation |
60 | 59 | */ |
61 | 60 | public function setRelatedModel(\Illuminate\Database\Eloquent\Model $model); |
@@ -9,6 +9,9 @@ |
||
9 | 9 | |
10 | 10 | trait HandleFiles |
11 | 11 | { |
12 | + /** |
|
13 | + * @param string $groupName |
|
14 | + */ |
|
12 | 15 | protected function handleField(Request $request, $item, array $fields, $currentKey, $groupName, $fieldName) |
13 | 16 | { |
14 | 17 | $modelFolder = $this->slug . DIRECTORY_SEPARATOR; |
@@ -25,6 +25,9 @@ |
||
25 | 25 | $this->formGenerator = $formGenerator; |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param string $methodName |
|
30 | + */ |
|
28 | 31 | private function authorizeMethod(Model $modelAbstractor, $methodName) |
29 | 32 | { |
30 | 33 | if (array_key_exists('authorize', $config = $modelAbstractor->getConfig()) && $config['authorize'] === true) { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @param $slug |
|
42 | + * @param string $slug |
|
43 | 43 | * @param null $id |
44 | 44 | * @return Model|null |
45 | 45 | * @throws \Exception |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
145 | - * @return mixed |
|
145 | + * @return string |
|
146 | 146 | */ |
147 | 147 | public function getValue() |
148 | 148 | { |
@@ -181,6 +181,9 @@ discard block |
||
181 | 181 | } |
182 | 182 | |
183 | 183 | |
184 | + /** |
|
185 | + * @param boolean $value |
|
186 | + */ |
|
184 | 187 | public function hideValue($value = null) |
185 | 188 | { |
186 | 189 | if (!is_null($value)) { |
@@ -191,6 +194,9 @@ discard block |
||
191 | 194 | } |
192 | 195 | |
193 | 196 | |
197 | + /** |
|
198 | + * @param boolean $value |
|
199 | + */ |
|
194 | 200 | public function saveIfEmpty($value = null) |
195 | 201 | { |
196 | 202 | if (!is_null($value)) { |
@@ -201,6 +207,9 @@ discard block |
||
201 | 207 | } |
202 | 208 | |
203 | 209 | |
210 | + /** |
|
211 | + * @param boolean $value |
|
212 | + */ |
|
204 | 213 | public function noValidate($value = null) |
205 | 214 | { |
206 | 215 | if (!is_null($value)) { |