bluzphp /
skeleton
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * @author Anton Shevchuk |
||
| 4 | * @created 22.10.12 18:40 |
||
| 5 | */ |
||
| 6 | |||
| 7 | namespace Application; |
||
| 8 | |||
| 9 | use Application\Users\Table; |
||
| 10 | use Bluz\Controller\Controller; |
||
|
0 ignored issues
–
show
|
|||
| 11 | use Bluz\Proxy\Db; |
||
|
0 ignored issues
–
show
The type
Bluz\Proxy\Db was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 12 | use Bluz\Proxy\Router; |
||
|
0 ignored issues
–
show
The type
Bluz\Proxy\Router was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 13 | |||
| 14 | /** |
||
| 15 | * @privilege Management |
||
| 16 | * |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | return function () { |
||
| 20 | /** |
||
| 21 | * @var Controller $this |
||
| 22 | */ |
||
| 23 | 1 | $this->assign('total', (int)Db::fetchOne('SELECT COUNT(*) FROM users')); |
|
| 24 | 1 | $this->assign('active', (int)Db::fetchOne('SELECT COUNT(*) FROM users WHERE status = ?', [Table::STATUS_ACTIVE])); |
|
| 25 | 1 | $this->assign('last', Db::fetchRow('SELECT id, login FROM users ORDER BY id DESC LIMIT 1')); |
|
| 26 | 1 | return 'widgets/stats.phtml'; |
|
| 27 | }; |
||
| 28 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths