@@ -178,7 +178,7 @@ |
||
| 178 | 178 | */ |
| 179 | 179 | private function existItem(int $itemId, int $userId) : bool |
| 180 | 180 | { |
| 181 | - return !is_null($this->redis->hget($this->normalizeKey($userId), $itemId)); |
|
| 181 | + return !is_null($this->redis->hget($this->normalizeKey($userId), $itemId)); |
|
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | protected function execute(InputInterface $input, OutputInterface $output) |
| 21 | 21 | { |
| 22 | 22 | foreach (Finder::create()->files()->name('*.php') |
| 23 | - ->in(__DIR__. '/../../migrations') as $file) { |
|
| 23 | + ->in(__DIR__. '/../../migrations') as $file) { |
|
| 24 | 24 | $classes = get_declared_classes(); |
| 25 | 25 | include $file->getRealPath(); |
| 26 | 26 | $diff = array_diff(get_declared_classes(), $classes); |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | } |
| 89 | 89 | return true; |
| 90 | 90 | } |
| 91 | - return false; |
|
| 91 | + return false; |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
@@ -154,8 +154,8 @@ discard block |
||
| 154 | 154 | if ($row->isNotEmpty()) { |
| 155 | 155 | $transformItems = array_map(function ($value) use ($items, $newPrice) { |
| 156 | 156 | if ($value['id'] == $items['id']) { |
| 157 | - $value['discount'] = $newPrice; |
|
| 158 | - return $value; |
|
| 157 | + $value['discount'] = $newPrice; |
|
| 158 | + return $value; |
|
| 159 | 159 | } |
| 160 | 160 | return $value; |
| 161 | 161 | }, fromJson($row->first()->data, true)); |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $this->updateRow($items['user_id'], inJson($transformItems)); |
| 164 | 164 | return true; |
| 165 | 165 | } |
| 166 | - return false; |
|
| 166 | + return false; |
|
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | /** |