DyarWeb /
php-telegram-bot
| 1 | <?php |
||
| 2 | declare(strict_types=1); |
||
| 3 | |||
| 4 | namespace DyarWeb\DB; |
||
| 5 | |||
| 6 | /** |
||
| 7 | * Class DB |
||
| 8 | * @package DyarWeb |
||
| 9 | */ |
||
| 10 | class DB |
||
| 11 | { |
||
| 12 | public static $instance; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @return Json|MongoDB|Mysql |
||
| 16 | */ |
||
| 17 | |||
| 18 | public static function Database() |
||
| 19 | { |
||
| 20 | $DB = getenv('DB'); |
||
| 21 | if ($DB == 'json') self::$instance = new Json(); |
||
| 22 | elseif ($DB == 'mysql') self::$instance = new Mysql(); |
||
|
0 ignored issues
–
show
|
|||
| 23 | elseif ($DB == 'mongodb') self::$instance = new MongoDB(); |
||
|
0 ignored issues
–
show
|
|||
| 24 | return self::$instance; |
||
| 25 | |||
| 26 | } |
||
| 27 | } |
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