Code Duplication    Length = 6-6 lines in 2 locations

src/ZenifyCodingStandard/Sniffs/ControlStructures/SwitchDeclarationSniff.php 2 locations

@@ 159-164 (lines=6) @@
156
			// They must (at least) have a comment describing why
157
			// the default case is being ignored.
158
			$foundContent = FALSE;
159
			for ($i = ($this->tokens[$nextCase]['scope_opener'] + 1); $i < $nextBreak; $i++) {
160
				if ($this->tokens[$i]['type'] !== 'T_WHITESPACE') {
161
					$foundContent = TRUE;
162
					break;
163
				}
164
			}
165
			if ($foundContent === FALSE) {
166
				$error = 'Comment required for empty DEFAULT case';
167
				$this->file->addError($error, $nextCase, 'EmptyDefault');
@@ 256-261 (lines=6) @@
253
	{
254
		$caseLine = $this->tokens[$nextCase]['line'];
255
		$nextLine = $this->tokens[$nextBreak]['line'];
256
		for ($i = ($opener + 1); $i < $nextBreak; $i++) {
257
			if ($this->tokens[$i]['type'] !== 'T_WHITESPACE') {
258
				$nextLine = $this->tokens[$i]['line'];
259
				break;
260
			}
261
		}
262
		if ($nextLine !== ($caseLine + 1)) {
263
			$error = 'Blank lines are not allowed after ' . strtoupper($type) . ' statements';
264
			$this->file->addError($error, $nextCase, 'SpacingAfter' . $type);