bluzphp /
skeleton
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * @copyright Bluz PHP Team |
||
| 5 | * @link https://github.com/bluzphp/skeleton |
||
| 6 | */ |
||
| 7 | |||
| 8 | declare(strict_types=1); |
||
| 9 | |||
| 10 | namespace Application\Pages; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Table of Pages |
||
| 14 | * |
||
| 15 | * @package Application\Pages |
||
| 16 | * |
||
| 17 | * @method static Row|null findRow($primaryKey) |
||
| 18 | * @see \Bluz\Db\Table::findRow() |
||
| 19 | * @method static Row|null findRowWhere($whereList) |
||
| 20 | * @see \Bluz\Db\Table::findRowWhere() |
||
| 21 | */ |
||
| 22 | class Table extends \Bluz\Db\Table |
||
|
0 ignored issues
–
show
|
|||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Table |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $name = 'pages'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Primary key(s) |
||
| 33 | * |
||
| 34 | * @var array |
||
| 35 | */ |
||
| 36 | protected $primary = ['id']; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get page by Alias |
||
| 40 | * |
||
| 41 | * @param $alias |
||
| 42 | * |
||
| 43 | * @return Row |
||
| 44 | * @throws \Bluz\Db\Exception\DbException |
||
| 45 | 2 | */ |
|
| 46 | public function getByAlias($alias): ?Row |
||
| 47 | 2 | { |
|
| 48 | return static::findRowWhere(['alias' => $alias]); |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Init table relations |
||
| 53 | * |
||
| 54 | * @return void |
||
| 55 | 1 | */ |
|
| 56 | public function init(): void |
||
| 57 | 1 | { |
|
| 58 | 1 | $this->linkTo('userId', 'Users', 'id'); |
|
| 59 | } |
||
| 60 | } |
||
| 61 |
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