Completed
Push — master ( a7ba40...b3dcaf )
by Tomáš
06:44
created
src/TournamentGenerator/Export/ExportBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.
src/TournamentGenerator/Export/Hierarchy/SetupExporter.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -112,8 +112,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.