| Conditions | 2 |
| Paths | 2 |
| Total Lines | 25 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function index(Request $request) |
||
| 17 | { |
||
| 18 | $this->setAdminPrefs(); |
||
| 19 | |||
| 20 | if ($request->has('presearch')) { |
||
| 21 | $lastSearch = $request->input('presearch'); |
||
| 22 | $parr = Predb::getAll($request->input('presearch')); |
||
| 23 | } else { |
||
| 24 | $lastSearch = ''; |
||
| 25 | $parr = Predb::getAll(); |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->smarty->assign('lastSearch', $lastSearch); |
||
|
|
|||
| 29 | |||
| 30 | $this->smarty->assign('results', $parr); |
||
| 31 | |||
| 32 | $title = 'Browse PreDb'; |
||
| 33 | $meta_title = 'View PreDb info'; |
||
| 34 | $meta_keywords = 'view,predb,info,description,details'; |
||
| 35 | $meta_description = 'View PreDb info'; |
||
| 36 | |||
| 37 | $content = $this->smarty->fetch('predb.tpl'); |
||
| 38 | $this->smarty->assign(compact('title', 'content', 'meta_title', 'meta_keywords', 'meta_description')); |
||
| 39 | |||
| 40 | $this->adminrender(); |
||
| 41 | } |
||
| 43 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.