Code Duplication    Length = 3-3 lines in 2 locations

src/Event.php 2 locations

@@ 88-90 (lines=3) @@
85
        if (count($arguments) > 2 && count($arguments) < 4) {
86
            return new $className($arguments[0], $arguments[1], $arguments[2]);
87
        }
88
        if (count($arguments) > 3 && count($arguments) < 5) {
89
            return new $className($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
90
        }
91
        if (count($arguments) > 4 && count($arguments) < 6) {
92
            return new $className($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4]);
93
        }
@@ 91-93 (lines=3) @@
88
        if (count($arguments) > 3 && count($arguments) < 5) {
89
            return new $className($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
90
        }
91
        if (count($arguments) > 4 && count($arguments) < 6) {
92
            return new $className($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4]);
93
        }
94
        return new $className($arguments[0], $arguments[1]);
95
    }
96
}