Issues (331)

examples/rectangle-rounding-error.php (4 issues)

Labels
Severity
1
<?php
2
3
use Cairo\Antialias;
0 ignored issues
show
The type Cairo\Antialias 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\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...
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, 76, 76);
9
$context = new Context($surface);
10
11
$context->setSourceRgb(1, 1, 1);
12
$context->paint();
13
$context->setAntialias(Antialias::NONE);
14
$context->setSourceRgb(0, 0, 0);
15
16
$context->translate(-300, -300);
17
$context->scale(677.0 / 26, 677.0 / 26);
18
$context->translate(1, 1);
19
$context->rectangle(11, 11, 1, 1);
20
$context->rectangle(11, 12, 1, 1);
21
$context->rectangle(12, 11, 1, 1);
22
$context->rectangle(12, 12, 1, 1);
23
$context->setSourceRgb(0, 0, 0);
24
$context->fill();
25
26
$surface->writeToPng(dirname(__FILE__).'/rectangle-rounding-error-php.png');
27