GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 3-4 lines in 2 locations

src/Flare/Traits/ModelAdmin/ModelWriting.php 2 locations

@@ 127-130 (lines=4) @@
124
            }
125
126
            // Could swap this out for model -> getAttribute, then check if we have an attribute or a relation... getRelationValue() is helpful
127
            if (method_exists($this->model, $key) && is_a(call_user_func_array([$this->model, $key], []), 'Illuminate\Database\Eloquent\Relations\Relation')) {
128
                $this->saveRelation('doSave', $key, $value);
129
                continue;
130
            }
131
132
            $this->model->setAttribute($key, $value);
133
        }
@@ 152-154 (lines=3) @@
149
        foreach (\Request::except('_token') as $key => $value) {
150
151
            // Could swap this out for model -> getAttribute, then check if we have an attribute or a relation... getRelationValue() is helpful
152
            if (method_exists($this->model, $key) && is_a(call_user_func_array([$this->model, $key], []), 'Illuminate\Database\Eloquent\Relations\Relation')) {
153
                $this->saveRelation('afterSave', $key, $value);
154
            }
155
        }
156
157
        event(new AfterSave($this));