We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
8 | class DonorController extends Controller |
||
9 | { |
||
10 | /** |
||
11 | * Display a listing of the resource. |
||
12 | * |
||
13 | * @return \Illuminate\Http\Response |
||
14 | */ |
||
15 | public function index() |
||
21 | |||
22 | /** |
||
23 | * Show the form for creating a new resource. |
||
24 | * |
||
25 | * @return \Illuminate\Http\Response |
||
26 | */ |
||
27 | public function create() |
||
31 | |||
32 | /** |
||
33 | * Store a newly created resource in storage. |
||
34 | * |
||
35 | * @param \Illuminate\Http\Request $request |
||
36 | * |
||
37 | * @return \Illuminate\Http\Response |
||
38 | */ |
||
39 | public function store(Request $request) |
||
56 | |||
57 | /** |
||
58 | * Display the specified resource. |
||
59 | * |
||
60 | * @param int $id |
||
61 | * |
||
62 | * @return \Illuminate\Http\Response |
||
63 | */ |
||
64 | public function show($id) |
||
70 | |||
71 | /** |
||
72 | * Show the form for editing the specified resource. |
||
73 | * |
||
74 | * @param int $id |
||
75 | * |
||
76 | * @return \Illuminate\Http\Response |
||
77 | */ |
||
78 | public function edit($id) |
||
82 | |||
83 | /** |
||
84 | * Update the specified resource in storage. |
||
85 | * |
||
86 | * @param \Illuminate\Http\Request $request |
||
87 | * @param int $id |
||
88 | * |
||
89 | * @return \Illuminate\Http\Response |
||
90 | */ |
||
91 | public function update(Request $request, $id) |
||
101 | |||
102 | /** |
||
103 | * Remove the specified resource from storage. |
||
104 | * |
||
105 | * @param int $id |
||
106 | * |
||
107 | * @return \Illuminate\Http\Response |
||
108 | */ |
||
109 | public function destroy($id) |
||
112 | } |
||
113 |
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.