Conditions | 2 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Mpociot\Teamwork\Traits; |
||
24 | protected static function bootUsedByTeams() |
||
25 | { |
||
26 | static::addGlobalScope('team', function (Builder $builder) { |
||
27 | static::teamGuard(); |
||
28 | |||
29 | $builder->where('team_id', auth()->user()->currentTeam->getKey()); |
||
|
|||
30 | }); |
||
31 | |||
32 | static::saving(function (Model $model) { |
||
33 | static::teamGuard(); |
||
34 | |||
35 | if (!isset($model->team_id)) { |
||
36 | $model->team_id = auth()->user()->currentTeam->getKey(); |
||
37 | } |
||
38 | }); |
||
39 | } |
||
40 | |||
68 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.