@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | - if(!headers_sent()){ |
|
| 31 | + if (!headers_sent()) { |
|
| 32 | 32 | setcookie("ecommerce_favitems", json_encode([]), time() + 360000, "/"); |
| 33 | 33 | } |
| 34 | 34 | } |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | $categorys = \Ecommerce\Category::getList(['where' => ['parent_id', 0]]); |
| 359 | - $scan = function($category, $scan) { |
|
| 359 | + $scan = function ($category, $scan) { |
|
| 360 | 360 | $map = []; |
| 361 | 361 | |
| 362 | 362 | foreach ($category->items as $item) { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | - if(!headers_sent()){ |
|
| 31 | + if(!headers_sent()) { |
|
| 32 | 32 | setcookie("ecommerce_favitems", json_encode([]), time() + 360000, "/"); |
| 33 | 33 | } |
| 34 | 34 | } |