@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * @throws JsonException |
| 53 | 53 | */ |
| 54 | 54 | public function jsonSerialize() : string { |
| 55 | - return json_encode($this->get(), JSON_THROW_ON_ERROR | JSON_UNESCAPED_SLASHES); |
|
| 55 | + return json_encode($this->get(), JSON_THROW_ON_ERROR|JSON_UNESCAPED_SLASHES); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -112,8 +112,7 @@ discard block |
||
| 112 | 112 | $data['categories'] = [ |
| 113 | 113 | $this->object->getId() => $this->getCategoryData($this->object), |
| 114 | 114 | ]; |
| 115 | - } |
|
| 116 | - elseif ($this->object instanceof WithCategories) { |
|
| 115 | + } elseif ($this->object instanceof WithCategories) { |
|
| 117 | 116 | $data['categories'] = []; |
| 118 | 117 | foreach ($this->object->getCategories() as $category) { |
| 119 | 118 | $data['categories'][$category->getId()] = $this->getCategoryData($category); |
@@ -153,8 +152,7 @@ discard block |
||
| 153 | 152 | $data['rounds'] = [ |
| 154 | 153 | $this->object->getId() => $this->getRoundData($this->object), |
| 155 | 154 | ]; |
| 156 | - } |
|
| 157 | - elseif ($this->object instanceof WithRounds) { |
|
| 155 | + } elseif ($this->object instanceof WithRounds) { |
|
| 158 | 156 | $data['rounds'] = []; |
| 159 | 157 | foreach ($this->object->getRounds() as $round) { |
| 160 | 158 | $data['rounds'][$round->getId()] = $this->getRoundData($round); |
@@ -197,8 +195,7 @@ discard block |
||
| 197 | 195 | foreach ($this->object->getProgressions() as $progression) { |
| 198 | 196 | $data['progressions'][] = $this->getProgressionData($progression); |
| 199 | 197 | } |
| 200 | - } |
|
| 201 | - elseif ($this->object instanceof WithGroups) { |
|
| 198 | + } elseif ($this->object instanceof WithGroups) { |
|
| 202 | 199 | foreach ($this->object->getGroups() as $group) { |
| 203 | 200 | $data['groups'][$group->getId()] = $this->getGroupData($group); |
| 204 | 201 | foreach ($group->getProgressions() as $progression) { |