Code Duplication    Length = 5-5 lines in 2 locations

code/control/PlanDispatcher.php 1 location

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

code/control/DeployDispatcher.php 1 location

@@ 195-199 (lines=5) @@
192
			'summary' => $request->postVar('summary')
193
		];
194
195
		if ($request->postVar('options')) {
196
			foreach (explode(',', $request->postVar('options')) as $option) {
197
				$options[$option] = true;
198
			}
199
		}
200
201
		$strategy = $this->environment->Backend()->planDeploy($this->environment, $options);
202