@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | * Store a newly created resource in storage. |
| 254 | 254 | * |
| 255 | 255 | * @param Request $request |
| 256 | - * @return Response |
|
| 256 | + * @return \Illuminate\Http\RedirectResponse |
|
| 257 | 257 | */ |
| 258 | 258 | public function store(Request $request) { |
| 259 | 259 | |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | * |
| 373 | 373 | * @param Request $request |
| 374 | 374 | * @param int $id |
| 375 | - * @return Response |
|
| 375 | + * @return \Illuminate\Http\RedirectResponse |
|
| 376 | 376 | */ |
| 377 | 377 | public function update(Request $request, $id) { |
| 378 | 378 | |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | * Remove the specified resource from storage. |
| 499 | 499 | * |
| 500 | 500 | * @param int $id |
| 501 | - * @return Response |
|
| 501 | + * @return \Illuminate\Http\RedirectResponse |
|
| 502 | 502 | */ |
| 503 | 503 | public function destroy($id) { |
| 504 | 504 | /** |
@@ -215,8 +215,7 @@ discard block |
||
| 215 | 215 | */ |
| 216 | 216 | if(empty($this->customView['index']) == TRUE){ |
| 217 | 217 | $view = $this->moduleBasicTemplatePath . '.index'; |
| 218 | - } |
|
| 219 | - else{ |
|
| 218 | + } else{ |
|
| 220 | 219 | $view = $this->customView; |
| 221 | 220 | } |
| 222 | 221 | |
@@ -238,8 +237,7 @@ discard block |
||
| 238 | 237 | */ |
| 239 | 238 | if(empty($this->customView['index']) == TRUE){ |
| 240 | 239 | $view = $this->moduleBasicTemplatePath . '.create_edit'; |
| 241 | - } |
|
| 242 | - else{ |
|
| 240 | + } else{ |
|
| 243 | 241 | $view = $this->customView; |
| 244 | 242 | } |
| 245 | 243 | |
@@ -345,8 +343,7 @@ discard block |
||
| 345 | 343 | */ |
| 346 | 344 | if(empty($this->customView['index']) == TRUE){ |
| 347 | 345 | $view = $this->moduleBasicTemplatePath . '.create_edit'; |
| 348 | - } |
|
| 349 | - else{ |
|
| 346 | + } else{ |
|
| 350 | 347 | $view = $this->customView; |
| 351 | 348 | } |
| 352 | 349 | |
@@ -427,17 +424,14 @@ discard block |
||
| 427 | 424 | * if($request->has($name)){ |
| 428 | 425 | $this->arValidationArray[$name] = $value . ',' . $id; |
| 429 | 426 | }**/ |
| 430 | - } |
|
| 431 | - else{ |
|
| 427 | + } else{ |
|
| 432 | 428 | |
| 433 | 429 | /** |
| 434 | 430 | * Empty exception |
| 435 | 431 | */ |
| 436 | 432 | if (empty($request->input($name)) == FALSE) { |
| 437 | 433 | $arResults->$name = $request->input($name); |
| 438 | - } |
|
| 439 | - |
|
| 440 | - else{ |
|
| 434 | + } else{ |
|
| 441 | 435 | |
| 442 | 436 | /** |
| 443 | 437 | * Numeric zero ? |
@@ -445,9 +439,7 @@ discard block |
||
| 445 | 439 | if(@is_numeric($request->input($name)) == TRUE){ |
| 446 | 440 | |
| 447 | 441 | $arResults->$name = $request->input($name); |
| 448 | - } |
|
| 449 | - |
|
| 450 | - else{ |
|
| 442 | + } else{ |
|
| 451 | 443 | $arResults->$name = NULL; |
| 452 | 444 | } |
| 453 | 445 | } |
@@ -471,8 +463,7 @@ discard block |
||
| 471 | 463 | |
| 472 | 464 | if (empty($request->$value) == FALSE) { |
| 473 | 465 | $arResults->$value = $request->$value; |
| 474 | - } |
|
| 475 | - else{ |
|
| 466 | + } else{ |
|
| 476 | 467 | $arResults->$value = NULL; |
| 477 | 468 | } |
| 478 | 469 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * Store function override |
| 36 | 36 | * |
| 37 | 37 | * @param Request $request |
| 38 | - * @return Response |
|
| 38 | + * @return \Illuminate\Http\RedirectResponse |
|
| 39 | 39 | */ |
| 40 | 40 | public function store(Request $request) |
| 41 | 41 | { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * |
| 65 | 65 | * @param Request $request |
| 66 | 66 | * @param integer $id |
| 67 | - * @return Response |
|
| 67 | + * @return \Illuminate\Http\RedirectResponse |
|
| 68 | 68 | */ |
| 69 | 69 | public function update(Request $request, $id) |
| 70 | 70 | { |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | * |
| 103 | 103 | * @param string $module |
| 104 | 104 | * @param array $possibleParameters |
| 105 | - * @return boolean |
|
| 105 | + * @return false|string |
|
| 106 | 106 | */ |
| 107 | 107 | public static function resetSaveIndexParameters($module, $possibleParameters = ['search', 'orderbycolumn', 'orderbytype', 'relation']) |
| 108 | 108 | { |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @param Request $request |
| 26 | 26 | * @param Closure $next |
| 27 | - * @param array $models |
|
| 28 | 27 | * @return mixed |
| 29 | 28 | */ |
| 30 | 29 | public function handle($request, Closure $next) |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | /** |
| 99 | 99 | * Image category link |
| 100 | 100 | * |
| 101 | - * @return object |
|
| 101 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
| 102 | 102 | */ |
| 103 | 103 | public function imagecategories(){ |
| 104 | 104 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * Slide link |
| 110 | 110 | * |
| 111 | - * @return object |
|
| 111 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
| 112 | 112 | */ |
| 113 | 113 | public function slides(){ |
| 114 | 114 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Article category |
| 120 | 120 | * |
| 121 | - * @return object |
|
| 121 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
| 122 | 122 | */ |
| 123 | 123 | public function articlecategories(){ |
| 124 | 124 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * Article category |
| 130 | 130 | * |
| 131 | - * @return object |
|
| 131 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
| 132 | 132 | */ |
| 133 | 133 | public function pages(){ |
| 134 | 134 | |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | /** |
| 81 | 81 | * Image link |
| 82 | 82 | * |
| 83 | - * @return object |
|
| 83 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
| 84 | 84 | */ |
| 85 | 85 | public function images(){ |
| 86 | 86 | |
@@ -72,8 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | if(isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE){ |
| 74 | 74 | return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind) ); |
| 75 | - } |
|
| 76 | - else{ |
|
| 75 | + } else{ |
|
| 77 | 76 | return $query; |
| 78 | 77 | } |
| 79 | 78 | } |
@@ -72,8 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | if(isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE){ |
| 74 | 74 | return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind) ); |
| 75 | - } |
|
| 76 | - else{ |
|
| 75 | + } else{ |
|
| 77 | 76 | return $query; |
| 78 | 77 | } |
| 79 | 78 | } |
@@ -72,8 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | if(isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE){ |
| 74 | 74 | return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind) ); |
| 75 | - } |
|
| 76 | - else{ |
|
| 75 | + } else{ |
|
| 77 | 76 | return $query; |
| 78 | 77 | } |
| 79 | 78 | } |