We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function update(UpdatePostRequest $request, $id) |
||
51 | { |
||
52 | $post = Campaign::find($id); |
||
53 | $post->title = $request['title']; |
||
54 | $post->title = $request['content']; |
||
55 | $post->title = $request['image']; |
||
56 | $post->title = $request['user_id']; |
||
57 | $post->save(); |
||
58 | |||
59 | return response()->json(['message' => 'Post Updated']); |
||
60 | } |
||
61 | |||
70 |
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.