Code Duplication    Length = 8-8 lines in 2 locations

src/Model/EloquentRepository.php 1 location

@@ 320-327 (lines=8) @@
317
     * @param $parameters
318
     * @return mixed|null
319
     */
320
    public function __call($method, $parameters)
321
    {
322
        if ($this->hasHook($hook = snake_case($method))) {
323
            return $this->call($hook, $parameters);
324
        }
325
326
        return null;
327
    }
328
}
329

src/Model/EloquentCollection.php 1 location

@@ 133-140 (lines=8) @@
130
     * @param string $method
131
     * @param array  $parameters
132
     */
133
    public function __call($method, $parameters)
134
    {
135
        if ($this->hasHook($hook = snake_case($method))) {
136
            return $this->call($hook, $parameters);
137
        }
138
139
        return $this->get($method);
140
    }
141
}
142