Code Duplication    Length = 6-6 lines in 3 locations

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

@@ 222-227 (lines=6) @@
219
			}
220
		}
221
222
		foreach ($this->blackListedConstants as $blackListedAlias => $blackListedConstant) {
223
			if (\strpos($blackListedConstant, $name . '\\') === 0 || \strpos($blackListedConstant, $name . '::') === 0) {
224
				$aliasedConstantName = \str_replace($name, $alias, $blackListedConstant);
225
				$this->blackListedConstants[$aliasedConstantName] = $blackListedConstant;
226
			}
227
		}
228
229
		foreach ($this->blackListedFunctions as $blackListedAlias => $blackListedFunction) {
230
			if (\strpos($blackListedFunction, $name . '\\') === 0 || \strpos($blackListedFunction, $name . '::') === 0) {
@@ 229-234 (lines=6) @@
226
			}
227
		}
228
229
		foreach ($this->blackListedFunctions as $blackListedAlias => $blackListedFunction) {
230
			if (\strpos($blackListedFunction, $name . '\\') === 0 || \strpos($blackListedFunction, $name . '::') === 0) {
231
				$aliasedFunctionName = \str_replace($name, $alias, $blackListedFunction);
232
				$this->blackListedFunctions[$aliasedFunctionName] = $blackListedFunction;
233
			}
234
		}
235
236
		foreach ($this->blackListedMethods as $blackListedAlias => $blackListedMethod) {
237
			if (\strpos($blackListedMethod, $name . '\\') === 0 || \strpos($blackListedMethod, $name . '::') === 0) {
@@ 236-241 (lines=6) @@
233
			}
234
		}
235
236
		foreach ($this->blackListedMethods as $blackListedAlias => $blackListedMethod) {
237
			if (\strpos($blackListedMethod, $name . '\\') === 0 || \strpos($blackListedMethod, $name . '::') === 0) {
238
				$aliasedMethodName = \str_replace($name, $alias, $blackListedMethod);
239
				$this->blackListedMethods[$aliasedMethodName] = $blackListedMethod;
240
			}
241
		}
242
	}
243
244
	private function checkBlackList($name, $errorCode, Node $node) {