1 | <?php namespace Anomaly\AddonsModule\Http\Controller\Admin; |
||
22 | class AddonsController extends AdminController |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * Return an index of existing entries. |
||
27 | * |
||
28 | * @param AddonTableBuilder $builder |
||
29 | * @param string $type |
||
30 | * @return \Symfony\Component\HttpFoundation\Response |
||
31 | */ |
||
32 | public function index(AddonTableBuilder $builder, $type = 'modules') |
||
38 | |||
39 | /** |
||
40 | * Return the details for an addon. |
||
41 | * |
||
42 | * @param AddonCollection $addons |
||
43 | * @param $addon |
||
44 | * @return mixed|null|string |
||
45 | */ |
||
46 | public function details(AddonCollection $addons, $addon) |
||
55 | |||
56 | /** |
||
57 | * Return the modal form for the seed |
||
58 | * option when installing modules. |
||
59 | * |
||
60 | * @param AddonCollection $addons |
||
61 | * @param $namespace |
||
62 | * @return |
||
63 | */ |
||
64 | public function options(AddonCollection $addons, $namespace) |
||
71 | |||
72 | /** |
||
73 | * Install an addon. |
||
74 | * |
||
75 | * @param Request $request |
||
76 | * @param ModuleManager $modules |
||
77 | * @param AddonCollection $addons |
||
78 | * @param ExtensionManager $extensions |
||
79 | * @param $addon |
||
80 | * @return \Illuminate\Http\RedirectResponse |
||
81 | */ |
||
82 | public function install( |
||
102 | |||
103 | /** |
||
104 | * Uninstall an addon. |
||
105 | * |
||
106 | * @param AddonCollection $addons |
||
107 | * @param ModuleManager $modules |
||
108 | * @param ExtensionManager $extensions |
||
109 | * @param $addon |
||
110 | * @return \Illuminate\Http\RedirectResponse |
||
111 | */ |
||
112 | public function uninstall(AddonCollection $addons, ModuleManager $modules, ExtensionManager $extensions, $addon) |
||
127 | } |
||
128 |
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your
composer.json
file (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects thecomposer.json
to be in the root folder of your repository.Are you sure this class is defined by one of your dependencies, or did you maybe not list a dependency in either the
require
orrequire-dev
section?2. Missing use statement
PHP does not complain about undefined classes in
ìnstanceof
checks. For example, the following PHP code will work perfectly fine:If you have not tested against this specific condition, such errors might go unnoticed.