@@ -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 | /** |
@@ -151,8 +151,7 @@ discard block |
||
| 151 | 151 | if ($this->paginateRows == NULL) { |
| 152 | 152 | |
| 153 | 153 | return env('ADMIN_PAGINATE', 10); |
| 154 | - } |
|
| 155 | - else{ |
|
| 154 | + } else{ |
|
| 156 | 155 | |
| 157 | 156 | return $this->paginateRows; |
| 158 | 157 | } |
@@ -219,8 +218,7 @@ discard block |
||
| 219 | 218 | */ |
| 220 | 219 | if(empty($this->customView['index']) == TRUE){ |
| 221 | 220 | $view = $this->moduleBasicTemplatePath . '.index'; |
| 222 | - } |
|
| 223 | - else{ |
|
| 221 | + } else{ |
|
| 224 | 222 | $view = $this->customView; |
| 225 | 223 | } |
| 226 | 224 | |
@@ -242,8 +240,7 @@ discard block |
||
| 242 | 240 | */ |
| 243 | 241 | if(empty($this->customView['index']) == TRUE){ |
| 244 | 242 | $view = $this->moduleBasicTemplatePath . '.create_edit'; |
| 245 | - } |
|
| 246 | - else{ |
|
| 243 | + } else{ |
|
| 247 | 244 | $view = $this->customView; |
| 248 | 245 | } |
| 249 | 246 | |
@@ -349,8 +346,7 @@ discard block |
||
| 349 | 346 | */ |
| 350 | 347 | if(empty($this->customView['index']) == TRUE){ |
| 351 | 348 | $view = $this->moduleBasicTemplatePath . '.create_edit'; |
| 352 | - } |
|
| 353 | - else{ |
|
| 349 | + } else{ |
|
| 354 | 350 | $view = $this->customView; |
| 355 | 351 | } |
| 356 | 352 | |
@@ -431,17 +427,14 @@ discard block |
||
| 431 | 427 | * if($request->has($name)){ |
| 432 | 428 | $this->arValidationArray[$name] = $value . ',' . $id; |
| 433 | 429 | }**/ |
| 434 | - } |
|
| 435 | - else{ |
|
| 430 | + } else{ |
|
| 436 | 431 | |
| 437 | 432 | /** |
| 438 | 433 | * Empty exception |
| 439 | 434 | */ |
| 440 | 435 | if (empty($request->input($name)) == FALSE) { |
| 441 | 436 | $arResults->$name = $request->input($name); |
| 442 | - } |
|
| 443 | - |
|
| 444 | - else{ |
|
| 437 | + } else{ |
|
| 445 | 438 | |
| 446 | 439 | /** |
| 447 | 440 | * Numeric zero ? |
@@ -449,9 +442,7 @@ discard block |
||
| 449 | 442 | if(@is_numeric($request->input($name)) == TRUE){ |
| 450 | 443 | |
| 451 | 444 | $arResults->$name = $request->input($name); |
| 452 | - } |
|
| 453 | - |
|
| 454 | - else{ |
|
| 445 | + } else{ |
|
| 455 | 446 | $arResults->$name = NULL; |
| 456 | 447 | } |
| 457 | 448 | } |
@@ -475,8 +466,7 @@ discard block |
||
| 475 | 466 | |
| 476 | 467 | if (empty($request->$value) == FALSE) { |
| 477 | 468 | $arResults->$value = $request->$value; |
| 478 | - } |
|
| 479 | - else{ |
|
| 469 | + } else{ |
|
| 480 | 470 | $arResults->$value = NULL; |
| 481 | 471 | } |
| 482 | 472 | } |
@@ -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 | { |
@@ -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 | } |
@@ -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 | } |