Code Duplication    Length = 8-10 lines in 2 locations

src/ZenifyCodingStandard/Sniffs/Namespaces/NamespaceDeclarationSniff.php 2 locations

@@ 69-76 (lines=8) @@
66
		$linesToNextClass = $this->getLinesToNextClass();
67
68
		if ($linesToNextUse) {
69
			if ($linesToNextUse !== $this->emptyLinesBeforeUseStatement) {
70
				$error = 'There should be %s empty line(s) from namespace to use statement; %s found';
71
				$data = [
72
					$this->emptyLinesBeforeUseStatement,
73
					$linesToNextUse
74
				];
75
				$file->addError($error, $position, 'BlankLineAfter', $data);
76
			}
77
78
		} elseif ($linesToNextClass) {
79
			if ($linesToNextClass !== $this->emptyLinesAfterNamespace) {
@@ 78-87 (lines=10) @@
75
				$file->addError($error, $position, 'BlankLineAfter', $data);
76
			}
77
78
		} elseif ($linesToNextClass) {
79
			if ($linesToNextClass !== $this->emptyLinesAfterNamespace) {
80
				$error = 'There should be %s empty line(s) after the namespace declaration; %s found';
81
				$data = [
82
					$this->emptyLinesAfterNamespace,
83
					$linesToNextClass
84
				];
85
				$file->addError($error, $position, 'BlankLineAfter', $data);
86
			}
87
		}
88
	}
89
90