@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | */ |
| 314 | 314 | private function lastClosingTime($tableName) { |
| 315 | 315 | $cacheKey = "closing:time:{$tableName}"; |
| 316 | - return Yii::$app->cache->getOrSet($cacheKey, function () use ($tableName) { |
|
| 316 | + return Yii::$app->cache->getOrSet($cacheKey, function() use ($tableName) { |
|
| 317 | 317 | $dateHelper = new DateHelper(); |
| 318 | 318 | |
| 319 | 319 | if (!$this->hasClosing($tableName)) { |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | private function hasClosing($tableName) |
| 336 | 336 | { |
| 337 | 337 | $cacheKey = "closing:has:{$tableName}"; |
| 338 | - return Yii::$app->cache->getOrSet($cacheKey, function () use ($tableName) { |
|
| 338 | + return Yii::$app->cache->getOrSet($cacheKey, function() use ($tableName) { |
|
| 339 | 339 | $closing = Closing::findOne($tableName); |
| 340 | 340 | return !($closing == null); |
| 341 | 341 | }); |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | /** |
| 8 | 8 | * Class ConsoleAwareTrait |
| 9 | 9 | * @package andmemasin\myabstract\traits |
| 10 | - |
|
| 11 | 10 | * @property boolean $isConsole whether we currently run in console app or not |
| 12 | 11 | * |
| 13 | 12 | */ |