1 | <?php |
||
2 | |||
3 | use Cairo\Context; |
||
0 ignored issues
–
show
|
|||
4 | use Cairo\Extend; |
||
0 ignored issues
–
show
The type
Cairo\Extend 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 ![]() |
|||
5 | use Cairo\Operator; |
||
0 ignored issues
–
show
The type
Cairo\Operator 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 ![]() |
|||
6 | use Cairo\Surface\Image; |
||
0 ignored issues
–
show
The type
Cairo\Surface\Image 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 ![]() |
|||
7 | use Cairo\Surface\ImageFormat; |
||
0 ignored issues
–
show
The type
Cairo\Surface\ImageFormat 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 ![]() |
|||
8 | |||
9 | $surface = new Image(ImageFormat::ARGB32, 256 + 32 * 2, 192 + 32 * 2); |
||
10 | $context = new Context($surface); |
||
11 | $s = new Image(ImageFormat::ARGB32, 100, 100); |
||
12 | $s->createFromPng(dirname(__FILE__).'/romedalen.png'); |
||
13 | $s1 = $surface->createSimilar($surface->getContent(), 320, 256); |
||
14 | $con2 = new Context($s1); |
||
15 | $con2->setSurface($s, 32, 32); |
||
16 | $con2->setOperator(Operator::SOURCE); |
||
17 | $pat = $con2->getPattern(); |
||
18 | $pat->setExtend(Extend::REPEAT); |
||
19 | $con2->paint(); |
||
20 | $context->setSurface($s1, 0, 0); |
||
21 | $context->paint(); |
||
22 | $surface->writeToPng(dirname(__FILE__).'/extend-repeat-similar-php.png'); |
||
23 |
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