1 | <?php |
||
2 | |||
3 | use Cairo\Context; |
||
0 ignored issues
–
show
|
|||
4 | use Cairo\FontSlant; |
||
0 ignored issues
–
show
The type
Cairo\FontSlant 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\FontWeight; |
||
0 ignored issues
–
show
The type
Cairo\FontWeight 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, 10, 10); |
||
10 | $context = new Context($surface); |
||
11 | $context->rectangle(0, 0, 10, 10); |
||
12 | $context->setSourceRgb(0, 0, 1); |
||
13 | $context->fill(); |
||
14 | |||
15 | $context->resetClip(); |
||
16 | $context->rectangle(2, 2, 2, 2); |
||
17 | $context->clip(); |
||
18 | $context->rectangle(6, 6, 2, 2); |
||
19 | $context->clip(); |
||
20 | |||
21 | $context->translate(0.5, 0.5); |
||
22 | |||
23 | $context->resetClip(); |
||
24 | $context->rectangle(2, 2, 2, 2); |
||
25 | $context->clip(); |
||
26 | $context->rectangle(6, 6, 6, 6); |
||
27 | $context->clip(); |
||
28 | |||
29 | $context->rectangle(0, 0, 10, 10); |
||
30 | $context->setSourceRgb(1, 1, 0); |
||
31 | $context->fill(); |
||
32 | $context->selectFontFace('Bitstream Vera Sans', FontSlant::NORMAL, FontWeight::NORMAL); |
||
33 | $context->moveTo(0, 10); |
||
34 | $context->showText('cairo'); |
||
35 | $surface->writeToPng(dirname(__FILE__).'/clip-all-php.png'); |
||
36 |
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