@@ -62,8 +62,7 @@ |
||
| 62 | 62 | if ($entity->isQueueable) { |
| 63 | 63 | $this->initCache($entity, $entity->getTtl()); |
| 64 | 64 | RefreshCache::dispatch($this->model, $entity->name, $event); |
| 65 | - } |
|
| 66 | - else { |
|
| 65 | + } else { |
|
| 67 | 66 | $this->updateCacheEntity($entity->name, $event, $entity); |
| 68 | 67 | } |
| 69 | 68 | } |
@@ -13,8 +13,7 @@ |
||
| 13 | 13 | foreach ($data->models as $model) { |
| 14 | 14 | $this->deleteAll($model); |
| 15 | 15 | } |
| 16 | - } |
|
| 17 | - else { |
|
| 16 | + } else { |
|
| 18 | 17 | $model = $data->models[0]; |
| 19 | 18 | |
| 20 | 19 | empty($data->entities) |
@@ -49,8 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | return $data; |
| 52 | - } |
|
| 53 | - else { |
|
| 52 | + } else { |
|
| 54 | 53 | throw CacheGroupValueIsNotValid::make($groupName); |
| 55 | 54 | } |
| 56 | 55 | } |
@@ -62,8 +61,7 @@ discard block |
||
| 62 | 61 | models: [$item['model']], |
| 63 | 62 | entities: $item['entities'] |
| 64 | 63 | ); |
| 65 | - } |
|
| 66 | - else { |
|
| 64 | + } else { |
|
| 67 | 65 | throw CacheGroupValueIsNotValid::make($groupName); |
| 68 | 66 | } |
| 69 | 67 | } |
@@ -13,8 +13,7 @@ |
||
| 13 | 13 | foreach ($data->models as $model) { |
| 14 | 14 | $this->updateAll($model); |
| 15 | 15 | } |
| 16 | - } |
|
| 17 | - else { |
|
| 16 | + } else { |
|
| 18 | 17 | $model = $data->models[0]; |
| 19 | 18 | |
| 20 | 19 | empty($data->entities) |