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

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