@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
126 | - * @return mixed |
|
126 | + * @return string |
|
127 | 127 | */ |
128 | 128 | public function getValue() |
129 | 129 | { |
@@ -162,6 +162,7 @@ discard block |
||
162 | 162 | |
163 | 163 | /** |
164 | 164 | * |
165 | + * @param boolean $value |
|
165 | 166 | */ |
166 | 167 | public function hideValue($value = null) |
167 | 168 | { |
@@ -174,6 +175,7 @@ discard block |
||
174 | 175 | |
175 | 176 | /** |
176 | 177 | * |
178 | + * @param boolean $value |
|
177 | 179 | */ |
178 | 180 | public function saveIfEmpty($value = null) |
179 | 181 | { |
@@ -186,6 +188,7 @@ discard block |
||
186 | 188 | |
187 | 189 | /** |
188 | 190 | * |
191 | + * @param boolean $value |
|
189 | 192 | */ |
190 | 193 | public function noValidate($value = null) |
191 | 194 | { |
@@ -76,6 +76,9 @@ discard block |
||
76 | 76 | return transcrud($this->name); |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @return string |
|
81 | + */ |
|
79 | 82 | public function getModel() |
80 | 83 | { |
81 | 84 | return $this->model; |
@@ -91,6 +94,9 @@ discard block |
||
91 | 94 | return $this->getConfigValue('soft_deletes') ? true : false; |
92 | 95 | } |
93 | 96 | |
97 | + /** |
|
98 | + * @param string $action |
|
99 | + */ |
|
94 | 100 | protected function getColumns($action, $withForeignKeys = false) |
95 | 101 | { |
96 | 102 | $tableColumns = $this->dbal->getTableColumns(); |
@@ -38,9 +38,9 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @param $slug |
|
41 | + * @param string $slug |
|
42 | 42 | * @param null $id |
43 | - * @return Model|null |
|
43 | + * @return Model |
|
44 | 44 | * @throws \Exception |
45 | 45 | */ |
46 | 46 | public function getBySlug($slug, $id = null) |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @param Request $request |
82 | 82 | * @param string $model |
83 | - * @return Response |
|
83 | + * @return \Illuminate\Http\RedirectResponse |
|
84 | 84 | */ |
85 | 85 | public function store(Request $request, $model) |
86 | 86 | { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * @param Request $request |
149 | 149 | * @param string $model |
150 | 150 | * @param int $id |
151 | - * @return Response |
|
151 | + * @return \Illuminate\Http\RedirectResponse |
|
152 | 152 | */ |
153 | 153 | public function update(Request $request, $model, $id) |
154 | 154 | { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | * @param Request $request |
178 | 178 | * @param string $model |
179 | 179 | * @param int $id |
180 | - * @return Response |
|
180 | + * @return \Illuminate\Http\RedirectResponse |
|
181 | 181 | */ |
182 | 182 | public function destroy(Request $request, $model, $id) |
183 | 183 | { |