Code Duplication    Length = 10-10 lines in 2 locations

src/Models/Model.php 1 location

@@ 18-27 (lines=10) @@
15
     *
16
     * @return Model
17
     */
18
    public function fill(array $data): Model
19
    {
20
        foreach ($data as $key => $value) {
21
            if ($key === 'url') {
22
                continue;
23
            }
24
            $this->{$key} = $value;
25
        }
26
27
        return $this;
28
    }
29
30
    /**

src/Models/Theme.php 1 location

@@ 18-27 (lines=10) @@
15
     *
16
     * @return Model
17
     */
18
    public function fill(array $data): Model
19
    {
20
        foreach ($data as $key => $value) {
21
            if ($key === 'url') {
22
                continue;
23
            }
24
            $this->{$key} = $value;
25
        }
26
27
        return $this;
28
    }
29
30
    /**