@@ -16,7 +16,6 @@ |
||
| 16 | 16 | |
| 17 | 17 | use App\Helpers; |
| 18 | 18 | use Illuminate\Http\Request; |
| 19 | - |
|
| 20 | 19 | use App\Http\Controllers\Controller; |
| 21 | 20 | use App\Image; |
| 22 | 21 | use Illuminate\Support\Facades\Response; |
@@ -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 | } |
@@ -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 | } |