Code Duplication    Length = 5-5 lines in 2 locations

code/control/DeployDispatcher.php 1 location

@@ 174-178 (lines=5) @@
171
			'summary' => $request->postVar('summary')
172
		];
173
174
		if ($request->postVar('options')) {
175
			foreach (explode(',', $request->postVar('options')) as $option) {
176
				$options[$option] = 'true';
177
			}
178
		}
179
180
		$strategy = $this->environment->Backend()->planDeploy($this->environment, $options);
181

code/control/PlanDispatcher.php 1 location

@@ 74-78 (lines=5) @@
71
		$this->checkSecurityToken();
72
73
		$options = ['sha' => $request->postVar('sha')];
74
		if ($request->requestVar('options')) {
75
			foreach (explode(',', $request->postVar('options')) as $option) {
76
				$options[$option] = 'true';
77
			}
78
		}
79
80
		$strategy = $this->environment->Backend()->planDeploy($this->environment, $options);
81
		$data = $strategy->toArray();