Code Duplication    Length = 6-6 lines in 3 locations

lib/private/App/CodeChecker/NodeVisitor.php 3 locations

@@ 193-198 (lines=6) @@
190
			}
191
		}
192
193
		foreach ($this->blackListedConstants as $blackListedAlias => $blackListedConstant) {
194
			if (\strpos($blackListedConstant, $name . '\\') === 0 || \strpos($blackListedConstant, $name . '::') === 0) {
195
				$aliasedConstantName = \str_replace($name, $alias, $blackListedConstant);
196
				$this->blackListedConstants[$aliasedConstantName] = $blackListedConstant;
197
			}
198
		}
199
200
		foreach ($this->blackListedFunctions as $blackListedAlias => $blackListedFunction) {
201
			if (\strpos($blackListedFunction, $name . '\\') === 0 || \strpos($blackListedFunction, $name . '::') === 0) {
@@ 200-205 (lines=6) @@
197
			}
198
		}
199
200
		foreach ($this->blackListedFunctions as $blackListedAlias => $blackListedFunction) {
201
			if (\strpos($blackListedFunction, $name . '\\') === 0 || \strpos($blackListedFunction, $name . '::') === 0) {
202
				$aliasedFunctionName = \str_replace($name, $alias, $blackListedFunction);
203
				$this->blackListedFunctions[$aliasedFunctionName] = $blackListedFunction;
204
			}
205
		}
206
207
		foreach ($this->blackListedMethods as $blackListedAlias => $blackListedMethod) {
208
			if (\strpos($blackListedMethod, $name . '\\') === 0 || \strpos($blackListedMethod, $name . '::') === 0) {
@@ 207-212 (lines=6) @@
204
			}
205
		}
206
207
		foreach ($this->blackListedMethods as $blackListedAlias => $blackListedMethod) {
208
			if (\strpos($blackListedMethod, $name . '\\') === 0 || \strpos($blackListedMethod, $name . '::') === 0) {
209
				$aliasedMethodName = \str_replace($name, $alias, $blackListedMethod);
210
				$this->blackListedMethods[$aliasedMethodName] = $blackListedMethod;
211
			}
212
		}
213
	}
214
215
	private function checkBlackList($name, $errorCode, Node $node) {