File tree Expand file tree Collapse file tree 6 files changed +42
-24
lines changed
Expand file tree Collapse file tree 6 files changed +42
-24
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 2727
2828class 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 ;
Original file line number Diff line number Diff line change 77
88class 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 {
Original file line number Diff line number Diff line change 3131
3232class Api
3333{
34- const ENDPOINT = 'https://insight.symfony.com ' ;
34+ public const ENDPOINT = 'https://insight.symfony.com ' ;
3535
3636 private $ baseUrl ;
3737 private $ httpClient ;
Original file line number Diff line number Diff line change 1717
1818class 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>")
Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments