Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function boot() |
||
18 | { |
||
19 | $this->app[EngineManager::class]->extend('tntsearch', function () { |
||
20 | $tnt = new TNTSearch(); |
||
21 | $driver = config('database.default'); |
||
22 | $config = config('scout.tntsearch') + config("database.connections.$driver"); |
||
23 | |||
24 | |||
25 | $tnt->loadConfig($config); |
||
26 | $tnt->setDatabaseHandle(app('db')->connection()->getPdo()); |
||
27 | $this->setFuzziness($tnt); |
||
28 | |||
29 | return new Engines\TNTSearchEngine($tnt); |
||
30 | }); |
||
31 | |||
32 | if ($this->app->runningInConsole()) { |
||
|
|||
33 | $this->commands([ |
||
34 | ImportCommand::class, |
||
35 | ]); |
||
36 | } |
||
37 | } |
||
38 | |||
53 |
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.