We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 21 | class BackendController extends PluginEngine |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var PageRepository |
||
| 25 | */ |
||
| 26 | private $repository; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * AdminController constructor. |
||
| 30 | * @param PageRepository $repository |
||
| 31 | */ |
||
| 32 | public function __construct(PageRepository $repository) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Display a listing of the resource. |
||
| 39 | */ |
||
| 40 | public function index() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Show the form for creating a new resource. |
||
| 47 | * |
||
| 48 | * @return \Illuminate\Contracts\View\View|\Illuminate\Http\Response |
||
| 49 | */ |
||
| 50 | public function create() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Store a newly created resource in storage. |
||
| 57 | * |
||
| 58 | * @param \Illuminate\Http\Request $request |
||
| 59 | * @return \Illuminate\Http\Response |
||
|
|
|||
| 60 | */ |
||
| 61 | public function store(Request $request) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Display the specified resource. |
||
| 72 | * |
||
| 73 | * @param string $name |
||
| 74 | * @return bool |
||
| 75 | */ |
||
| 76 | public function show(string $name) |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Show the form for editing the specified resource. |
||
| 83 | * |
||
| 84 | * @param string $name |
||
| 85 | * @return \Illuminate\Contracts\View\View|\Illuminate\Http\Response |
||
| 86 | */ |
||
| 87 | public function edit(string $name) |
||
| 91 | |||
| 92 | /** |
||
| 93 | * Update the specified resource in storage. |
||
| 94 | * |
||
| 95 | * @param \Illuminate\Http\Request $request |
||
| 96 | * @param string $name |
||
| 97 | * @return \Illuminate\Http\Response |
||
| 98 | */ |
||
| 99 | public function update(Request $request, string $name) |
||
| 109 | |||
| 110 | /** |
||
| 111 | * Remove the specified resource from storage. |
||
| 112 | * |
||
| 113 | * @param $slug |
||
| 114 | * @param PageRepository $repository |
||
| 115 | * @return \Illuminate\Http\Response |
||
| 116 | * @throws \Exception |
||
| 117 | */ |
||
| 118 | public function destroy($slug, PageRepository $repository) |
||
| 128 | |||
| 129 | /** |
||
| 130 | * Resource data for saving. |
||
| 131 | * |
||
| 132 | * @param Request $request |
||
| 133 | * @param Page $page |
||
| 134 | */ |
||
| 135 | private function save(Request $request, Page $page) |
||
| 152 | } |
||
| 153 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.