We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function scopeFindSimilarSlugs(Builder $query, string $attribute, array $config, string $slug): Builder |
||
23 | { |
||
24 | $separator = $config['separator']; |
||
25 | $attribute = $attribute.'->'.$this->getLocale(); |
||
26 | |||
27 | return $query->where(function (Builder $q) use ($attribute, $slug, $separator) { |
||
28 | $q->where($attribute, '=', $slug) |
||
29 | ->orWhere($attribute, 'LIKE', $slug.$separator.'%') |
||
30 | // Fixes issues with Json data types in MySQL where data is sourrounded by " |
||
31 | ->orWhere($attribute, 'LIKE', '"'.$slug.$separator.'%'); |
||
32 | }); |
||
35 |
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