Code Duplication    Length = 10-10 lines in 2 locations

debug/exceptions/fatal/ClassNotFound.php 1 location

@@ 15-24 (lines=10) @@
12
 * @copyright   2012-2016 Nyx Dev Team
13
 * @link        http://docs.muyo.io/nyx/diagnostics/debug.html
14
 */
15
class ClassNotFound extends exceptions\FatalError
16
{
17
    /**
18
     * {@inheritDoc}
19
     */
20
    public function __construct(string $message, \ErrorException $previous)
21
    {
22
        parent::__construct($message, $previous->getCode(), $previous->getSeverity(), $previous->getFile(), $previous->getLine(), $previous->getPrevious());
23
    }
24
}
25

debug/exceptions/fatal/UndefinedFunction.php 1 location

@@ 15-24 (lines=10) @@
12
 * @copyright   2012-2016 Nyx Dev Team
13
 * @link        http://docs.muyo.io/nyx/diagnostics/debug.html
14
 */
15
class UndefinedFunction extends exceptions\FatalError
16
{
17
    /**
18
     * {@inheritDoc}
19
     */
20
    public function __construct(string $message, \ErrorException $previous)
21
    {
22
        parent::__construct($message, $previous->getCode(), $previous->getSeverity(), $previous->getFile(), $previous->getLine(), $previous->getPrevious());
23
    }
24
}
25