Issues (331)

examples/infinite-join.php (4 issues)

1
<?php
2
3
use Cairo\Context;
0 ignored issues
show
The type Cairo\Context 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
use Cairo\LineJoin;
0 ignored issues
show
The type Cairo\LineJoin 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
5
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
8
$surface = new Image(ImageFormat::ARGB32, 8, 8);
9
$context = new Context($surface);
10
11
$context->setSourceRgb(1, 1, 1);
12
$context->paint();
13
14
$context->setSourceRgb(0, 0, 0);
15
$context->setLineJoin(LineJoin::ROUND);
16
$context->scale(20.0 / 100.0, 20 / 100.);
17
$context->scale(1. / 20, 1. / 20);
18
$context->setLineWidth(20);
19
$context->translate(-18300, -13200);
20
21
$context->newPath();
22
$context->moveTo(18928, 13843);
23
$context->lineTo(18500, 13843);
24
$context->lineTo(18500, 13400);
25
$context->lineTo(18928, 13400);
26
$context->lineTo(18928, 13843);
27
$context->stroke();
28
29
$surface->writeToPng(dirname(__FILE__).'/infinite-join-php.png');
30