Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function post(Request $request): void |
||
31 | { |
||
32 | $saved = false; |
||
33 | foreach ((array)$request->post('watch') as $data) { |
||
34 | $saved = true; |
||
35 | $this->searcher->saveWatch($data); |
||
36 | } |
||
37 | if ($saved) { |
||
38 | $this->app->flash('success', 'Watch functions updated.'); |
||
39 | } |
||
40 | $this->app->redirect($this->app->urlFor('watch.list')); |
||
41 | } |
||
42 | } |
||
43 |