Code Duplication    Length = 8-8 lines in 2 locations

src/Model/EloquentCollection.php 1 location

@@ 115-122 (lines=8) @@
112
     * @param string $method
113
     * @param array  $parameters
114
     */
115
    public function __call($method, $parameters)
116
    {
117
        if ($this->hasHook($hook = snake_case($method))) {
118
            return $this->call($hook, $parameters);
119
        }
120
121
        return $this->get($method);
122
    }
123
}
124

src/Model/EloquentRepository.php 1 location

@@ 306-313 (lines=8) @@
303
     * @param $parameters
304
     * @return mixed|null
305
     */
306
    public function __call($method, $parameters)
307
    {
308
        if ($this->hasHook($hook = snake_case($method))) {
309
            return $this->call($hook, $parameters);
310
        }
311
312
        return null;
313
    }
314
}
315