Skip to content

Commit decab40

Browse files
committed
Update php-cs-fixer
1 parent c3371b7 commit decab40

File tree

6 files changed

+42
-24
lines changed

6 files changed

+42
-24
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: shivammathur/setup-php@v2
1111
with:
1212
php-version: '7.2'
13-
tools: php-cs-fixer:3.2.1
13+
tools: php-cs-fixer:3.4.0
1414
coverage: none
1515
- name: php-cs-fixer
1616
run: php-cs-fixer fix --dry-run --diff

Cli/Application.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727

2828
class Application extends SymfonyApplication
2929
{
30-
const APPLICATION_NAME = 'SymfonyInsight CLI';
31-
const APPLICATION_VERSION = '1.7.4';
30+
public const APPLICATION_NAME = 'SymfonyInsight CLI';
31+
32+
public const APPLICATION_VERSION = '1.7.4';
3233

3334
private $api;
3435
private $apiConfig;

Cli/Descriptor/PmdDescriptor.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
77

88
class PmdDescriptor extends AbstractDescriptor
99
{
10-
const PHPMD_PRIORITY_HIGH = 1;
11-
const PHPMD_PRIORITY_MEDIUM_HIGH = 2;
12-
const PHPMD_PRIORITY_MEDIUM = 3;
13-
const PHPMD_PRIORITY_MEDIUM_LOW = 4;
14-
const PHPMD_PRIORITY_LOW = 5;
10+
public const PHPMD_PRIORITY_HIGH = 1;
11+
12+
public const PHPMD_PRIORITY_MEDIUM_HIGH = 2;
13+
14+
public const PHPMD_PRIORITY_MEDIUM = 3;
15+
16+
public const PHPMD_PRIORITY_MEDIUM_LOW = 4;
17+
18+
public const PHPMD_PRIORITY_LOW = 5;
1519

1620
protected function describeAnalysis(Analysis $analysis, array $options = [])
1721
{

Sdk/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
class Api
3333
{
34-
const ENDPOINT = 'https://insight.symfony.com';
34+
public const ENDPOINT = 'https://insight.symfony.com';
3535

3636
private $baseUrl;
3737
private $httpClient;

Sdk/Model/Analysis.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@
1717

1818
class Analysis
1919
{
20-
const STATUS_ORDERED = 'ordered';
21-
const STATUS_RUNNING = 'running';
22-
const STATUS_MEASURED = 'measured';
23-
const STATUS_ANALYZED = 'analyzed';
24-
const STATUS_FINISHED = 'finished';
20+
public const STATUS_ORDERED = 'ordered';
21+
22+
public const STATUS_RUNNING = 'running';
23+
24+
public const STATUS_MEASURED = 'measured';
25+
26+
public const STATUS_ANALYZED = 'analyzed';
27+
28+
public const STATUS_FINISHED = 'finished';
2529

2630
/**
2731
* @Type("array<SensioLabs\Insight\Sdk\Model\Link>")

Sdk/Model/Project.php

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,25 @@ class Project
2121
/**
2222
* @see https://github.com/sensiolabs/connect/blob/master/src/SensioLabs/Connect/Api/Entity/Project.php
2323
*/
24-
const TYPE_PHP_WEBSITE = 0;
25-
const TYPE_PHP_LIBRARY = 1;
26-
const TYPE_SYMFONY2_BUNDLE = 2;
27-
const TYPE_SYMFONY1_PLUGIN = 4;
28-
const TYPE_OTHER = 6;
29-
const TYPE_DRUPAL_MODULE = 7;
30-
const TYPE_LARAVAL_WEB_PROJECT = 8;
31-
const TYPE_SILEX_WEB_PROJECT = 9;
32-
const TYPE_SYMFONY2_WEB_PROJECT = 10;
33-
const TYPE_SYMFONY1_WEB_PROJECT = 11;
24+
public const TYPE_PHP_WEBSITE = 0;
25+
26+
public const TYPE_PHP_LIBRARY = 1;
27+
28+
public const TYPE_SYMFONY2_BUNDLE = 2;
29+
30+
public const TYPE_SYMFONY1_PLUGIN = 4;
31+
32+
public const TYPE_OTHER = 6;
33+
34+
public const TYPE_DRUPAL_MODULE = 7;
35+
36+
public const TYPE_LARAVAL_WEB_PROJECT = 8;
37+
38+
public const TYPE_SILEX_WEB_PROJECT = 9;
39+
40+
public const TYPE_SYMFONY2_WEB_PROJECT = 10;
41+
42+
public const TYPE_SYMFONY1_WEB_PROJECT = 11;
3443

3544
/**
3645
* @Exclude()

0 commit comments

Comments
 (0)