Code Duplication    Length = 8-8 lines in 2 locations

app/Model/User.php 1 location

@@ 169-176 (lines=8) @@
166
     *
167
     * @return Eloquent\Collection
168
     */
169
    protected function loadPermissions()
170
    {
171
        if (null === $this->permission) {
172
            $this->permission = $this->permissions()->with('permission')->get();
173
        }
174
175
        return $this->permission;
176
    }
177
178
    /**
179
     * Return user full name with property "fullname".

app/Repository/Traits/User/QueryTrait.php 1 location

@@ 132-139 (lines=8) @@
129
     *
130
     * @return Eloquent\Collection
131
     */
132
    protected function loadPermissions()
133
    {
134
        if (null === $this->permission) {
135
            $this->permission = $this->permissions()->with('permission')->get();
136
        }
137
138
        return $this->permission;
139
    }
140
141
    abstract public function getLoggedUser();
142
}