Code Duplication    Length = 4-4 lines in 2 locations

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
	}

src/Component/Component.php 1 location

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