Code Duplication    Length = 4-4 lines in 2 locations

src/Component/Component.php 1 location

@@ 100-103 (lines=4) @@
97
98
		$class = get_called_class();
99
100
		if (empty(static::$instances[$class][$option]))
101
		{
102
			static::$instances[$class][$option] = new static($option);
103
		}
104
105
		return static::$instances[$class][$option];
106
	}

src/Traits/HasInstances.php 1 location

@@ 52-55 (lines=4) @@
49
	{
50
		$class = get_called_class();
51
52
		if (empty(static::$instances[$class][$id]))
53
		{
54
			static::$instances[$class][$id] = new static($id);
55
		}
56
57
		return static::$instances[$class][$id];
58
	}