diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 65065ca..ebddaa6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,7 +10,7 @@ jobs: - uses: shivammathur/setup-php@v2 with: php-version: '7.2' - tools: php-cs-fixer:3.2.1 + tools: php-cs-fixer:3.4.0 coverage: none - name: php-cs-fixer run: php-cs-fixer fix --dry-run --diff diff --git a/Cli/Application.php b/Cli/Application.php index 089e2f4..ab6cdf0 100644 --- a/Cli/Application.php +++ b/Cli/Application.php @@ -27,8 +27,9 @@ class Application extends SymfonyApplication { - const APPLICATION_NAME = 'SymfonyInsight CLI'; - const APPLICATION_VERSION = '1.7.4'; + public const APPLICATION_NAME = 'SymfonyInsight CLI'; + + public const APPLICATION_VERSION = '1.7.4'; private $api; private $apiConfig; diff --git a/Cli/Descriptor/PmdDescriptor.php b/Cli/Descriptor/PmdDescriptor.php index 63e6d7f..0c961c2 100644 --- a/Cli/Descriptor/PmdDescriptor.php +++ b/Cli/Descriptor/PmdDescriptor.php @@ -7,11 +7,15 @@ class PmdDescriptor extends AbstractDescriptor { - const PHPMD_PRIORITY_HIGH = 1; - const PHPMD_PRIORITY_MEDIUM_HIGH = 2; - const PHPMD_PRIORITY_MEDIUM = 3; - const PHPMD_PRIORITY_MEDIUM_LOW = 4; - const PHPMD_PRIORITY_LOW = 5; + public const PHPMD_PRIORITY_HIGH = 1; + + public const PHPMD_PRIORITY_MEDIUM_HIGH = 2; + + public const PHPMD_PRIORITY_MEDIUM = 3; + + public const PHPMD_PRIORITY_MEDIUM_LOW = 4; + + public const PHPMD_PRIORITY_LOW = 5; protected function describeAnalysis(Analysis $analysis, array $options = []) { diff --git a/Sdk/Api.php b/Sdk/Api.php index 7b143b1..d8a5243 100644 --- a/Sdk/Api.php +++ b/Sdk/Api.php @@ -31,7 +31,7 @@ class Api { - const ENDPOINT = 'https://insight.symfony.com'; + public const ENDPOINT = 'https://insight.symfony.com'; private $baseUrl; private $httpClient; diff --git a/Sdk/Model/Analysis.php b/Sdk/Model/Analysis.php index ba4d756..4c0df61 100644 --- a/Sdk/Model/Analysis.php +++ b/Sdk/Model/Analysis.php @@ -17,11 +17,15 @@ class Analysis { - const STATUS_ORDERED = 'ordered'; - const STATUS_RUNNING = 'running'; - const STATUS_MEASURED = 'measured'; - const STATUS_ANALYZED = 'analyzed'; - const STATUS_FINISHED = 'finished'; + public const STATUS_ORDERED = 'ordered'; + + public const STATUS_RUNNING = 'running'; + + public const STATUS_MEASURED = 'measured'; + + public const STATUS_ANALYZED = 'analyzed'; + + public const STATUS_FINISHED = 'finished'; /** * @Type("array") diff --git a/Sdk/Model/Project.php b/Sdk/Model/Project.php index 5c2c72a..09b4638 100644 --- a/Sdk/Model/Project.php +++ b/Sdk/Model/Project.php @@ -21,16 +21,25 @@ class Project /** * @see https://github.com/sensiolabs/connect/blob/master/src/SensioLabs/Connect/Api/Entity/Project.php */ - const TYPE_PHP_WEBSITE = 0; - const TYPE_PHP_LIBRARY = 1; - const TYPE_SYMFONY2_BUNDLE = 2; - const TYPE_SYMFONY1_PLUGIN = 4; - const TYPE_OTHER = 6; - const TYPE_DRUPAL_MODULE = 7; - const TYPE_LARAVAL_WEB_PROJECT = 8; - const TYPE_SILEX_WEB_PROJECT = 9; - const TYPE_SYMFONY2_WEB_PROJECT = 10; - const TYPE_SYMFONY1_WEB_PROJECT = 11; + public const TYPE_PHP_WEBSITE = 0; + + public const TYPE_PHP_LIBRARY = 1; + + public const TYPE_SYMFONY2_BUNDLE = 2; + + public const TYPE_SYMFONY1_PLUGIN = 4; + + public const TYPE_OTHER = 6; + + public const TYPE_DRUPAL_MODULE = 7; + + public const TYPE_LARAVAL_WEB_PROJECT = 8; + + public const TYPE_SILEX_WEB_PROJECT = 9; + + public const TYPE_SYMFONY2_WEB_PROJECT = 10; + + public const TYPE_SYMFONY1_WEB_PROJECT = 11; /** * @Exclude()