Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function creating(Sprint $sprint) |
||
20 | { |
||
21 | $sprint->user_id = Auth::user()->id; |
||
|
|||
22 | $sprint->slug = Helper::slug($sprint->title); |
||
23 | |||
24 | $configStatus = ConfigStatus::type('sprint')->default()->first(); |
||
25 | |||
26 | if ($configStatus->is_closed) { |
||
27 | $sprint->closed_at = Carbon::now(); |
||
28 | } |
||
29 | |||
30 | $sprint->config_status_id = $configStatus->id; |
||
31 | } |
||
32 | |||
43 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.