Code Duplication    Length = 7-7 lines in 2 locations

src/Models/MetadataGubbinsHolder.php 1 location

@@ 90-96 (lines=7) @@
87
    /**
88
     * @param $className
89
     */
90
    protected function checkClassExists($className)
91
    {
92
        if (!array_key_exists($className, $this->relations)) {
93
            $msg = $className . ' does not exist in holder';
94
            throw new \InvalidArgumentException($msg);
95
        }
96
    }
97
}
98

src/Models/MetadataRelationHolder.php 1 location

@@ 256-262 (lines=7) @@
253
    /**
254
     * @param $className
255
     */
256
    protected function checkClassExists($className)
257
    {
258
        if (!array_key_exists($className, $this->relations)) {
259
            $msg = $className . ' does not exist in holder';
260
            throw new \InvalidArgumentException($msg);
261
        }
262
    }
263
}
264