Code Duplication    Length = 13-13 lines in 2 locations

src/Wildfire.php 1 location

@@ 94-106 (lines=13) @@
91
     * @param  mixed  $parameters
92
     * @return mixed
93
     */
94
    public function __call($method, $parameters)
95
    {
96
        $method = camelize($method);
97
        $result = $this;
98
99
        if (method_exists($this, $method)) {
100
            $class = [$this, $method];
101
            
102
            $result = call_user_func_array($class, $parameters);
103
        }
104
105
        return $result;
106
    }
107
}
108

src/CodeigniterModel.php 1 location

@@ 93-105 (lines=13) @@
90
     * @param  mixed  $parameters
91
     * @return mixed
92
     */
93
    public function __call($method, $parameters)
94
    {
95
        $method = camelize($method);
96
        $result = $this;
97
98
        if (method_exists($this, $method)) {
99
            $class = [ $this, $method ];
100
101
            $result = call_user_func_array($class, $parameters);
102
        }
103
104
        return $result;
105
    }
106
}
107