diff --git a/.circleci/config.yml b/.circleci/config.yml index 6ed108ba..91b7fbaa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,8 +1,8 @@ version: 2.1 orbs: - codacy: codacy/base@12.0.0 - codacy_plugins_test: codacy/plugins-test@2.0.11 + codacy: codacy/base@13.1.0 + codacy_plugins_test: codacy/plugins-test@2.1.2 workflows: compile_test_deploy: diff --git a/.env b/.env deleted file mode 100644 index caf3356c..00000000 --- a/.env +++ /dev/null @@ -1,15 +0,0 @@ -# In all environments, the following files are loaded if they exist, -# the latter taking precedence over the former: -# -# * .env contains default values for the environment variables needed by the app -# * .env.local uncommitted file with local overrides -# * .env.$APP_ENV committed environment-specific defaults -# * .env.$APP_ENV.local uncommitted environment-specific overrides -# -# Real environment variables win over .env files. -# -# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. -# https://symfony.com/doc/current/configuration/secrets.html -# -# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). -# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration diff --git a/.gitignore b/.gitignore index b6a76b22..4007d776 100755 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,9 @@ composer.phar #Ignore vscode AI rules .github/instructions/codacy.instructions.md + +###> squizlabs/php_codesniffer ### +/.phpcs-cache +/phpcs.xml +/phpcs.xml.dist +###< squizlabs/php_codesniffer ### diff --git a/Dockerfile b/Dockerfile index 82205dc6..fe9624f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM sbtscala/scala-sbt:eclipse-temurin-jammy-11.0.22_7_1.9.9_2.13.13 as doc-generator +FROM sbtscala/scala-sbt:eclipse-temurin-alpine-25.0.3_9_1.12.13_3.8.4 AS doc-generator WORKDIR /app -RUN wget https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.4.3/phpDocumentor.phar && \ +RUN wget https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.10.0/phpDocumentor.phar && \ mv phpDocumentor.phar /usr/local/bin/phpdoc && \ chmod +x /usr/local/bin/phpdoc @@ -10,34 +10,42 @@ COPY build.sbt . COPY docs /docs COPY project project COPY doc-generator doc-generator +COPY composer.json /app/composer.json RUN sbt 'doc-generator/runMain codacy.codesniffer.docsgen.GeneratorMain' -FROM sbtscala/scala-sbt:graalvm-ce-22.3.3-b1-java17_1.9.9_3.4.0 AS builder +FROM sbtscala/scala-sbt:graalvm-ce-22.3.3-b1-java17_1.12.11_3.8.4 AS builder WORKDIR /app +ENV JAVA_HOME=/opt/graalvm-ce-java17-22.3.3 + +RUN gu install native-image +ENV NATIVE_IMAGE_INSTALLED=true + COPY build.sbt . COPY project project COPY src src -RUN --mount=type=cache,target=/root/.cache/coursier \ +RUN --mount=type=cache,target=/root/.cache/coursier,id=coursier-v2 \ + --mount=type=cache,target=/root/.sbt \ + --mount=type=cache,target=/root/.ivy2/cache \ sbt nativeImage -FROM php:8.2-alpine +FROM php:8.5-alpine WORKDIR /app # Set environment variables -ENV COMPOSER_HOME /app/.composer -ENV COMPOSER_ALLOW_SUPERUSER 1 -ENV PATH ${COMPOSER_HOME}/vendor/bin:${PATH} +ENV COMPOSER_HOME=/app/.composer +ENV COMPOSER_ALLOW_SUPERUSER=1 +ENV PATH=${COMPOSER_HOME}/vendor/bin:${PATH} # Install necessary packages -RUN apk --no-cache add php82 +RUN apk --no-cache add php85 # Configure PHP settings -RUN sed 's/.*short_open_tag.*=.*/short_open_tag=On/' /etc/php82/php.ini -i +RUN sed 's/.*short_open_tag.*=.*/short_open_tag=On/' /etc/php85/php.ini -i # Install Composer and packages RUN curl -sS https://getcomposer.org/installer | php diff --git a/build.sbt b/build.sbt index f79bbb7f..b0092fb1 100755 --- a/build.sbt +++ b/build.sbt @@ -2,10 +2,10 @@ ThisBuild / scalaVersion := "2.13.14" lazy val `doc-generator` = project .settings( - libraryDependencies ++= Seq("org.scala-lang.modules" %% "scala-xml" % "2.2.0", - "org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4", - "com.codacy" %% "codacy-engine-scala-seed" % "6.1.2", - "com.lihaoyi" %% "ujson" % "3.1.2", + libraryDependencies ++= Seq("org.scala-lang.modules" %% "scala-xml" % "2.4.0", + "org.scala-lang.modules" %% "scala-parallel-collections" % "1.2.0", + "com.codacy" %% "codacy-engine-scala-seed" % "6.1.4", + "com.lihaoyi" %% "ujson" % "4.4.3", "com.github.pathikrit" %% "better-files" % "3.9.2" ) ) @@ -13,16 +13,18 @@ lazy val `doc-generator` = project lazy val root = project .in(file(".")) .settings(name := "codacy-codesniffer", - libraryDependencies ++= Seq("org.scala-lang.modules" %% "scala-xml" % "2.2.0", - "com.codacy" %% "codacy-engine-scala-seed" % "6.1.2" + libraryDependencies ++= Seq("org.scala-lang.modules" %% "scala-xml" % "2.4.0", + "com.codacy" %% "codacy-engine-scala-seed" % "6.1.4" ), mainClass in Compile := Some("codacy.Engine"), nativeImageOptions ++= List("-O1", "-H:+ReportExceptionStackTraces", "--no-fallback", "--no-server", - "--static" + "--static", + "-J-Xmx8G", + "-J-XX:ActiveProcessorCount=8" ) ) .enablePlugins(NativeImagePlugin) - .enablePlugins(JavaAppPackaging) + .enablePlugins(JavaAppPackaging) \ No newline at end of file diff --git a/composer.json b/composer.json index 92bc0110..453a6277 100644 --- a/composer.json +++ b/composer.json @@ -1,48 +1,26 @@ { "require": { - "automattic/vipwpcs": "^3.0.0", - "cakephp/cakephp-codesniffer": "^5.1", - "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", - "doctrine/coding-standard": "^12.0.0", - "drupal/coder": "^8.3.24", - "escapestudios/symfony2-coding-standard": "^3.13.0", - "magento/magento-coding-standard": "32.0", - "magento/marketplace-eqp": "^4.0.0", - "pheromone/phpcs-security-audit": "^2.0.1", - "phpcompatibility/php-compatibility": "9.3.5", - "phpcompatibility/phpcompatibility-paragonie": "^1.3.3", - "phpcompatibility/phpcompatibility-wp": "^2.1.5", - "phpstan/phpdoc-parser": "^1.28.0", - "slevomat/coding-standard": "^8.15.0", - "squizlabs/php_codesniffer": "3.10.1", - "symfony/flex": "^2.4.5", - "vaimo/phpcs-rulesets": "dev-codacy", - "wp-coding-standards/wpcs": "^3.1.0", - "vaimo/uk-phpcs-standards": "dev-master" + + + "cakephp/cakephp-codesniffer": "5.3.0", + "drupal/coder": "9.0.1", + "escapestudios/symfony2-coding-standard": "3.18.0", + "slevomat/coding-standard": "8.30.1", + "phpcompatibility/php-compatibility": "10.0.0-alpha2", + + "squizlabs/php_codesniffer": "4.0.1", + + "symfony/flex": "2.11.0", + "dealerdirect/phpcodesniffer-composer-installer": "1.2.1", + "doctrine/coding-standard": "14.0.0", + "phpcompatibility/phpcompatibility-paragonie": "2.0.0-alpha2", + "phpcompatibility/phpcompatibility-wp": "3.0.0-alpha2", + "phpstan/phpdoc-parser": "2.3.2" }, - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/magento/marketplace-eqp.git" - }, - { - "type": "vcs", - "url": "https://bitbucket.org/vaimo/phpcs-rulesets.git" - }, - { - "type": "vcs", - "url": "https://bitbucket.org/vaimo/uk-phpcs-standards.git" - } - ], "config": { "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true, "symfony/flex": true, - "phpdocumentor/unified-asset-installer": true + "dealerdirect/phpcodesniffer-composer-installer": true } - }, - "require-dev": { - "phpunit/phpunit": "^11.1", - "phpcompatibility/php-compatibility": "*" } } diff --git a/composer.lock b/composer.lock index 353ab98a..cdb31435 100644 --- a/composer.lock +++ b/composer.lock @@ -4,84 +4,31 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c432a6a428685b7dfceff4dd6fe09da7", + "content-hash": "acc1cf78b28bf65ca4979213d03366de", "packages": [ - { - "name": "automattic/vipwpcs", - "version": "3.0.1", - "source": { - "type": "git", - "url": "https://github.com/Automattic/VIP-Coding-Standards.git", - "reference": "2b1d206d81b74ed999023cffd924f862ff2753c8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Automattic/VIP-Coding-Standards/zipball/2b1d206d81b74ed999023cffd924f862ff2753c8", - "reference": "2b1d206d81b74ed999023cffd924f862ff2753c8", - "shasum": "" - }, - "require": { - "php": ">=5.4", - "phpcsstandards/phpcsextra": "^1.2.1", - "phpcsstandards/phpcsutils": "^1.0.11", - "sirbrillig/phpcs-variable-analysis": "^2.11.18", - "squizlabs/php_codesniffer": "^3.9.2", - "wp-coding-standards/wpcs": "^3.1.0" - }, - "require-dev": { - "php-parallel-lint/php-console-highlighter": "^1.0.0", - "php-parallel-lint/php-parallel-lint": "^1.3.2", - "phpcompatibility/php-compatibility": "^9", - "phpcsstandards/phpcsdevtools": "^1.0", - "phpunit/phpunit": "^4 || ^5 || ^6 || ^7 || ^8 || ^9" - }, - "type": "phpcodesniffer-standard", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Contributors", - "homepage": "https://github.com/Automattic/VIP-Coding-Standards/graphs/contributors" - } - ], - "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions", - "keywords": [ - "phpcs", - "standards", - "static analysis", - "wordpress" - ], - "support": { - "issues": "https://github.com/Automattic/VIP-Coding-Standards/issues", - "source": "https://github.com/Automattic/VIP-Coding-Standards", - "wiki": "https://github.com/Automattic/VIP-Coding-Standards/wiki" - }, - "time": "2024-05-10T20:31:09+00:00" - }, { "name": "cakephp/cakephp-codesniffer", - "version": "5.1.1", + "version": "5.3.0", "source": { "type": "git", "url": "https://github.com/cakephp/cakephp-codesniffer.git", - "reference": "3227936e698774025a16fb808c28f92688672306" + "reference": "8c9481165b0f2819ac58894c9a7e5599a55ad678" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cakephp/cakephp-codesniffer/zipball/3227936e698774025a16fb808c28f92688672306", - "reference": "3227936e698774025a16fb808c28f92688672306", + "url": "https://api.github.com/repos/cakephp/cakephp-codesniffer/zipball/8c9481165b0f2819ac58894c9a7e5599a55ad678", + "reference": "8c9481165b0f2819ac58894c9a7e5599a55ad678", "shasum": "" }, "require": { - "php": ">=8.1.0", - "phpstan/phpdoc-parser": "^1.4.5", - "slevomat/coding-standard": "^8.4", - "squizlabs/php_codesniffer": "^3.7.1" + "dealerdirect/phpcodesniffer-composer-installer": "^1.1.2", + "php": ">=8.1", + "phpstan/phpdoc-parser": "^2.1", + "slevomat/coding-standard": "^8.23", + "squizlabs/php_codesniffer": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^7.1" + "phpunit/phpunit": "^10.5.32 || ^11.3.3" }, "type": "phpcodesniffer-standard", "autoload": { @@ -111,33 +58,33 @@ "issues": "https://github.com/cakephp/cakephp-codesniffer/issues", "source": "https://github.com/cakephp/cakephp-codesniffer" }, - "time": "2023-04-09T13:00:25+00:00" + "time": "2025-09-19T15:47:28+00:00" }, { "name": "dealerdirect/phpcodesniffer-composer-installer", - "version": "v1.0.0", + "version": "v1.2.1", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/composer-installer.git", - "reference": "4be43904336affa5c2f70744a348312336afd0da" + "reference": "963f0c67bffde0eac41b56be71ac0e8ba132f0bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da", - "reference": "4be43904336affa5c2f70744a348312336afd0da", + "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/963f0c67bffde0eac41b56be71ac0e8ba132f0bd", + "reference": "963f0c67bffde0eac41b56be71ac0e8ba132f0bd", "shasum": "" }, "require": { - "composer-plugin-api": "^1.0 || ^2.0", + "composer-plugin-api": "^2.2", "php": ">=5.4", - "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" + "squizlabs/php_codesniffer": "^3.1.0 || ^4.0" }, "require-dev": { - "composer/composer": "*", + "composer/composer": "^2.2", "ext-json": "*", "ext-zip": "*", - "php-parallel-lint/php-parallel-lint": "^1.3.1", - "phpcompatibility/php-compatibility": "^9.0", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpcompatibility/php-compatibility": "^9.0 || ^10.0.0@dev", "yoast/phpunit-polyfills": "^1.0" }, "type": "composer-plugin", @@ -156,9 +103,9 @@ "authors": [ { "name": "Franck Nijhof", - "email": "franck.nijhof@dealerdirect.com", - "homepage": "http://www.frenck.nl", - "role": "Developer / IT Manager" + "email": "opensource@frenck.dev", + "homepage": "https://frenck.dev", + "role": "Open source developer" }, { "name": "Contributors", @@ -166,7 +113,6 @@ } ], "description": "PHP_CodeSniffer Standards Composer Installer Plugin", - "homepage": "http://www.dealerdirect.com", "keywords": [ "PHPCodeSniffer", "PHP_CodeSniffer", @@ -187,29 +133,48 @@ ], "support": { "issues": "https://github.com/PHPCSStandards/composer-installer/issues", + "security": "https://github.com/PHPCSStandards/composer-installer/security/policy", "source": "https://github.com/PHPCSStandards/composer-installer" }, - "time": "2023-01-05T11:28:13+00:00" + "funding": [ + { + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + }, + { + "url": "https://thanks.dev/u/gh/phpcsstandards", + "type": "thanks_dev" + } + ], + "time": "2026-05-06T08:26:05+00:00" }, { "name": "doctrine/coding-standard", - "version": "12.0.0", + "version": "14.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/coding-standard.git", - "reference": "1b2b7dc58c68833af481fb9325c25abd40681c79" + "reference": "897a7dc209e49ee6cf04e689c41112df17967130" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/coding-standard/zipball/1b2b7dc58c68833af481fb9325c25abd40681c79", - "reference": "1b2b7dc58c68833af481fb9325c25abd40681c79", + "url": "https://api.github.com/repos/doctrine/coding-standard/zipball/897a7dc209e49ee6cf04e689c41112df17967130", + "reference": "897a7dc209e49ee6cf04e689c41112df17967130", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0.0", - "php": "^7.2 || ^8.0", - "slevomat/coding-standard": "^8.11", - "squizlabs/php_codesniffer": "^3.7" + "php": "^7.4 || ^8.0", + "slevomat/coding-standard": "^8.23", + "squizlabs/php_codesniffer": "^4" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -243,36 +208,36 @@ ], "support": { "issues": "https://github.com/doctrine/coding-standard/issues", - "source": "https://github.com/doctrine/coding-standard/tree/12.0.0" + "source": "https://github.com/doctrine/coding-standard/tree/14.0.0" }, - "time": "2023-04-24T17:43:28+00:00" + "time": "2025-09-21T18:21:47+00:00" }, { "name": "drupal/coder", - "version": "8.3.24", + "version": "9.0.1", "source": { "type": "git", "url": "https://github.com/pfrenssen/coder.git", - "reference": "1a59890f972db5da091354f0191dec1037f7c582" + "reference": "e22c25834e25178fb4c4bd45ac42fb27acd3d8e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pfrenssen/coder/zipball/1a59890f972db5da091354f0191dec1037f7c582", - "reference": "1a59890f972db5da091354f0191dec1037f7c582", + "url": "https://api.github.com/repos/pfrenssen/coder/zipball/e22c25834e25178fb4c4bd45ac42fb27acd3d8e3", + "reference": "e22c25834e25178fb4c4bd45ac42fb27acd3d8e3", "shasum": "" }, "require": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1 || ^1.0.0", + "dealerdirect/phpcodesniffer-composer-installer": "^1.2", "ext-mbstring": "*", - "php": ">=7.2", - "sirbrillig/phpcs-variable-analysis": "^2.11.7", - "slevomat/coding-standard": "^8.11", - "squizlabs/php_codesniffer": "^3.9.1", + "php": ">=7.4", + "sirbrillig/phpcs-variable-analysis": "^2.13", + "slevomat/coding-standard": "^8.25.1", + "squizlabs/php_codesniffer": "^4.0.1", "symfony/yaml": ">=3.4.0" }, "require-dev": { "phpstan/phpstan": "^1.7.12", - "phpunit/phpunit": "^8.0" + "phpunit/phpunit": "^9.0" }, "type": "phpcodesniffer-standard", "autoload": { @@ -296,30 +261,30 @@ "issues": "https://www.drupal.org/project/issues/coder", "source": "https://www.drupal.org/project/coder" }, - "time": "2024-04-21T06:13:24+00:00" + "time": "2026-06-21T08:51:40+00:00" }, { "name": "escapestudios/symfony2-coding-standard", - "version": "3.13.0", + "version": "3.18.0", "source": { "type": "git", "url": "https://github.com/djoos/Symfony-coding-standard.git", - "reference": "46d5387bc9e2fca44d46642550ffbaea22ebaf86" + "reference": "c18f77aacaa77b0c7087b8a725dbf1ca5e9b0561" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/djoos/Symfony-coding-standard/zipball/46d5387bc9e2fca44d46642550ffbaea22ebaf86", - "reference": "46d5387bc9e2fca44d46642550ffbaea22ebaf86", + "url": "https://api.github.com/repos/djoos/Symfony-coding-standard/zipball/c18f77aacaa77b0c7087b8a725dbf1ca5e9b0561", + "reference": "c18f77aacaa77b0c7087b8a725dbf1ca5e9b0561", "shasum": "" }, "require": { - "squizlabs/php_codesniffer": "^3.3.1" + "squizlabs/php_codesniffer": "^4.0.0" }, "conflict": { - "squizlabs/php_codesniffer": "<3 || >=4" + "squizlabs/php_codesniffer": "<4 || >=5" }, "require-dev": { - "phpunit/phpunit": "^5.0 || ^6.0 || ^7.0" + "phpunit/phpunit": "^8.0 || ^9.3.4 || ^10.5.32 || ^11.3.3" }, "type": "phpcodesniffer-standard", "extra": { @@ -354,175 +319,45 @@ "issues": "https://github.com/djoos/Symfony-coding-standard/issues", "source": "https://github.com/djoos/Symfony-coding-standard" }, - "time": "2022-09-08T09:37:16+00:00" - }, - { - "name": "magento/magento-coding-standard", - "version": "32", - "source": { - "type": "git", - "url": "https://github.com/magento/magento-coding-standard.git", - "reference": "db2e2e7fa4274a17600129fceec6a06fc2d8357c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/magento/magento-coding-standard/zipball/db2e2e7fa4274a17600129fceec6a06fc2d8357c", - "reference": "db2e2e7fa4274a17600129fceec6a06fc2d8357c", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-simplexml": "*", - "php": "~8.1.0 || ~8.2.0", - "phpcompatibility/php-compatibility": "^9.3", - "phpcsstandards/phpcsutils": "^1.0.5", - "rector/rector": "0.17.12", - "squizlabs/php_codesniffer": "^3.6.1", - "symfony/polyfill": "^1.16", - "webonyx/graphql-php": "^15.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.5.10", - "yoast/phpunit-polyfills": "^1.0" - }, - "type": "phpcodesniffer-standard", - "autoload": { - "psr-4": { - "Magento2\\": "Magento2/", - "Magento2Framework\\": "Magento2Framework/" - }, - "classmap": [ - "PHP_CodeSniffer/Tokenizers/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "OSL-3.0", - "AFL-3.0" - ], - "description": "A set of Magento specific PHP CodeSniffer rules.", - "support": { - "issues": "https://github.com/magento/magento-coding-standard/issues", - "source": "https://github.com/magento/magento-coding-standard/tree/v32" - }, - "time": "2023-09-06T16:13:50+00:00" - }, - { - "name": "magento/marketplace-eqp", - "version": "4.0.0", - "source": { - "type": "git", - "url": "https://github.com/magento/marketplace-eqp.git", - "reference": "c05115d194d598d7f87d0ece07aa8eea4f0a6682" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/magento/marketplace-eqp/zipball/c05115d194d598d7f87d0ece07aa8eea4f0a6682", - "reference": "c05115d194d598d7f87d0ece07aa8eea4f0a6682", - "shasum": "" - }, - "require": { - "php": ">=5.5.0", - "squizlabs/php_codesniffer": "3.*" - }, - "require-dev": { - "phpunit/phpunit": "4.1.0" - }, - "type": "phpcodesniffer-standard", - "autoload": { - "psr-4": { - "MEQP\\": "MEQP/", - "MEQP1\\": "MEQP1/" - } - }, - "scripts": { - "post-install-cmd": [ - "\"vendor/bin/phpcs\" --config-set installed_paths ../../.." - ], - "post-update-cmd": [ - "\"vendor/bin/phpcs\" --config-set installed_paths ../../.." - ] - }, - "license": [ - "MIT" - ], - "description": "A set of PHP_CodeSniffer rules and sniffs.", - "support": { - "source": "https://github.com/magento/marketplace-eqp/tree/4.0.0", - "issues": "https://github.com/magento/marketplace-eqp/issues" - }, - "time": "2019-06-25T20:32:18+00:00" - }, - { - "name": "pheromone/phpcs-security-audit", - "version": "2.0.1", - "source": { - "type": "git", - "url": "https://github.com/FloeDesignTechnologies/phpcs-security-audit.git", - "reference": "68a6c53a57156a5efb2073b1eb3f2d79a46c9dc2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/FloeDesignTechnologies/phpcs-security-audit/zipball/68a6c53a57156a5efb2073b1eb3f2d79a46c9dc2", - "reference": "68a6c53a57156a5efb2073b1eb3f2d79a46c9dc2", - "shasum": "" - }, - "require": { - "php": ">=5.4", - "squizlabs/php_codesniffer": ">3.0" - }, - "type": "phpcodesniffer-standard", - "autoload": { - "psr-4": { - "PHPCS_SecurityAudit\\": "Security/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "GPL-3.0-or-later" - ], - "authors": [ - { - "name": "Jonathan Marcil", - "homepage": "https://twitter.com/jonathanmarcil" - } - ], - "description": "phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code", - "support": { - "issues": "https://github.com/FloeDesignTechnologies/phpcs-security-audit/issues", - "source": "https://github.com/FloeDesignTechnologies/phpcs-security-audit/tree/master" - }, - "time": "2019-08-05T19:34:55+00:00" + "time": "2025-12-17T15:53:30+00:00" }, { "name": "phpcompatibility/php-compatibility", - "version": "9.3.5", + "version": "10.0.0-alpha2", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", - "reference": "9fb324479acf6f39452e0655d2429cc0d3914243" + "reference": "e0f0e5a3dc819a4a0f8d679a0f2453d941976e18" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243", - "reference": "9fb324479acf6f39452e0655d2429cc0d3914243", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/e0f0e5a3dc819a4a0f8d679a0f2453d941976e18", + "reference": "e0f0e5a3dc819a4a0f8d679a0f2453d941976e18", "shasum": "" }, "require": { - "php": ">=5.3", - "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" + "php": ">=5.4", + "phpcsstandards/phpcsutils": "^1.1.2", + "squizlabs/php_codesniffer": "^3.13.3 || ^4.0" }, - "conflict": { - "squizlabs/php_codesniffer": "2.6.2" + "replace": { + "wimg/php-compatibility": "*" }, "require-dev": { - "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" - }, - "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", - "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpcsstandards/phpcsdevcs": "^1.2.0", + "phpcsstandards/phpcsdevtools": "^1.2.3", + "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4 || ^10.5.32 || ^11.3.3", + "yoast/phpunit-polyfills": "^1.1.5 || ^2.0.5 || ^3.1.0" }, "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev", + "dev-develop": "10.x-dev" + } + }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-3.0-or-later" @@ -544,44 +379,59 @@ } ], "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", - "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", + "homepage": "https://techblog.wimgodden.be/tag/codesniffer/", "keywords": [ "compatibility", "phpcs", - "standards" + "standards", + "static analysis" ], "support": { "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues", + "security": "https://github.com/PHPCompatibility/PHPCompatibility/security/policy", "source": "https://github.com/PHPCompatibility/PHPCompatibility" }, - "time": "2019-12-27T09:44:58+00:00" + "funding": [ + { + "url": "https://github.com/PHPCompatibility", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + }, + { + "url": "https://thanks.dev/u/gh/phpcompatibility", + "type": "thanks_dev" + } + ], + "time": "2025-11-28T11:36:33+00:00" }, { "name": "phpcompatibility/phpcompatibility-paragonie", - "version": "1.3.3", + "version": "2.0.0-alpha2", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", - "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac" + "reference": "7a979711c87d8202b52f56c56bd719d09d8ed7f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/293975b465e0e709b571cbf0c957c6c0a7b9a2ac", - "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/7a979711c87d8202b52f56c56bd719d09d8ed7f5", + "reference": "7a979711c87d8202b52f56c56bd719d09d8ed7f5", "shasum": "" }, "require": { - "phpcompatibility/php-compatibility": "^9.0" + "phpcompatibility/php-compatibility": "^10.0@dev" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^1.0", "paragonie/random_compat": "dev-master", "paragonie/sodium_compat": "dev-master" }, - "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", - "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." - }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", "license": [ @@ -624,34 +474,31 @@ { "url": "https://opencollective.com/php_codesniffer", "type": "open_collective" + }, + { + "url": "https://thanks.dev/u/gh/phpcompatibility", + "type": "thanks_dev" } ], - "time": "2024-04-24T21:30:46+00:00" + "time": "2025-11-29T13:09:49+00:00" }, { "name": "phpcompatibility/phpcompatibility-wp", - "version": "2.1.5", + "version": "3.0.0-alpha2", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", - "reference": "01c1ff2704a58e46f0cb1ca9d06aee07b3589082" + "reference": "bd53f24e7528422ac51d64dc8d53e8d4c4a877b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/01c1ff2704a58e46f0cb1ca9d06aee07b3589082", - "reference": "01c1ff2704a58e46f0cb1ca9d06aee07b3589082", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/bd53f24e7528422ac51d64dc8d53e8d4c4a877b3", + "reference": "bd53f24e7528422ac51d64dc8d53e8d4c4a877b3", "shasum": "" }, "require": { - "phpcompatibility/php-compatibility": "^9.0", - "phpcompatibility/phpcompatibility-paragonie": "^1.0" - }, - "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^1.0" - }, - "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", - "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + "phpcompatibility/php-compatibility": "^10.0@dev", + "phpcompatibility/phpcompatibility-paragonie": "^2.0@dev" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -694,113 +541,39 @@ { "url": "https://opencollective.com/php_codesniffer", "type": "open_collective" - } - ], - "time": "2024-04-24T21:37:59+00:00" - }, - { - "name": "phpcsstandards/phpcsextra", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/PHPCSStandards/PHPCSExtra.git", - "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/11d387c6642b6e4acaf0bd9bf5203b8cca1ec489", - "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489", - "shasum": "" - }, - "require": { - "php": ">=5.4", - "phpcsstandards/phpcsutils": "^1.0.9", - "squizlabs/php_codesniffer": "^3.8.0" - }, - "require-dev": { - "php-parallel-lint/php-console-highlighter": "^1.0", - "php-parallel-lint/php-parallel-lint": "^1.3.2", - "phpcsstandards/phpcsdevcs": "^1.1.6", - "phpcsstandards/phpcsdevtools": "^1.2.1", - "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" - }, - "type": "phpcodesniffer-standard", - "extra": { - "branch-alias": { - "dev-stable": "1.x-dev", - "dev-develop": "1.x-dev" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "LGPL-3.0-or-later" - ], - "authors": [ - { - "name": "Juliette Reinders Folmer", - "homepage": "https://github.com/jrfnl", - "role": "lead" - }, - { - "name": "Contributors", - "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors" - } - ], - "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.", - "keywords": [ - "PHP_CodeSniffer", - "phpcbf", - "phpcodesniffer-standard", - "phpcs", - "standards", - "static analysis" - ], - "support": { - "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues", - "security": "https://github.com/PHPCSStandards/PHPCSExtra/security/policy", - "source": "https://github.com/PHPCSStandards/PHPCSExtra" - }, - "funding": [ - { - "url": "https://github.com/PHPCSStandards", - "type": "github" - }, - { - "url": "https://github.com/jrfnl", - "type": "github" }, { - "url": "https://opencollective.com/php_codesniffer", - "type": "open_collective" + "url": "https://thanks.dev/u/gh/phpcompatibility", + "type": "thanks_dev" } ], - "time": "2023-12-08T16:49:07+00:00" + "time": "2025-12-16T13:35:20+00:00" }, { "name": "phpcsstandards/phpcsutils", - "version": "1.0.12", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHPCSUtils.git", - "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c" + "reference": "c216317e96c8b3f5932808f9b0f1f7a14e3bbf55" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/87b233b00daf83fb70f40c9a28692be017ea7c6c", - "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/c216317e96c8b3f5932808f9b0f1f7a14e3bbf55", + "reference": "c216317e96c8b3f5932808f9b0f1f7a14e3bbf55", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0", "php": ">=5.4", - "squizlabs/php_codesniffer": "^3.10.0 || 4.0.x-dev@dev" + "squizlabs/php_codesniffer": "^3.13.5 || ^4.0.1" }, "require-dev": { "ext-filter": "*", "php-parallel-lint/php-console-highlighter": "^1.0", - "php-parallel-lint/php-parallel-lint": "^1.3.2", - "phpcsstandards/phpcsdevcs": "^1.1.6", - "yoast/phpunit-polyfills": "^1.1.0 || ^2.0.0" + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpcsstandards/phpcsdevcs": "^1.2.0", + "yoast/phpunit-polyfills": "^1.1.0 || ^2.0.0 || ^3.0.0" }, "type": "phpcodesniffer-standard", "extra": { @@ -837,6 +610,7 @@ "phpcodesniffer-standard", "phpcs", "phpcs3", + "phpcs4", "standards", "static analysis", "tokens", @@ -860,36 +634,40 @@ { "url": "https://opencollective.com/php_codesniffer", "type": "open_collective" + }, + { + "url": "https://thanks.dev/u/gh/phpcsstandards", + "type": "thanks_dev" } ], - "time": "2024-05-20T13:34:27+00:00" + "time": "2025-12-08T14:27:58+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "1.28.0", + "version": "2.3.2", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb" + "reference": "a004701b11273a26cd7955a61d67a7f1e525a45a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb", - "reference": "cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/a004701b11273a26cd7955a61d67a7f1e525a45a", + "reference": "a004701b11273a26cd7955a61d67a7f1e525a45a", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "doctrine/annotations": "^2.0", - "nikic/php-parser": "^4.15", + "nikic/php-parser": "^5.3.0", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^1.5", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", "symfony/process": "^5.2" }, "type": "library", @@ -907,164 +685,48 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.28.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.3.2" }, - "time": "2024-04-03T18:51:33+00:00" + "time": "2026-01-25T14:56:51+00:00" }, { - "name": "phpstan/phpstan", - "version": "1.11.7", + "name": "sirbrillig/phpcs-variable-analysis", + "version": "v2.13.0", "source": { "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "52d2bbfdcae7f895915629e4694e9497d0f8e28d" + "url": "https://github.com/sirbrillig/phpcs-variable-analysis.git", + "reference": "a15e970b8a0bf64cfa5e86d941f5e6b08855f369" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/52d2bbfdcae7f895915629e4694e9497d0f8e28d", - "reference": "52d2bbfdcae7f895915629e4694e9497d0f8e28d", + "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/a15e970b8a0bf64cfa5e86d941f5e6b08855f369", + "reference": "a15e970b8a0bf64cfa5e86d941f5e6b08855f369", "shasum": "" }, "require": { - "php": "^7.2|^8.0" + "php": ">=5.4.0", + "squizlabs/php_codesniffer": "^3.5.7 || ^4.0.0" }, - "conflict": { - "phpstan/phpstan-shim": "*" + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0", + "phpstan/phpstan": "^1.7 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0 || ^10.5.32 || ^11.3.3", + "vimeo/psalm": "^0.2 || ^0.3 || ^1.1 || ^4.24 || ^5.0 || ^6.0 || ^7.0" }, - "bin": [ - "phpstan", - "phpstan.phar" - ], - "type": "library", + "type": "phpcodesniffer-standard", "autoload": { - "files": [ - "bootstrap.php" - ] + "psr-4": { + "VariableAnalysis\\": "VariableAnalysis/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" - ], - "description": "PHPStan - PHP Static Analysis Tool", - "keywords": [ - "dev", - "static analysis" + "BSD-2-Clause" ], - "support": { - "docs": "https://phpstan.org/user-guide/getting-started", - "forum": "https://github.com/phpstan/phpstan/discussions", - "issues": "https://github.com/phpstan/phpstan/issues", - "security": "https://github.com/phpstan/phpstan/security/policy", - "source": "https://github.com/phpstan/phpstan-src" - }, - "funding": [ + "authors": [ { - "url": "https://github.com/ondrejmirtes", - "type": "github" - }, - { - "url": "https://github.com/phpstan", - "type": "github" - } - ], - "time": "2024-07-06T11:17:41+00:00" - }, - { - "name": "rector/rector", - "version": "0.17.12", - "source": { - "type": "git", - "url": "https://github.com/rectorphp/rector.git", - "reference": "af3a14a8a9fffa3100b730571c356f6c658d5e09" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/af3a14a8a9fffa3100b730571c356f6c658d5e09", - "reference": "af3a14a8a9fffa3100b730571c356f6c658d5e09", - "shasum": "" - }, - "require": { - "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.10.26" - }, - "conflict": { - "rector/rector-doctrine": "*", - "rector/rector-downgrade-php": "*", - "rector/rector-phpunit": "*", - "rector/rector-symfony": "*" - }, - "bin": [ - "bin/rector" - ], - "type": "library", - "autoload": { - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Instant Upgrade and Automated Refactoring of any PHP code", - "keywords": [ - "automation", - "dev", - "migration", - "refactoring" - ], - "support": { - "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/0.17.12" - }, - "funding": [ - { - "url": "https://github.com/tomasvotruba", - "type": "github" - } - ], - "time": "2023-08-10T15:22:02+00:00" - }, - { - "name": "sirbrillig/phpcs-variable-analysis", - "version": "v2.11.19", - "source": { - "type": "git", - "url": "https://github.com/sirbrillig/phpcs-variable-analysis.git", - "reference": "bc8d7e30e2005bce5c59018b7cdb08e9fb45c0d1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/bc8d7e30e2005bce5c59018b7cdb08e9fb45c0d1", - "reference": "bc8d7e30e2005bce5c59018b7cdb08e9fb45c0d1", - "shasum": "" - }, - "require": { - "php": ">=5.4.0", - "squizlabs/php_codesniffer": "^3.5.6" - }, - "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0", - "phpcsstandards/phpcsdevcs": "^1.1", - "phpstan/phpstan": "^1.7", - "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0", - "sirbrillig/phpcs-import-detection": "^1.1", - "vimeo/psalm": "^0.2 || ^0.3 || ^1.1 || ^4.24 || ^5.0@beta" - }, - "type": "phpcodesniffer-standard", - "autoload": { - "psr-4": { - "VariableAnalysis\\": "VariableAnalysis/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-2-Clause" - ], - "authors": [ - { - "name": "Sam Graham", - "email": "php-codesniffer-variableanalysis@illusori.co.uk" + "name": "Sam Graham", + "email": "php-codesniffer-variableanalysis@illusori.co.uk" }, { "name": "Payton Swick", @@ -1081,36 +743,36 @@ "source": "https://github.com/sirbrillig/phpcs-variable-analysis", "wiki": "https://github.com/sirbrillig/phpcs-variable-analysis/wiki" }, - "time": "2024-06-26T20:08:34+00:00" + "time": "2025-09-30T22:22:48+00:00" }, { "name": "slevomat/coding-standard", - "version": "8.15.0", + "version": "8.30.1", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "7d1d957421618a3803b593ec31ace470177d7817" + "reference": "70a3b2150600122f87c59cae1c1b5902ba73798b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/7d1d957421618a3803b593ec31ace470177d7817", - "reference": "7d1d957421618a3803b593ec31ace470177d7817", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/70a3b2150600122f87c59cae1c1b5902ba73798b", + "reference": "70a3b2150600122f87c59cae1c1b5902ba73798b", "shasum": "" }, "require": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0", - "php": "^7.2 || ^8.0", - "phpstan/phpdoc-parser": "^1.23.1", - "squizlabs/php_codesniffer": "^3.9.0" + "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.2.1", + "php": "^7.4 || ^8.0", + "phpstan/phpdoc-parser": "^2.3.2", + "squizlabs/php_codesniffer": "^4.0.1" }, "require-dev": { - "phing/phing": "2.17.4", - "php-parallel-lint/php-parallel-lint": "1.3.2", - "phpstan/phpstan": "1.10.60", - "phpstan/phpstan-deprecation-rules": "1.1.4", - "phpstan/phpstan-phpunit": "1.3.16", - "phpstan/phpstan-strict-rules": "1.5.2", - "phpunit/phpunit": "8.5.21|9.6.8|10.5.11" + "phing/phing": "3.0.1|3.1.2", + "php-parallel-lint/php-parallel-lint": "1.4.0", + "phpstan/phpstan": "2.2.2", + "phpstan/phpstan-deprecation-rules": "2.0.4", + "phpstan/phpstan-phpunit": "2.0.16", + "phpstan/phpstan-strict-rules": "2.0.11", + "phpunit/phpunit": "9.6.34|10.5.63|11.4.4|11.5.55|12.5.30" }, "type": "phpcodesniffer-standard", "extra": { @@ -1134,7 +796,7 @@ ], "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/8.15.0" + "source": "https://github.com/slevomat/coding-standard/tree/8.30.1" }, "funding": [ { @@ -1146,41 +808,36 @@ "type": "tidelift" } ], - "time": "2024-03-09T15:20:58+00:00" + "time": "2026-06-27T11:26:35+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.1", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877" + "reference": "0525c73950de35ded110cffafb9892946d7771b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/8f90f7a53ce271935282967f53d0894f8f1ff877", - "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0525c73950de35ded110cffafb9892946d7771b5", + "reference": "0525c73950de35ded110cffafb9892946d7771b5", "shasum": "" }, "require": { "ext-simplexml": "*", "ext-tokenizer": "*", "ext-xmlwriter": "*", - "php": ">=5.4.0" + "php": ">=7.2.0" }, "require-dev": { - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" + "phpunit/phpunit": "^8.4.0 || ^9.3.4 || ^10.5.32 || 11.3.3 - 11.5.28 || ^11.5.31" }, "bin": [ "bin/phpcbf", "bin/phpcs" ], "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.x-dev" - } - }, "notification-url": "https://packagist.org/downloads/", "license": [ "BSD-3-Clause" @@ -1199,7 +856,7 @@ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors" } ], - "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "description": "PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.", "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer", "keywords": [ "phpcs", @@ -1224,34 +881,42 @@ { "url": "https://opencollective.com/php_codesniffer", "type": "open_collective" + }, + { + "url": "https://thanks.dev/u/gh/phpcsstandards", + "type": "thanks_dev" } ], - "time": "2024-05-22T21:24:41+00:00" + "time": "2025-11-10T16:43:36+00:00" }, { "name": "symfony/flex", - "version": "v2.4.5", + "version": "v2.11.0", "source": { "type": "git", "url": "https://github.com/symfony/flex.git", - "reference": "b0a405f40614c9f584b489d54f91091817b0e26e" + "reference": "4a6d98eea3ebc7f68d82810cb682eedca2649e99" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/flex/zipball/b0a405f40614c9f584b489d54f91091817b0e26e", - "reference": "b0a405f40614c9f584b489d54f91091817b0e26e", + "url": "https://api.github.com/repos/symfony/flex/zipball/4a6d98eea3ebc7f68d82810cb682eedca2649e99", + "reference": "4a6d98eea3ebc7f68d82810cb682eedca2649e99", "shasum": "" }, "require": { "composer-plugin-api": "^2.1", - "php": ">=8.0" + "php": ">=8.1" + }, + "conflict": { + "composer/semver": "<1.7.2", + "symfony/dotenv": "<5.4" }, "require-dev": { "composer/composer": "^2.1", - "symfony/dotenv": "^5.4|^6.0", - "symfony/filesystem": "^5.4|^6.0", - "symfony/phpunit-bridge": "^5.4|^6.0", - "symfony/process": "^5.4|^6.0" + "phpunit/phpunit": "^12.4", + "symfony/dotenv": "^6.4.41|^7.4.13|^8.0.13", + "symfony/filesystem": "^6.4|^7.4|^8.0", + "symfony/process": "^6.4|^7.4|^8.0" }, "type": "composer-plugin", "extra": { @@ -1275,7 +940,7 @@ "description": "Composer plugin for Symfony", "support": { "issues": "https://github.com/symfony/flex/issues", - "source": "https://github.com/symfony/flex/tree/v2.4.5" + "source": "https://github.com/symfony/flex/tree/v2.11.0" }, "funding": [ { @@ -1286,86 +951,54 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-03-02T08:16:47+00:00" + "time": "2026-05-29T17:25:22+00:00" }, { - "name": "symfony/polyfill", - "version": "v1.30.0", + "name": "symfony/polyfill-ctype", + "version": "v1.37.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill.git", - "reference": "697a1da855a225b57f1b2ee3640380b46787f854" + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill/zipball/697a1da855a225b57f1b2ee3640380b46787f854", - "reference": "697a1da855a225b57f1b2ee3640380b46787f854", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/141046a8f9477948ff284fa65be2095baafb94f2", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, - "replace": { - "symfony/polyfill-apcu": "self.version", - "symfony/polyfill-ctype": "self.version", - "symfony/polyfill-iconv": "self.version", - "symfony/polyfill-intl-grapheme": "self.version", - "symfony/polyfill-intl-icu": "self.version", - "symfony/polyfill-intl-idn": "self.version", - "symfony/polyfill-intl-messageformatter": "self.version", - "symfony/polyfill-intl-normalizer": "self.version", - "symfony/polyfill-mbstring": "self.version", - "symfony/polyfill-php72": "self.version", - "symfony/polyfill-php73": "self.version", - "symfony/polyfill-php74": "self.version", - "symfony/polyfill-php80": "self.version", - "symfony/polyfill-php81": "self.version", - "symfony/polyfill-php82": "self.version", - "symfony/polyfill-php83": "self.version", - "symfony/polyfill-php84": "self.version", - "symfony/polyfill-util": "self.version", - "symfony/polyfill-uuid": "self.version", - "symfony/polyfill-xml": "self.version" + "provide": { + "ext-ctype": "*" }, - "require-dev": { - "symfony/intl": "^4.4|^5.0|^6.0", - "symfony/phpunit-bridge": "^5.3|^6.0", - "symfony/var-dumper": "^4.4|^5.1|^6.0" + "suggest": { + "ext-ctype": "For best performance" }, "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, "autoload": { "files": [ - "src/bootstrap.php", - "src/Apcu/bootstrap.php", - "src/Ctype/bootstrap.php", - "src/Uuid/bootstrap.php", - "src/Iconv/bootstrap.php", - "src/Intl/Grapheme/bootstrap.php", - "src/Intl/Idn/bootstrap.php", - "src/Intl/Icu/bootstrap.php", - "src/Intl/MessageFormatter/bootstrap.php", - "src/Intl/Normalizer/bootstrap.php", - "src/Mbstring/bootstrap.php" + "bootstrap.php" ], "psr-4": { - "Symfony\\Polyfill\\": "src/" - }, - "classmap": [ - "src/Intl/Icu/Resources/stubs", - "src/Intl/MessageFormatter/Resources/stubs", - "src/Intl/Normalizer/Resources/stubs", - "src/Php84/Resources/stubs", - "src/Php83/Resources/stubs", - "src/Php82/Resources/stubs", - "src/Php81/Resources/stubs", - "src/Php80/Resources/stubs", - "src/Php73/Resources/stubs" - ] + "Symfony\\Polyfill\\Ctype\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1373,26 +1006,24 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfills backporting features to lower PHP versions", + "description": "Symfony polyfill for ctype functions", "homepage": "https://symfony.com", "keywords": [ - "compat", "compatibility", - "dev", + "ctype", "polyfill", - "shim" + "portable" ], "support": { - "issues": "https://github.com/symfony/polyfill/issues", - "source": "https://github.com/symfony/polyfill/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.37.0" }, "funding": [ { @@ -1403,36 +1034,41 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-06-19T12:51:52+00:00" + "time": "2026-04-10T16:19:22+00:00" }, { "name": "symfony/yaml", - "version": "v7.1.1", + "version": "v8.1.1", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "fa34c77015aa6720469db7003567b9f772492bf2" + "reference": "8e4cdd4311683516be06944f4b85244063cdb886" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/fa34c77015aa6720469db7003567b9f772492bf2", - "reference": "fa34c77015aa6720469db7003567b9f772492bf2", + "url": "https://api.github.com/repos/symfony/yaml/zipball/8e4cdd4311683516be06944f4b85244063cdb886", + "reference": "8e4cdd4311683516be06944f4b85244063cdb886", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", "symfony/polyfill-ctype": "^1.8" }, "conflict": { - "symfony/console": "<6.4" + "symfony/console": "<7.4" }, "require-dev": { - "symfony/console": "^6.4|^7.0" + "symfony/console": "^7.4|^8.0", + "yaml/yaml-test-suite": "*" }, "bin": [ "Resources/bin/yaml-lint" @@ -1463,7 +1099,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v7.1.1" + "source": "https://github.com/symfony/yaml/tree/v8.1.1" }, "funding": [ { @@ -1474,1912 +1110,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-05-31T14:57:53+00:00" - }, - { - "name": "vaimo/phpcs-rulesets", - "version": "dev-codacy", - "source": { - "type": "git", - "url": "https://bitbucket.org/vaimo/phpcs-rulesets.git", - "reference": "a419bea54e2dc52f29ec38f74ebef82c36cdc37e" - }, - "dist": { - "type": "zip", - "url": "https://bitbucket.org/vaimo/phpcs-rulesets/get/a419bea54e2dc52f29ec38f74ebef82c36cdc37e.zip", - "reference": "a419bea54e2dc52f29ec38f74ebef82c36cdc37e", - "shasum": "" - }, - "require": { - "doctrine/coding-standard": ">=9.0,<=12.0", - "magento/magento-coding-standard": ">=6,<=33", - "php": "~7.4 | ~8.1", - "phpstan/phpdoc-parser": ">=1.5.1,<=1.28.0", - "slevomat/coding-standard": ">=7.0,<=8.15.0", - "squizlabs/php_codesniffer": "^3.9.2" - }, - "require-dev": { - "captainhook/captainhook": "^5.10", - "captainhook/plugin-composer": "^5.3", - "ext-json": "*", - "ext-simplexml": "*", - "phpcsstandards/phpcsextra": "~1.2", - "phpunit/phpunit": "~9.5", - "rector/rector": "^0.17", - "vaimo/composer-changelogs": "~1.0" - }, - "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "to automatically discover packages with phpcs standards and include them in config file." - }, - "type": "phpcodesniffer-standard", - "extra": { - "changelog": { - "source": "changelog.json" - } - }, - "autoload": { - "psr-4": { - "Vaimo\\": "Vaimo/" - } - }, - "autoload-dev": { - "psr-4": { - "Vaimo\\": "tests/unit/", - "Vaimo\\Sniffs\\IntegrationTest\\": "tests/integration/", - "Vaimo\\Sniffs\\DocumentationTest\\": "tests/documentation/" - } - }, - "license": [ - "proprietary" - ], - "authors": [ - { - "name": "Aleksandr Panshin", - "email": "aleksandr.panshin@vaimo.com" - } - ], - "description": "Vaimo Code Quality phpcs rulesets", - "homepage": "https://bitbucket.org/vaimo/phpcs-rulesets", - "support": { - "source": "https://bitbucket.org/vaimo/phpcs-rulesets/src/a419bea54e2dc52f29ec38f74ebef82c36cdc37e/?at=codacy", - "issues": "https://bitbucket.org/vaimo/phpcs-rulesets/issues" - }, - "time": "2024-05-02T11:40:44+00:00" - }, - { - "name": "vaimo/uk-phpcs-standards", - "version": "dev-master", - "source": { - "type": "git", - "url": "https://bitbucket.org/vaimo/uk-phpcs-standards.git", - "reference": "54b4dcfa87af2823c199f9b51e751d6171e1c4f1" - }, - "dist": { - "type": "zip", - "url": "https://bitbucket.org/vaimo/uk-phpcs-standards/get/54b4dcfa87af2823c199f9b51e751d6171e1c4f1.zip", - "reference": "54b4dcfa87af2823c199f9b51e751d6171e1c4f1", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "slevomat/coding-standard": "^8.15", - "squizlabs/php_codesniffer": "^3.10", - "vaimo/composer-changelogs": "^1.0" - }, - "default-branch": true, - "type": "phpcodesniffer-standard", - "autoload": { - "psr-4": { - "Vaimo\\UkPhpcsStandards\\": "Vaimo/" - } - }, - "license": [ - "proprietary" - ], - "authors": [ - { - "name": "Piero Bernardi", - "email": "piero.bernardi@vaimo.com" - } - ], - "description": "Custom PHP_CodeSniffer rules", - "homepage": "https://bitbucket.org/vaimo/uk-phpcs-standards", - "support": { - "source": "https://bitbucket.org/vaimo/uk-phpcs-standards/src/54b4dcfa87af2823c199f9b51e751d6171e1c4f1/?at=master" - }, - "time": "2024-10-24T09:33:18+00:00" - }, - { - "name": "webonyx/graphql-php", - "version": "v15.12.5", - "source": { - "type": "git", - "url": "https://github.com/webonyx/graphql-php.git", - "reference": "7bcd31d1dcf67781ed5cb493b22c519c539c05e6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webonyx/graphql-php/zipball/7bcd31d1dcf67781ed5cb493b22c519c539c05e6", - "reference": "7bcd31d1dcf67781ed5cb493b22c519c539c05e6", - "shasum": "" - }, - "require": { - "ext-json": "*", - "ext-mbstring": "*", - "php": "^7.4 || ^8" - }, - "require-dev": { - "amphp/amp": "^2.6", - "amphp/http-server": "^2.1", - "dms/phpunit-arraysubset-asserts": "dev-master", - "ergebnis/composer-normalize": "^2.28", - "friendsofphp/php-cs-fixer": "3.59.3", - "mll-lab/php-cs-fixer-config": "^5", - "nyholm/psr7": "^1.5", - "phpbench/phpbench": "^1.2", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "1.11.5", - "phpstan/phpstan-phpunit": "1.4.0", - "phpstan/phpstan-strict-rules": "1.6.0", - "phpunit/phpunit": "^9.5 || ^10.5.21", - "psr/http-message": "^1 || ^2", - "react/http": "^1.6", - "react/promise": "^2.0 || ^3.0", - "rector/rector": "^1.0", - "symfony/polyfill-php81": "^1.23", - "symfony/var-exporter": "^5 || ^6 || ^7", - "thecodingmachine/safe": "^1.3 || ^2" - }, - "suggest": { - "amphp/http-server": "To leverage async resolving with webserver on AMPHP platform", - "psr/http-message": "To use standard GraphQL server", - "react/promise": "To leverage async resolving on React PHP platform" - }, - "type": "library", - "autoload": { - "psr-4": { - "GraphQL\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A PHP port of GraphQL reference implementation", - "homepage": "https://github.com/webonyx/graphql-php", - "keywords": [ - "api", - "graphql" - ], - "support": { - "issues": "https://github.com/webonyx/graphql-php/issues", - "source": "https://github.com/webonyx/graphql-php/tree/v15.12.5" - }, - "funding": [ - { - "url": "https://opencollective.com/webonyx-graphql-php", - "type": "open_collective" - } - ], - "time": "2024-06-23T11:30:58+00:00" - }, - { - "name": "wp-coding-standards/wpcs", - "version": "3.1.0", - "source": { - "type": "git", - "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", - "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/9333efcbff231f10dfd9c56bb7b65818b4733ca7", - "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7", - "shasum": "" - }, - "require": { - "ext-filter": "*", - "ext-libxml": "*", - "ext-tokenizer": "*", - "ext-xmlreader": "*", - "php": ">=5.4", - "phpcsstandards/phpcsextra": "^1.2.1", - "phpcsstandards/phpcsutils": "^1.0.10", - "squizlabs/php_codesniffer": "^3.9.0" - }, - "require-dev": { - "php-parallel-lint/php-console-highlighter": "^1.0.0", - "php-parallel-lint/php-parallel-lint": "^1.3.2", - "phpcompatibility/php-compatibility": "^9.0", - "phpcsstandards/phpcsdevtools": "^1.2.0", - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" - }, - "suggest": { - "ext-iconv": "For improved results", - "ext-mbstring": "For improved results" - }, - "type": "phpcodesniffer-standard", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Contributors", - "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors" - } - ], - "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions", - "keywords": [ - "phpcs", - "standards", - "static analysis", - "wordpress" - ], - "support": { - "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues", - "source": "https://github.com/WordPress/WordPress-Coding-Standards", - "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki" - }, - "funding": [ - { - "url": "https://opencollective.com/php_codesniffer", - "type": "custom" - } - ], - "time": "2024-03-25T16:39:00+00:00" - } - ], - "packages-dev": [ - { - "name": "myclabs/deep-copy", - "version": "1.12.0", - "source": { - "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "conflict": { - "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3 <3.2.2" - }, - "require-dev": { - "doctrine/collections": "^1.6.8", - "doctrine/common": "^2.13.3 || ^3.2.2", - "phpspec/prophecy": "^1.10", - "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" - }, - "type": "library", - "autoload": { - "files": [ - "src/DeepCopy/deep_copy.php" - ], - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Create deep copies (clones) of your objects", - "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" - ], - "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" - }, - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2024-06-12T14:39:25+00:00" - }, - { - "name": "nikic/php-parser", - "version": "v5.1.0", - "source": { - "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1", - "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1", - "shasum": "" - }, - "require": { - "ext-ctype": "*", - "ext-json": "*", - "ext-tokenizer": "*", - "php": ">=7.4" - }, - "require-dev": { - "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^9.0" - }, - "bin": [ - "bin/php-parse" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0-dev" - } - }, - "autoload": { - "psr-4": { - "PhpParser\\": "lib/PhpParser" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Nikita Popov" - } - ], - "description": "A PHP parser written in PHP", - "keywords": [ - "parser", - "php" - ], - "support": { - "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0" - }, - "time": "2024-07-01T20:03:41+00:00" - }, - { - "name": "phar-io/manifest", - "version": "2.0.4", - "source": { - "type": "git", - "url": "https://github.com/phar-io/manifest.git", - "reference": "54750ef60c58e43759730615a392c31c80e23176" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", - "reference": "54750ef60c58e43759730615a392c31c80e23176", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-libxml": "*", - "ext-phar": "*", - "ext-xmlwriter": "*", - "phar-io/version": "^3.0.1", - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "support": { - "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/2.0.4" - }, - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2024-03-03T12:33:53+00:00" - }, - { - "name": "phar-io/version", - "version": "3.2.1", - "source": { - "type": "git", - "url": "https://github.com/phar-io/version.git", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Library for handling version information and constraints", - "support": { - "issues": "https://github.com/phar-io/version/issues", - "source": "https://github.com/phar-io/version/tree/3.2.1" - }, - "time": "2022-02-21T01:04:05+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "11.0.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "19b6365ab8b59a64438c0c3f4241feeb480c9861" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/19b6365ab8b59a64438c0c3f4241feeb480c9861", - "reference": "19b6365ab8b59a64438c0c3f4241feeb480c9861", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-libxml": "*", - "ext-xmlwriter": "*", - "nikic/php-parser": "^5.0", - "php": ">=8.2", - "phpunit/php-file-iterator": "^5.0", - "phpunit/php-text-template": "^4.0", - "sebastian/code-unit-reverse-lookup": "^4.0", - "sebastian/complexity": "^4.0", - "sebastian/environment": "^7.0", - "sebastian/lines-of-code": "^3.0", - "sebastian/version": "^5.0", - "theseer/tokenizer": "^1.2.0" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "suggest": { - "ext-pcov": "PHP extension that provides line coverage", - "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "11.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/11.0.5" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T05:05:37+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "5.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "6ed896bf50bbbfe4d504a33ed5886278c78e4a26" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/6ed896bf50bbbfe4d504a33ed5886278c78e4a26", - "reference": "6ed896bf50bbbfe4d504a33ed5886278c78e4a26", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T05:06:37+00:00" - }, - { - "name": "phpunit/php-invoker", - "version": "5.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/c1ca3814734c07492b3d4c5f794f4b0995333da2", - "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "ext-pcntl": "*", - "phpunit/phpunit": "^11.0" - }, - "suggest": { - "ext-pcntl": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Invoke callables with a timeout", - "homepage": "https://github.com/sebastianbergmann/php-invoker/", - "keywords": [ - "process" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/5.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T05:07:44+00:00" - }, - { - "name": "phpunit/php-text-template", - "version": "4.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/3e0404dc6b300e6bf56415467ebcb3fe4f33e964", - "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/4.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T05:08:43+00:00" - }, - { - "name": "phpunit/php-timer", - "version": "7.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", - "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "7.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "security": "https://github.com/sebastianbergmann/php-timer/security/policy", - "source": "https://github.com/sebastianbergmann/php-timer/tree/7.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T05:09:35+00:00" - }, - { - "name": "phpunit/phpunit", - "version": "11.2.6", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "1dc0fedac703199e8704de085e47dd46bac0dde4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1dc0fedac703199e8704de085e47dd46bac0dde4", - "reference": "1dc0fedac703199e8704de085e47dd46bac0dde4", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", - "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", - "php": ">=8.2", - "phpunit/php-code-coverage": "^11.0", - "phpunit/php-file-iterator": "^5.0", - "phpunit/php-invoker": "^5.0", - "phpunit/php-text-template": "^4.0", - "phpunit/php-timer": "^7.0", - "sebastian/cli-parser": "^3.0", - "sebastian/code-unit": "^3.0", - "sebastian/comparator": "^6.0", - "sebastian/diff": "^6.0", - "sebastian/environment": "^7.0", - "sebastian/exporter": "^6.1.2", - "sebastian/global-state": "^7.0", - "sebastian/object-enumerator": "^6.0", - "sebastian/type": "^5.0", - "sebastian/version": "^5.0" - }, - "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "11.2-dev" - } - }, - "autoload": { - "files": [ - "src/Framework/Assert/Functions.php" - ], - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.2.6" - }, - "funding": [ - { - "url": "https://phpunit.de/sponsors.html", - "type": "custom" - }, - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", - "type": "tidelift" - } - ], - "time": "2024-07-03T05:51:49+00:00" - }, - { - "name": "sebastian/cli-parser", - "version": "3.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/15c5dd40dc4f38794d383bb95465193f5e0ae180", - "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for parsing CLI options", - "homepage": "https://github.com/sebastianbergmann/cli-parser", - "support": { - "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/3.0.2" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T04:41:36+00:00" - }, - { - "name": "sebastian/code-unit", - "version": "3.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "6bb7d09d6623567178cf54126afa9c2310114268" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/6bb7d09d6623567178cf54126afa9c2310114268", - "reference": "6bb7d09d6623567178cf54126afa9c2310114268", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Collection of value objects that represent the PHP code units", - "homepage": "https://github.com/sebastianbergmann/code-unit", - "support": { - "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "security": "https://github.com/sebastianbergmann/code-unit/security/policy", - "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T04:44:28+00:00" - }, - { - "name": "sebastian/code-unit-reverse-lookup", - "version": "4.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "183a9b2632194febd219bb9246eee421dad8d45e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/183a9b2632194febd219bb9246eee421dad8d45e", - "reference": "183a9b2632194febd219bb9246eee421dad8d45e", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Looks up which function or method a line of code belongs to", - "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "support": { - "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "security": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/security/policy", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/4.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T04:45:54+00:00" - }, - { - "name": "sebastian/comparator", - "version": "6.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "131942b86d3587291067a94f295498ab6ac79c20" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/131942b86d3587291067a94f295498ab6ac79c20", - "reference": "131942b86d3587291067a94f295498ab6ac79c20", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-mbstring": "*", - "php": ">=8.2", - "sebastian/diff": "^6.0", - "sebastian/exporter": "^6.0" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "https://github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/comparator/issues", - "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/6.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T04:48:07+00:00" - }, - { - "name": "sebastian/complexity", - "version": "4.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "ee41d384ab1906c68852636b6de493846e13e5a0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/ee41d384ab1906c68852636b6de493846e13e5a0", - "reference": "ee41d384ab1906c68852636b6de493846e13e5a0", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^5.0", - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for calculating the complexity of PHP code units", - "homepage": "https://github.com/sebastianbergmann/complexity", - "support": { - "issues": "https://github.com/sebastianbergmann/complexity/issues", - "security": "https://github.com/sebastianbergmann/complexity/security/policy", - "source": "https://github.com/sebastianbergmann/complexity/tree/4.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T04:49:50+00:00" - }, - { - "name": "sebastian/diff", - "version": "6.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/b4ccd857127db5d41a5b676f24b51371d76d8544", - "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0", - "symfony/process": "^4.2 || ^5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - } - ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff", - "udiff", - "unidiff", - "unified diff" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/diff/issues", - "security": "https://github.com/sebastianbergmann/diff/security/policy", - "source": "https://github.com/sebastianbergmann/diff/tree/6.0.2" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T04:53:05+00:00" - }, - { - "name": "sebastian/environment", - "version": "7.2.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5", - "reference": "855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "suggest": { - "ext-posix": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "7.2-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "https://github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/environment/issues", - "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/7.2.0" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T04:54:44+00:00" - }, - { - "name": "sebastian/exporter", - "version": "6.1.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e", - "reference": "c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e", - "shasum": "" - }, - "require": { - "ext-mbstring": "*", - "php": ">=8.2", - "sebastian/recursion-context": "^6.0" - }, - "require-dev": { - "phpunit/phpunit": "^11.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "https://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/exporter/issues", - "security": "https://github.com/sebastianbergmann/exporter/security/policy", - "source": "https://github.com/sebastianbergmann/exporter/tree/6.1.3" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T04:56:19+00:00" - }, - { - "name": "sebastian/global-state", - "version": "7.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "3be331570a721f9a4b5917f4209773de17f747d7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/3be331570a721f9a4b5917f4209773de17f747d7", - "reference": "3be331570a721f9a4b5917f4209773de17f747d7", - "shasum": "" - }, - "require": { - "php": ">=8.2", - "sebastian/object-reflector": "^4.0", - "sebastian/recursion-context": "^6.0" - }, - "require-dev": { - "ext-dom": "*", - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "7.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "https://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/global-state/issues", - "security": "https://github.com/sebastianbergmann/global-state/security/policy", - "source": "https://github.com/sebastianbergmann/global-state/tree/7.0.2" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T04:57:36+00:00" - }, - { - "name": "sebastian/lines-of-code", - "version": "3.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d36ad0d782e5756913e42ad87cb2890f4ffe467a", - "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^5.0", - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for counting the lines of code in PHP source code", - "homepage": "https://github.com/sebastianbergmann/lines-of-code", - "support": { - "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/3.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T04:58:38+00:00" - }, - { - "name": "sebastian/object-enumerator", - "version": "6.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "f5b498e631a74204185071eb41f33f38d64608aa" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/f5b498e631a74204185071eb41f33f38d64608aa", - "reference": "f5b498e631a74204185071eb41f33f38d64608aa", - "shasum": "" - }, - "require": { - "php": ">=8.2", - "sebastian/object-reflector": "^4.0", - "sebastian/recursion-context": "^6.0" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "support": { - "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/6.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T05:00:13+00:00" - }, - { - "name": "sebastian/object-reflector", - "version": "4.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/6e1a43b411b2ad34146dee7524cb13a068bb35f9", - "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Allows reflection of object attributes, including inherited and non-public ones", - "homepage": "https://github.com/sebastianbergmann/object-reflector/", - "support": { - "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/4.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T05:01:32+00:00" - }, - { - "name": "sebastian/recursion-context", - "version": "6.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "694d156164372abbd149a4b85ccda2e4670c0e16" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/694d156164372abbd149a4b85ccda2e4670c0e16", - "reference": "694d156164372abbd149a4b85ccda2e4670c0e16", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "6.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "https://github.com/sebastianbergmann/recursion-context", - "support": { - "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/6.0.2" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T05:10:34+00:00" - }, - { - "name": "sebastian/type", - "version": "5.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/type.git", - "reference": "fb6a6566f9589e86661291d13eba708cce5eb4aa" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb6a6566f9589e86661291d13eba708cce5eb4aa", - "reference": "fb6a6566f9589e86661291d13eba708cce5eb4aa", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Collection of value objects that represent the types of the PHP type system", - "homepage": "https://github.com/sebastianbergmann/type", - "support": { - "issues": "https://github.com/sebastianbergmann/type/issues", - "security": "https://github.com/sebastianbergmann/type/security/policy", - "source": "https://github.com/sebastianbergmann/type/tree/5.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T05:11:49+00:00" - }, - { - "name": "sebastian/version", - "version": "5.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "45c9debb7d039ce9b97de2f749c2cf5832a06ac4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/45c9debb7d039ce9b97de2f749c2cf5832a06ac4", - "reference": "45c9debb7d039ce9b97de2f749c2cf5832a06ac4", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "support": { - "issues": "https://github.com/sebastianbergmann/version/issues", - "security": "https://github.com/sebastianbergmann/version/security/policy", - "source": "https://github.com/sebastianbergmann/version/tree/5.0.1" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-07-03T05:13:08+00:00" - }, - { - "name": "theseer/tokenizer", - "version": "1.2.3", - "source": { - "type": "git", - "url": "https://github.com/theseer/tokenizer.git", - "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", - "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": "^7.2 || ^8.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - } - ], - "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "support": { - "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.3" - }, - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2024-03-03T12:36:25+00:00" + "time": "2026-06-09T11:06:24+00:00" } ], + "packages-dev": [], "aliases": [], "minimum-stability": "stable", "stability-flags": { - "vaimo/phpcs-rulesets": 20, - "vaimo/uk-phpcs-standards": 20 + "phpcompatibility/php-compatibility": 15, + "phpcompatibility/phpcompatibility-paragonie": 15, + "phpcompatibility/phpcompatibility-wp": 15 }, "prefer-stable": false, "prefer-lowest": false, "platform": {}, "platform-dev": {}, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/Generator.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/Generator.scala index 87f7121d..f0bfaae1 100644 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/Generator.scala +++ b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/Generator.scala @@ -22,17 +22,10 @@ class Generator() { private[this] val parsers: List[DocsParser] = List(new CakePHPDocsParser(), new DrupalCoderDocsParser(), - new MagentoCSDocsParser(), - new MagentoEQPDocsParser(), new PHPCompatibilityDocsParser(), new PHPCSDocsParser(), - new PHPCSSecurityAuditDocsParser(), new SlevomatCSDocsParser(), - new SymfonyDocsParser(), - new VaimoParser(), - new VaimoUKParser(), - new VipWordPressDocsParser(), - new WordPressCSDocsParser() + new SymfonyDocsParser() ) def run(): Unit = { diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/VersionsHelper.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/VersionsHelper.scala index a17a584c..3b9504e8 100644 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/VersionsHelper.scala +++ b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/VersionsHelper.scala @@ -10,18 +10,11 @@ object VersionsHelper { composerJson("require") } - lazy val vipWordpress = properties("automattic/vipwpcs").str.replace("^","") lazy val cakephp = properties("cakephp/cakephp-codesniffer").str.replace("^","") lazy val doctrine = properties("doctrine/coding-standard").str.replace("^","") lazy val drupalCoder = properties("drupal/coder").str.replace("^","") lazy val symfony = properties("escapestudios/symfony2-coding-standard").str.replace("^","") - lazy val magentoCS = properties("magento/magento-coding-standard").str.replace("^","") - lazy val magentoEQP = properties("magento/marketplace-eqp").str.replace("^","") lazy val phpCompatibility = properties("phpcompatibility/php-compatibility").str.replace("^","") - lazy val phpcsSecurityAudit = properties("pheromone/phpcs-security-audit").str.replace("^","") lazy val slevomatCS = properties("slevomat/coding-standard").str.replace("^","") lazy val codesniffer = properties("squizlabs/php_codesniffer").str.replace("^","") - lazy val wordpress = properties("wp-coding-standards/wpcs").str.replace("^","") - lazy val vaimoUK = properties("vaimo/uk-phpcs-standards").str.replace("^","") - lazy val vaimo = properties("vaimo/phpcs-rulesets").str.replace("^","") } diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/DocsParser.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/DocsParser.scala index 5b3b4f2f..fc92e109 100644 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/DocsParser.scala +++ b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/DocsParser.scala @@ -64,6 +64,7 @@ trait DocsParser { issueTypeFor(category, sourceFile, Result.Level.Info), category, subcategory, + Option.empty, parametersList, Set.empty, enabledByDefault diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/MagentoCSDocsParser.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/MagentoCSDocsParser.scala deleted file mode 100644 index 3f2b53f0..00000000 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/MagentoCSDocsParser.scala +++ /dev/null @@ -1,40 +0,0 @@ -package codacy.codesniffer.docsgen.parsers - -import better.files.File -import codacy.codesniffer.docsgen.VersionsHelper -import com.codacy.plugins.api.results.Pattern - -import scala.util.matching.Regex -import scala.annotation.nowarn - -class MagentoCSDocsParser extends DocsParser { - - override val repositoryURL = "https://github.com/magento/magento-coding-standard.git" - - override val checkoutCommit: String = VersionsHelper.magentoCS - - override val sniffRegex: Regex = """.*(Magento2(?:Framework)?)\/Sniffs\/(.*?)\/(.*?)Sniff.php""".r - - @nowarn("msg=match may not be exhaustive") - override def patternIdPartsFor(relativizedFilePath: String): PatternIdParts = { - val sniffRegex(magentoVersion, sniffType, patternName) = relativizedFilePath - PatternIdParts(magentoVersion, sniffType, patternName) - } - - override def descriptionWithDocs(rootDir: File, - patternIdParts: PatternIdParts, - patternFile: File - ): (Pattern.Description, Option[String]) = - (description(patternIdParts, rootDir: File), - this.parseExtendedDescription("Magento2\\Sniffs", "Magento2", patternIdParts, rootDir) - ) - - private[this] def description(patternIdParts: PatternIdParts, rootDir: File): Pattern.Description = { - val caseRegexPattern = """((?<=\p{Ll})\p{Lu}|\p{Lu}(?=\p{Ll}))""".r - val patternName = caseRegexPattern.replaceAllIn(patternIdParts.patternName, " $1").trim - val sniffName = caseRegexPattern.replaceAllIn(patternIdParts.sniffType, " $1").trim - val title = Pattern.Title(s"$sniffName: $patternName") - val description = this.parseDescription("Magento2\\Sniffs", "Magento2", patternIdParts, rootDir) - Pattern.Description(patternIdParts.patternId, title, description, None, Set.empty) - } -} diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/MagentoEQPDocsParser.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/MagentoEQPDocsParser.scala deleted file mode 100644 index 771667e7..00000000 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/MagentoEQPDocsParser.scala +++ /dev/null @@ -1,41 +0,0 @@ -package codacy.codesniffer.docsgen.parsers - -import better.files.File -import codacy.codesniffer.docsgen.VersionsHelper -import com.codacy.plugins.api.results.Pattern - -import scala.util.matching.Regex -import scala.annotation.nowarn - -class MagentoEQPDocsParser extends DocsParser { - - override val repositoryURL = "https://github.com/magento/marketplace-eqp.git" - - override val checkoutCommit: String = VersionsHelper.magentoEQP - - override val sniffRegex: Regex = """.*(MEQP1)\/Sniffs\/(.*?)\/(.*?)Sniff.php""".r - - @nowarn("msg=match may not be exhaustive") - override def patternIdPartsFor(relativizedFilePath: String): PatternIdParts = { - val sniffRegex(magentoVersion, sniffType, patternName) = relativizedFilePath - PatternIdParts(magentoVersion, sniffType, patternName) - } - - override def descriptionWithDocs(rootDir: File, - patternIdParts: PatternIdParts, - patternFile: File - ): (Pattern.Description, Option[String]) = - (description(patternIdParts, rootDir), - this.parseExtendedDescription("MEQP1\\Sniffs", "MEQP1", patternIdParts, rootDir) - ) - - private[this] def description(patternIdParts: PatternIdParts, rootDir: File): Pattern.Description = { - val caseRegexPattern = """((?<=\p{Ll})\p{Lu}|\p{Lu}(?=\p{Ll}))""".r - val patternName = caseRegexPattern.replaceAllIn(patternIdParts.patternName, " $1").trim - val sniffName = caseRegexPattern.replaceAllIn(patternIdParts.sniffType, " $1").trim - val title = Pattern.Title(s"$sniffName: $patternName") - val extended = this.parseDescription("MEQP1\\Sniffs", "MEQP1", patternIdParts, rootDir) - Pattern.Description(patternIdParts.patternId, title, extended, None, Set.empty) - } - -} diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/PHPCSSecurityAuditDocsParser.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/PHPCSSecurityAuditDocsParser.scala deleted file mode 100644 index 0dc506a1..00000000 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/PHPCSSecurityAuditDocsParser.scala +++ /dev/null @@ -1,44 +0,0 @@ -package codacy.codesniffer.docsgen.parsers - -import better.files.File -import codacy.codesniffer.docsgen.VersionsHelper -import com.codacy.plugins.api.results.Pattern - -import scala.util.matching.Regex -import scala.annotation.nowarn - -class PHPCSSecurityAuditDocsParser extends DocsParser { - - override val repositoryURL = "https://github.com/FloeDesignTechnologies/phpcs-security-audit.git" - - override val checkoutCommit: String = VersionsHelper.phpcsSecurityAudit - - override def fallBackCategory: Pattern.Category.Value = Pattern.Category.Security - - override val sniffRegex: Regex = """.*Security\/Sniffs\/(.*?)\/(.*?)Sniff.php""".r - - @nowarn("msg=match may not be exhaustive") - override def patternIdPartsFor(relativizedFilePath: String): PatternIdParts = { - val sniffRegex(sniffType, patternName) = relativizedFilePath - PatternIdParts("Security", sniffType, patternName) - } - - override def descriptionWithDocs(rootDir: File, - patternIdParts: PatternIdParts, - patternFile: File - ): (Pattern.Description, Option[String]) = { - (descriptionFor(patternIdParts, rootDir), - this.parseExtendedDescription("PHPCS_SecurityAudit\\Security\\Sniffs", "Security", patternIdParts, rootDir) - ) - } - - private[this] def descriptionFor(patternIdParts: PatternIdParts, rootDir: File): Pattern.Description = { - val caseRegexPattern = """((?<=\p{Ll})\p{Lu}|\p{Lu}(?=\p{Ll}))""".r - val patternName = caseRegexPattern.replaceAllIn(patternIdParts.patternName, " $1").trim - val sniffName = caseRegexPattern.replaceAllIn(patternIdParts.sniffType, " $1").trim - val title = Pattern.Title(s"${patternIdParts.prefix} $sniffName related issue: $patternName") - val extended = this.parseDescription("PHPCS_SecurityAudit\\Security\\Sniffs", "Security", patternIdParts, rootDir) - Pattern.Description(patternIdParts.patternId, title, extended, None, Set.empty) - } - -} diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/VaimoParser.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/VaimoParser.scala deleted file mode 100644 index f389e865..00000000 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/VaimoParser.scala +++ /dev/null @@ -1,45 +0,0 @@ - -package codacy.codesniffer.docsgen.parsers - -import codacy.codesniffer.docsgen.VersionsHelper -import scala.util.matching.Regex - -import better.files.File -import com.codacy.plugins.api.results.Pattern - -import scala.annotation.nowarn - -class VaimoParser extends DocsParser { - - override val repositoryURL = "https://bitbucket.org/vaimo/phpcs-rulesets" - - override val checkoutCommit: String = VersionsHelper.vaimo - - - override val sniffRegex: Regex = """.*(Vaimo)\/Sniffs\/(.*?)\/(.*?)Sniff.php""".r - - @nowarn("msg=match may not be exhaustive") - override def patternIdPartsFor(relativizedFilePath: String): PatternIdParts = { - val sniffRegex(vaimoVersion, sniffType, patternName) = relativizedFilePath - PatternIdParts(vaimoVersion, sniffType, patternName) - } - -override def descriptionWithDocs(rootDir: File, - patternIdParts: PatternIdParts, - patternFile: File - ): (Pattern.Description, Option[String]) = { - (description(patternIdParts, rootDir), - this.parseExtendedDescription("Vaimo\\Sniffs\\Custom", "Vaimo", patternIdParts, rootDir) - ) - } - - private[this] def description(patternIdParts: PatternIdParts, rootDir: File): Pattern.Description = { - val caseRegexPattern = """((?<=\p{Ll})\p{Lu}|\p{Lu}(?=\p{Ll}))""".r - val patternName = caseRegexPattern.replaceAllIn(patternIdParts.patternName, " $1").trim - val sniffName = caseRegexPattern.replaceAllIn(patternIdParts.sniffType, " $1").trim - val title = Pattern.Title(s"$sniffName: $patternName") - val extended = this.parseDescription("Vaimo\\Sniffs\\Custom", "Vaimo", patternIdParts, rootDir) - Pattern.Description(patternIdParts.patternId, title, extended, None, Set.empty) - } -} - diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/VaimoUKParser.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/VaimoUKParser.scala deleted file mode 100644 index 706913a6..00000000 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/VaimoUKParser.scala +++ /dev/null @@ -1,44 +0,0 @@ -package codacy.codesniffer.docsgen.parsers - -import codacy.codesniffer.docsgen.VersionsHelper -import scala.util.matching.Regex - -import better.files.File -import com.codacy.plugins.api.results.Pattern - -import scala.annotation.nowarn - -class VaimoUKParser extends DocsParser { - - override val repositoryURL = "https://bitbucket.org/vaimo/uk-phpcs-standards.git" - - override val checkoutCommit: String = VersionsHelper.vaimoUK - - - override val sniffRegex: Regex = """.*(Vaimo)\/Sniffs\/(.*?)\/(.*?)Sniff.php""".r - - @nowarn("msg=match may not be exhaustive") - override def patternIdPartsFor(relativizedFilePath: String): PatternIdParts = { - val sniffRegex(vaimoVersion, sniffType, patternName) = relativizedFilePath - PatternIdParts(vaimoVersion, sniffType, patternName) - } - -override def descriptionWithDocs(rootDir: File, - patternIdParts: PatternIdParts, - patternFile: File - ): (Pattern.Description, Option[String]) = { - (description(patternIdParts, rootDir), - this.parseExtendedDescription("Vaimo\\Sniffs\\Custom", "Vaimo", patternIdParts, rootDir) - ) - } - - private[this] def description(patternIdParts: PatternIdParts, rootDir: File): Pattern.Description = { - val caseRegexPattern = """((?<=\p{Ll})\p{Lu}|\p{Lu}(?=\p{Ll}))""".r - val patternName = caseRegexPattern.replaceAllIn(patternIdParts.patternName, " $1").trim - val sniffName = caseRegexPattern.replaceAllIn(patternIdParts.sniffType, " $1").trim - val title = Pattern.Title(s"$sniffName: $patternName") - val extended = this.parseDescription("Vaimo\\Sniffs\\Custom", "Vaimo", patternIdParts, rootDir) - Pattern.Description(patternIdParts.patternId, title, extended, None, Set.empty) - } -} - diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/VipWordPressDocsParser.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/VipWordPressDocsParser.scala deleted file mode 100644 index f382ca12..00000000 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/VipWordPressDocsParser.scala +++ /dev/null @@ -1,58 +0,0 @@ -package codacy.codesniffer.docsgen.parsers - -import better.files.File -import codacy.codesniffer.docsgen.VersionsHelper -import com.codacy.plugins.api.results.Pattern - -import scala.util.matching.Regex -import scala.annotation.nowarn - -class VipWordPressDocsParser extends DocsParser { - - override val repositoryURL = "https://github.com/Automattic/VIP-Coding-Standards" - - override val checkoutCommit: String = VersionsHelper.vipWordpress - - override val sniffRegex: Regex = """.*WordPressVIPMinimum\/Sniffs\/(.*?)\/(.*?)Sniff.php""".r - - @nowarn("msg=match may not be exhaustive") - override def patternIdPartsFor(relativizedFilePath: String): PatternIdParts = { - val sniffRegex(sniffType, patternName) = relativizedFilePath - PatternIdParts("WordPressVIPMinimum", sniffType, patternName) - } - - override def descriptionWithDocs(rootDir: File, - patternIdParts: PatternIdParts, - patternFile: File - ): (Pattern.Description, Option[String]) = { - val descriptionFromParts = descriptionFor(patternIdParts, rootDir) - val description = if (isDeprecated(patternFile)) { - val newTitle = Pattern.Title(s"${descriptionFromParts.title.value} (Deprecated)") - descriptionFromParts.copy(title = newTitle) - } else { - descriptionFromParts - } - - (description, - this.parseExtendedDescription("WordPressVIPMinimum\\Sniffs", "WordPressVIPMinimum", patternIdParts, rootDir) - ) - } - - private[this] def isDeprecated(patternFile: File): Boolean = { - val className = patternFile.nameWithoutExtension - - patternFile.lineIterator - .takeWhile(line => !line.matches(s"""^.*class.*$className.*extends.*Sniff.*""")) - .exists(_.matches("""^.*\*.*@deprecated.*""")) - } - - private[this] def descriptionFor(patternIdParts: PatternIdParts, rootDir: File): Pattern.Description = { - val caseRegexPattern = """((?<=\p{Ll})\p{Lu}|\p{Lu}(?=\p{Ll}))""".r - val patternName = caseRegexPattern.replaceAllIn(patternIdParts.patternName, " $1").trim - val sniffName = caseRegexPattern.replaceAllIn(patternIdParts.sniffType, " $1").trim - val title = Pattern.Title(s"$sniffName: $patternName") - val extended = this.parseDescription("WordPressVIPMinimum\\Sniffs", "WordPressVIPMinimum", patternIdParts, rootDir) - Pattern.Description(patternIdParts.patternId, title, extended, None, Set.empty) - } - -} diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/WordPressCSDocsParser.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/WordPressCSDocsParser.scala deleted file mode 100644 index c701c952..00000000 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/parsers/WordPressCSDocsParser.scala +++ /dev/null @@ -1,56 +0,0 @@ -package codacy.codesniffer.docsgen.parsers - -import better.files.File -import codacy.codesniffer.docsgen.VersionsHelper -import com.codacy.plugins.api.results.Pattern - -import scala.util.matching.Regex -import scala.annotation.nowarn - -class WordPressCSDocsParser extends DocsParser { - - override val repositoryURL = "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git" - - override val checkoutCommit: String = VersionsHelper.wordpress - - override val sniffRegex: Regex = """.*WordPress\/Sniffs\/(.*?)\/(.*?)Sniff.php""".r - - @nowarn("msg=match may not be exhaustive") - override def patternIdPartsFor(relativizedFilePath: String): PatternIdParts = { - val sniffRegex(sniffType, patternName) = relativizedFilePath - PatternIdParts("WordPress", sniffType, patternName) - } - - override def descriptionWithDocs(rootDir: File, - patternIdParts: PatternIdParts, - patternFile: File - ): (Pattern.Description, Option[String]) = { - val descriptionFromParts = descriptionFor(patternIdParts, rootDir) - val description = if (isDeprecated(patternFile)) { - val newTitle = Pattern.Title(s"${descriptionFromParts.title.value} (Deprecated)") - descriptionFromParts.copy(title = newTitle) - } else { - descriptionFromParts - } - - (description, this.parseExtendedDescription("WordPressCS\\WordPress\\Sniffs", "WordPress", patternIdParts, rootDir)) - } - - private[this] def isDeprecated(patternFile: File): Boolean = { - val className = patternFile.nameWithoutExtension - - patternFile.lineIterator - .takeWhile(line => !line.matches(s"""^.*class.*$className.*extends.*Sniff.*""")) - .exists(_.matches("""^.*\*.*@deprecated.*""")) - } - - private[this] def descriptionFor(patternIdParts: PatternIdParts, rootDir: File): Pattern.Description = { - val caseRegexPattern = """((?<=\p{Ll})\p{Lu}|\p{Lu}(?=\p{Ll}))""".r - val patternName = caseRegexPattern.replaceAllIn(patternIdParts.patternName, " $1").trim - val sniffName = caseRegexPattern.replaceAllIn(patternIdParts.sniffType, " $1").trim - val title = Pattern.Title(s"$sniffName: $patternName") - val extended = this.parseDescription("WordPressCS\\WordPress\\Sniffs", "WordPress", patternIdParts, rootDir) - Pattern.Description(patternIdParts.patternId, title, extended, None, Set.empty) - } - -} diff --git a/docs/description/CakePHP_Functions_ClosureDeclaration.md b/docs/description/CakePHP_Functions_ClosureDeclaration.md deleted file mode 100644 index e451f885..00000000 --- a/docs/description/CakePHP_Functions_ClosureDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Closure Declaration diff --git a/docs/description/Drupal_Arrays_DisallowLongArraySyntax.md b/docs/description/Drupal_Arrays_DisallowLongArraySyntax.md deleted file mode 100644 index 349818f7..00000000 --- a/docs/description/Drupal_Arrays_DisallowLongArraySyntax.md +++ /dev/null @@ -1 +0,0 @@ -Arrays: Disallow Long Array Syntax diff --git a/docs/description/Drupal_Attributes_ValidHookName.md b/docs/description/Drupal_Attributes_ValidHookName.md new file mode 100644 index 00000000..4196e5bb --- /dev/null +++ b/docs/description/Drupal_Attributes_ValidHookName.md @@ -0,0 +1 @@ +Attributes: Valid Hook Name diff --git a/docs/description/Drupal_CSS_ClassDefinitionNameSpacing.md b/docs/description/Drupal_CSS_ClassDefinitionNameSpacing.md deleted file mode 100644 index 6626a618..00000000 --- a/docs/description/Drupal_CSS_ClassDefinitionNameSpacing.md +++ /dev/null @@ -1 +0,0 @@ -CSS: Class Definition Name Spacing diff --git a/docs/description/Drupal_CSS_ColourDefinition.md b/docs/description/Drupal_CSS_ColourDefinition.md deleted file mode 100644 index 1e9e4f93..00000000 --- a/docs/description/Drupal_CSS_ColourDefinition.md +++ /dev/null @@ -1 +0,0 @@ -CSS: Colour Definition diff --git a/docs/description/Drupal_Classes_ClassCreateInstance.md b/docs/description/Drupal_Classes_ClassCreateInstance.md deleted file mode 100644 index 190eba50..00000000 --- a/docs/description/Drupal_Classes_ClassCreateInstance.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Class Create Instance diff --git a/docs/description/Drupal_Classes_ClassFileName.md b/docs/description/Drupal_Classes_ClassFileName.md deleted file mode 100644 index 33f81a0d..00000000 --- a/docs/description/Drupal_Classes_ClassFileName.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Class File Name diff --git a/docs/description/Drupal_Classes_InterfaceName.md b/docs/description/Drupal_Classes_InterfaceName.md deleted file mode 100644 index f6345506..00000000 --- a/docs/description/Drupal_Classes_InterfaceName.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Interface Name diff --git a/docs/description/Drupal_Classes_UnusedUseStatement.md b/docs/description/Drupal_Classes_UnusedUseStatement.md deleted file mode 100644 index 70ecac78..00000000 --- a/docs/description/Drupal_Classes_UnusedUseStatement.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Unused Use Statement diff --git a/docs/description/Drupal_Classes_UseLeadingBackslash.md b/docs/description/Drupal_Classes_UseLeadingBackslash.md deleted file mode 100644 index 285df7d5..00000000 --- a/docs/description/Drupal_Classes_UseLeadingBackslash.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Use Leading Backslash diff --git a/docs/description/Drupal_Commenting_DataTypeNamespace.md b/docs/description/Drupal_Commenting_DataTypeNamespace.md deleted file mode 100644 index ab2364b2..00000000 --- a/docs/description/Drupal_Commenting_DataTypeNamespace.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Data Type Namespace diff --git a/docs/description/Drupal_ControlStructures_ElseIf.md b/docs/description/Drupal_ControlStructures_ElseIf.md deleted file mode 100644 index 56e0d20c..00000000 --- a/docs/description/Drupal_ControlStructures_ElseIf.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Else If diff --git a/docs/description/Drupal_ControlStructures_InlineControlStructure.md b/docs/description/Drupal_ControlStructures_InlineControlStructure.md deleted file mode 100644 index 7739bcbb..00000000 --- a/docs/description/Drupal_ControlStructures_InlineControlStructure.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Inline Control Structure diff --git a/docs/description/Drupal_Functions_FunctionDeclaration.md b/docs/description/Drupal_Functions_FunctionDeclaration.md deleted file mode 100644 index 872669e3..00000000 --- a/docs/description/Drupal_Functions_FunctionDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Function Declaration diff --git a/docs/description/Drupal_Methods_MethodDeclaration.md b/docs/description/Drupal_Methods_MethodDeclaration.md deleted file mode 100644 index 76827666..00000000 --- a/docs/description/Drupal_Methods_MethodDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Methods: Method Declaration diff --git a/docs/description/Drupal_NamingConventions_ValidEnumCase.md b/docs/description/Drupal_NamingConventions_ValidEnumCase.md new file mode 100644 index 00000000..5a457fbc --- /dev/null +++ b/docs/description/Drupal_NamingConventions_ValidEnumCase.md @@ -0,0 +1 @@ +Naming Conventions: Valid Enum Case diff --git a/docs/description/Drupal_Strings_UnnecessaryStringConcat.md b/docs/description/Drupal_Strings_UnnecessaryStringConcat.md deleted file mode 100644 index 88b13c23..00000000 --- a/docs/description/Drupal_Strings_UnnecessaryStringConcat.md +++ /dev/null @@ -1 +0,0 @@ -Strings: Unnecessary String Concat diff --git a/docs/description/Drupal_WhiteSpace_Namespace.md b/docs/description/Drupal_WhiteSpace_Namespace.md deleted file mode 100644 index 88bdb9dd..00000000 --- a/docs/description/Drupal_WhiteSpace_Namespace.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Namespace diff --git a/docs/description/MEQP1_Classes_Mysql4.md b/docs/description/MEQP1_Classes_Mysql4.md deleted file mode 100644 index 675a6266..00000000 --- a/docs/description/MEQP1_Classes_Mysql4.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Mysql4 diff --git a/docs/description/MEQP1_Classes_ObjectInstantiation.md b/docs/description/MEQP1_Classes_ObjectInstantiation.md deleted file mode 100644 index 3f7cf77b..00000000 --- a/docs/description/MEQP1_Classes_ObjectInstantiation.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Object Instantiation diff --git a/docs/description/MEQP1_Classes_ResourceModel.md b/docs/description/MEQP1_Classes_ResourceModel.md deleted file mode 100644 index 3f3c6b82..00000000 --- a/docs/description/MEQP1_Classes_ResourceModel.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Resource Model diff --git a/docs/description/MEQP1_CodeAnalysis_EmptyBlock.md b/docs/description/MEQP1_CodeAnalysis_EmptyBlock.md deleted file mode 100644 index a677a987..00000000 --- a/docs/description/MEQP1_CodeAnalysis_EmptyBlock.md +++ /dev/null @@ -1 +0,0 @@ -Code Analysis: Empty Block diff --git a/docs/description/MEQP1_Exceptions_DirectThrow.md b/docs/description/MEQP1_Exceptions_DirectThrow.md deleted file mode 100644 index ae0645b6..00000000 --- a/docs/description/MEQP1_Exceptions_DirectThrow.md +++ /dev/null @@ -1 +0,0 @@ -Exceptions: Direct Throw diff --git a/docs/description/MEQP1_Exceptions_Namespace.md b/docs/description/MEQP1_Exceptions_Namespace.md deleted file mode 100644 index 170a4bc7..00000000 --- a/docs/description/MEQP1_Exceptions_Namespace.md +++ /dev/null @@ -1 +0,0 @@ -Exceptions: Namespace diff --git a/docs/description/MEQP1_PHP_Goto.md b/docs/description/MEQP1_PHP_Goto.md deleted file mode 100644 index 0a8522fb..00000000 --- a/docs/description/MEQP1_PHP_Goto.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Goto diff --git a/docs/description/MEQP1_PHP_PrivateClassMember.md b/docs/description/MEQP1_PHP_PrivateClassMember.md deleted file mode 100644 index 241e050a..00000000 --- a/docs/description/MEQP1_PHP_PrivateClassMember.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Private Class Member diff --git a/docs/description/MEQP1_PHP_Syntax.md b/docs/description/MEQP1_PHP_Syntax.md deleted file mode 100644 index e0a6dd6f..00000000 --- a/docs/description/MEQP1_PHP_Syntax.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Syntax diff --git a/docs/description/MEQP1_PHP_Var.md b/docs/description/MEQP1_PHP_Var.md deleted file mode 100644 index b118716a..00000000 --- a/docs/description/MEQP1_PHP_Var.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Var diff --git a/docs/description/MEQP1_Performance_CollectionCount.md b/docs/description/MEQP1_Performance_CollectionCount.md deleted file mode 100644 index 3dc1a5e6..00000000 --- a/docs/description/MEQP1_Performance_CollectionCount.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Collection Count diff --git a/docs/description/MEQP1_Performance_EmptyCheck.md b/docs/description/MEQP1_Performance_EmptyCheck.md deleted file mode 100644 index 61c54cd5..00000000 --- a/docs/description/MEQP1_Performance_EmptyCheck.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Empty Check diff --git a/docs/description/MEQP1_Performance_InefficientMethods.md b/docs/description/MEQP1_Performance_InefficientMethods.md deleted file mode 100644 index 6f3f07ca..00000000 --- a/docs/description/MEQP1_Performance_InefficientMethods.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Inefficient Methods diff --git a/docs/description/MEQP1_Performance_Loop.md b/docs/description/MEQP1_Performance_Loop.md deleted file mode 100644 index 9e5f0b56..00000000 --- a/docs/description/MEQP1_Performance_Loop.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Loop diff --git a/docs/description/MEQP1_SQL_MissedIndexes.md b/docs/description/MEQP1_SQL_MissedIndexes.md deleted file mode 100644 index bae2124e..00000000 --- a/docs/description/MEQP1_SQL_MissedIndexes.md +++ /dev/null @@ -1 +0,0 @@ -SQL: Missed Indexes diff --git a/docs/description/MEQP1_SQL_RawQuery.md b/docs/description/MEQP1_SQL_RawQuery.md deleted file mode 100644 index 2889c5ef..00000000 --- a/docs/description/MEQP1_SQL_RawQuery.md +++ /dev/null @@ -1 +0,0 @@ -SQL: Raw Query diff --git a/docs/description/MEQP1_SQL_SlowQuery.md b/docs/description/MEQP1_SQL_SlowQuery.md deleted file mode 100644 index d4de0683..00000000 --- a/docs/description/MEQP1_SQL_SlowQuery.md +++ /dev/null @@ -1 +0,0 @@ -SQL: Slow Query diff --git a/docs/description/MEQP1_Security_Acl.md b/docs/description/MEQP1_Security_Acl.md deleted file mode 100644 index 3fe9fd50..00000000 --- a/docs/description/MEQP1_Security_Acl.md +++ /dev/null @@ -1 +0,0 @@ -Security: Acl diff --git a/docs/description/MEQP1_Security_DiscouragedFunction.md b/docs/description/MEQP1_Security_DiscouragedFunction.md deleted file mode 100644 index f15e57d5..00000000 --- a/docs/description/MEQP1_Security_DiscouragedFunction.md +++ /dev/null @@ -1 +0,0 @@ -Security: Discouraged Function diff --git a/docs/description/MEQP1_Security_IncludeFile.md b/docs/description/MEQP1_Security_IncludeFile.md deleted file mode 100644 index f75eb296..00000000 --- a/docs/description/MEQP1_Security_IncludeFile.md +++ /dev/null @@ -1 +0,0 @@ -Security: Include File diff --git a/docs/description/MEQP1_Security_InsecureFunction.md b/docs/description/MEQP1_Security_InsecureFunction.md deleted file mode 100644 index 6fde60c4..00000000 --- a/docs/description/MEQP1_Security_InsecureFunction.md +++ /dev/null @@ -1 +0,0 @@ -Security: Insecure Function diff --git a/docs/description/MEQP1_Security_LanguageConstruct.md b/docs/description/MEQP1_Security_LanguageConstruct.md deleted file mode 100644 index 2a548cb8..00000000 --- a/docs/description/MEQP1_Security_LanguageConstruct.md +++ /dev/null @@ -1 +0,0 @@ -Security: Language Construct diff --git a/docs/description/MEQP1_Security_Superglobal.md b/docs/description/MEQP1_Security_Superglobal.md deleted file mode 100644 index d926a3a7..00000000 --- a/docs/description/MEQP1_Security_Superglobal.md +++ /dev/null @@ -1 +0,0 @@ -Security: Superglobal diff --git a/docs/description/MEQP1_Stdlib_DateTime.md b/docs/description/MEQP1_Stdlib_DateTime.md deleted file mode 100644 index 1d47ae74..00000000 --- a/docs/description/MEQP1_Stdlib_DateTime.md +++ /dev/null @@ -1 +0,0 @@ -Stdlib: Date Time diff --git a/docs/description/MEQP1_Strings_RegEx.md b/docs/description/MEQP1_Strings_RegEx.md deleted file mode 100644 index b99af976..00000000 --- a/docs/description/MEQP1_Strings_RegEx.md +++ /dev/null @@ -1 +0,0 @@ -Strings: Reg Ex diff --git a/docs/description/MEQP1_Strings_StringConcat.md b/docs/description/MEQP1_Strings_StringConcat.md deleted file mode 100644 index 29b0cca3..00000000 --- a/docs/description/MEQP1_Strings_StringConcat.md +++ /dev/null @@ -1 +0,0 @@ -Strings: String Concat diff --git a/docs/description/MEQP1_Strings_StringPosition.md b/docs/description/MEQP1_Strings_StringPosition.md deleted file mode 100644 index f0b63e35..00000000 --- a/docs/description/MEQP1_Strings_StringPosition.md +++ /dev/null @@ -1 +0,0 @@ -Strings: String Position diff --git a/docs/description/MEQP1_Templates_XssTemplate.md b/docs/description/MEQP1_Templates_XssTemplate.md deleted file mode 100644 index 67a6de61..00000000 --- a/docs/description/MEQP1_Templates_XssTemplate.md +++ /dev/null @@ -1 +0,0 @@ -Templates: Xss Template diff --git a/docs/description/Magento2Framework_Header_Copyright.md b/docs/description/Magento2Framework_Header_Copyright.md deleted file mode 100644 index c9ef4555..00000000 --- a/docs/description/Magento2Framework_Header_Copyright.md +++ /dev/null @@ -1 +0,0 @@ -Header: Copyright diff --git a/docs/description/Magento2Framework_Header_CopyrightAnotherExtensionsFiles.md b/docs/description/Magento2Framework_Header_CopyrightAnotherExtensionsFiles.md deleted file mode 100644 index c0b6d4fa..00000000 --- a/docs/description/Magento2Framework_Header_CopyrightAnotherExtensionsFiles.md +++ /dev/null @@ -1 +0,0 @@ -Header: Copyright Another Extensions Files diff --git a/docs/description/Magento2Framework_Header_CopyrightGraphQL.md b/docs/description/Magento2Framework_Header_CopyrightGraphQL.md deleted file mode 100644 index 8eeb485c..00000000 --- a/docs/description/Magento2Framework_Header_CopyrightGraphQL.md +++ /dev/null @@ -1 +0,0 @@ -Header: Copyright Graph QL diff --git a/docs/description/Magento2Framework_Header_License.md b/docs/description/Magento2Framework_Header_License.md deleted file mode 100644 index eae2760e..00000000 --- a/docs/description/Magento2Framework_Header_License.md +++ /dev/null @@ -1 +0,0 @@ -Header: License diff --git a/docs/description/Magento2_Annotation_MethodAnnotationStructure.md b/docs/description/Magento2_Annotation_MethodAnnotationStructure.md deleted file mode 100644 index 59e522a7..00000000 --- a/docs/description/Magento2_Annotation_MethodAnnotationStructure.md +++ /dev/null @@ -1 +0,0 @@ -Annotation: Method Annotation Structure diff --git a/docs/description/Magento2_Annotation_MethodArguments.md b/docs/description/Magento2_Annotation_MethodArguments.md deleted file mode 100644 index 136f2f49..00000000 --- a/docs/description/Magento2_Annotation_MethodArguments.md +++ /dev/null @@ -1 +0,0 @@ -Annotation: Method Arguments diff --git a/docs/description/Magento2_Classes_AbstractApi.md b/docs/description/Magento2_Classes_AbstractApi.md deleted file mode 100644 index 42daf0d0..00000000 --- a/docs/description/Magento2_Classes_AbstractApi.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Abstract Api diff --git a/docs/description/Magento2_Classes_DiscouragedDependencies.md b/docs/description/Magento2_Classes_DiscouragedDependencies.md deleted file mode 100644 index 3b67e4f6..00000000 --- a/docs/description/Magento2_Classes_DiscouragedDependencies.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Discouraged Dependencies diff --git a/docs/description/Magento2_CodeAnalysis_EmptyBlock.md b/docs/description/Magento2_CodeAnalysis_EmptyBlock.md deleted file mode 100644 index a677a987..00000000 --- a/docs/description/Magento2_CodeAnalysis_EmptyBlock.md +++ /dev/null @@ -1 +0,0 @@ -Code Analysis: Empty Block diff --git a/docs/description/Magento2_Commenting_ClassAndInterfacePHPDocFormatting.md b/docs/description/Magento2_Commenting_ClassAndInterfacePHPDocFormatting.md deleted file mode 100644 index d2e74cd9..00000000 --- a/docs/description/Magento2_Commenting_ClassAndInterfacePHPDocFormatting.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Class And Interface PHP Doc Formatting diff --git a/docs/description/Magento2_Commenting_ClassPropertyPHPDocFormatting.md b/docs/description/Magento2_Commenting_ClassPropertyPHPDocFormatting.md deleted file mode 100644 index aa13b6b0..00000000 --- a/docs/description/Magento2_Commenting_ClassPropertyPHPDocFormatting.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Class Property PHP Doc Formatting diff --git a/docs/description/Magento2_Commenting_ConstantsPHPDocFormatting.md b/docs/description/Magento2_Commenting_ConstantsPHPDocFormatting.md deleted file mode 100644 index f6c7883c..00000000 --- a/docs/description/Magento2_Commenting_ConstantsPHPDocFormatting.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Constants PHP Doc Formatting diff --git a/docs/description/Magento2_Exceptions_DirectThrow.md b/docs/description/Magento2_Exceptions_DirectThrow.md deleted file mode 100644 index ae0645b6..00000000 --- a/docs/description/Magento2_Exceptions_DirectThrow.md +++ /dev/null @@ -1 +0,0 @@ -Exceptions: Direct Throw diff --git a/docs/description/Magento2_Exceptions_ThrowCatch.md b/docs/description/Magento2_Exceptions_ThrowCatch.md deleted file mode 100644 index 1d546ed0..00000000 --- a/docs/description/Magento2_Exceptions_ThrowCatch.md +++ /dev/null @@ -1 +0,0 @@ -Exceptions: Throw Catch diff --git a/docs/description/Magento2_Exceptions_TryProcessSystemResources.md b/docs/description/Magento2_Exceptions_TryProcessSystemResources.md deleted file mode 100644 index c019bb75..00000000 --- a/docs/description/Magento2_Exceptions_TryProcessSystemResources.md +++ /dev/null @@ -1 +0,0 @@ -Exceptions: Try Process System Resources diff --git a/docs/description/Magento2_Functions_DiscouragedFunction.md b/docs/description/Magento2_Functions_DiscouragedFunction.md deleted file mode 100644 index 6b03ce7d..00000000 --- a/docs/description/Magento2_Functions_DiscouragedFunction.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Discouraged Function diff --git a/docs/description/Magento2_Functions_FunctionsDeprecatedWithoutArgument.md b/docs/description/Magento2_Functions_FunctionsDeprecatedWithoutArgument.md deleted file mode 100644 index a93ca0fb..00000000 --- a/docs/description/Magento2_Functions_FunctionsDeprecatedWithoutArgument.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Functions Deprecated Without Argument diff --git a/docs/description/Magento2_Functions_StaticFunction.md b/docs/description/Magento2_Functions_StaticFunction.md deleted file mode 100644 index 298b7f82..00000000 --- a/docs/description/Magento2_Functions_StaticFunction.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Static Function diff --git a/docs/description/Magento2_GraphQL_AbstractGraphQL.md b/docs/description/Magento2_GraphQL_AbstractGraphQL.md deleted file mode 100644 index 97e3b6d8..00000000 --- a/docs/description/Magento2_GraphQL_AbstractGraphQL.md +++ /dev/null @@ -1 +0,0 @@ -Graph QL: Abstract Graph QL diff --git a/docs/description/Magento2_GraphQL_ValidArgumentName.md b/docs/description/Magento2_GraphQL_ValidArgumentName.md deleted file mode 100644 index eb57cf08..00000000 --- a/docs/description/Magento2_GraphQL_ValidArgumentName.md +++ /dev/null @@ -1 +0,0 @@ -Graph QL: Valid Argument Name diff --git a/docs/description/Magento2_GraphQL_ValidEnumValue.md b/docs/description/Magento2_GraphQL_ValidEnumValue.md deleted file mode 100644 index 301261a0..00000000 --- a/docs/description/Magento2_GraphQL_ValidEnumValue.md +++ /dev/null @@ -1 +0,0 @@ -Graph QL: Valid Enum Value diff --git a/docs/description/Magento2_GraphQL_ValidFieldName.md b/docs/description/Magento2_GraphQL_ValidFieldName.md deleted file mode 100644 index f0716c9d..00000000 --- a/docs/description/Magento2_GraphQL_ValidFieldName.md +++ /dev/null @@ -1 +0,0 @@ -Graph QL: Valid Field Name diff --git a/docs/description/Magento2_GraphQL_ValidTopLevelFieldName.md b/docs/description/Magento2_GraphQL_ValidTopLevelFieldName.md deleted file mode 100644 index 2c9e595f..00000000 --- a/docs/description/Magento2_GraphQL_ValidTopLevelFieldName.md +++ /dev/null @@ -1 +0,0 @@ -Graph QL: Valid Top Level Field Name diff --git a/docs/description/Magento2_GraphQL_ValidTypeName.md b/docs/description/Magento2_GraphQL_ValidTypeName.md deleted file mode 100644 index 9e0292ee..00000000 --- a/docs/description/Magento2_GraphQL_ValidTypeName.md +++ /dev/null @@ -1 +0,0 @@ -Graph QL: Valid Type Name diff --git a/docs/description/Magento2_Html_HtmlBinding.md b/docs/description/Magento2_Html_HtmlBinding.md deleted file mode 100644 index 96dafd15..00000000 --- a/docs/description/Magento2_Html_HtmlBinding.md +++ /dev/null @@ -1 +0,0 @@ -Html: Html Binding diff --git a/docs/description/Magento2_Html_HtmlClosingVoidTags.md b/docs/description/Magento2_Html_HtmlClosingVoidTags.md deleted file mode 100644 index 7e7507c3..00000000 --- a/docs/description/Magento2_Html_HtmlClosingVoidTags.md +++ /dev/null @@ -1 +0,0 @@ -Html: Html Closing Void Tags diff --git a/docs/description/Magento2_Html_HtmlCollapsibleAttribute.md b/docs/description/Magento2_Html_HtmlCollapsibleAttribute.md deleted file mode 100644 index 78755766..00000000 --- a/docs/description/Magento2_Html_HtmlCollapsibleAttribute.md +++ /dev/null @@ -1 +0,0 @@ -Html: Html Collapsible Attribute diff --git a/docs/description/Magento2_Html_HtmlDirective.md b/docs/description/Magento2_Html_HtmlDirective.md deleted file mode 100644 index 41e6f84e..00000000 --- a/docs/description/Magento2_Html_HtmlDirective.md +++ /dev/null @@ -1 +0,0 @@ -Html: Html Directive diff --git a/docs/description/Magento2_Html_HtmlSelfClosingTags.md b/docs/description/Magento2_Html_HtmlSelfClosingTags.md deleted file mode 100644 index c9e2583d..00000000 --- a/docs/description/Magento2_Html_HtmlSelfClosingTags.md +++ /dev/null @@ -1 +0,0 @@ -Html: Html Self Closing Tags diff --git a/docs/description/Magento2_Legacy_AbstractBlock.md b/docs/description/Magento2_Legacy_AbstractBlock.md deleted file mode 100644 index 79640d4e..00000000 --- a/docs/description/Magento2_Legacy_AbstractBlock.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Abstract Block diff --git a/docs/description/Magento2_Legacy_ClassReferencesInConfigurationFiles.md b/docs/description/Magento2_Legacy_ClassReferencesInConfigurationFiles.md deleted file mode 100644 index 79ed9c78..00000000 --- a/docs/description/Magento2_Legacy_ClassReferencesInConfigurationFiles.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Class References In Configuration Files diff --git a/docs/description/Magento2_Legacy_DiConfig.md b/docs/description/Magento2_Legacy_DiConfig.md deleted file mode 100644 index 5ee538dc..00000000 --- a/docs/description/Magento2_Legacy_DiConfig.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Di Config diff --git a/docs/description/Magento2_Legacy_EmailTemplate.md b/docs/description/Magento2_Legacy_EmailTemplate.md deleted file mode 100644 index ccaaa190..00000000 --- a/docs/description/Magento2_Legacy_EmailTemplate.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Email Template diff --git a/docs/description/Magento2_Legacy_EscapeMethodsOnBlockClass.md b/docs/description/Magento2_Legacy_EscapeMethodsOnBlockClass.md deleted file mode 100644 index ec3793de..00000000 --- a/docs/description/Magento2_Legacy_EscapeMethodsOnBlockClass.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Escape Methods On Block Class diff --git a/docs/description/Magento2_Legacy_InstallUpgrade.md b/docs/description/Magento2_Legacy_InstallUpgrade.md deleted file mode 100644 index a493229c..00000000 --- a/docs/description/Magento2_Legacy_InstallUpgrade.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Install Upgrade diff --git a/docs/description/Magento2_Legacy_Layout.md b/docs/description/Magento2_Legacy_Layout.md deleted file mode 100644 index 7c440d49..00000000 --- a/docs/description/Magento2_Legacy_Layout.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Layout diff --git a/docs/description/Magento2_Legacy_MageEntity.md b/docs/description/Magento2_Legacy_MageEntity.md deleted file mode 100644 index 18c07bf8..00000000 --- a/docs/description/Magento2_Legacy_MageEntity.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Mage Entity diff --git a/docs/description/Magento2_Legacy_ModuleXML.md b/docs/description/Magento2_Legacy_ModuleXML.md deleted file mode 100644 index d47897bf..00000000 --- a/docs/description/Magento2_Legacy_ModuleXML.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Module XML diff --git a/docs/description/Magento2_Legacy_ObsoleteAcl.md b/docs/description/Magento2_Legacy_ObsoleteAcl.md deleted file mode 100644 index 8327dfc5..00000000 --- a/docs/description/Magento2_Legacy_ObsoleteAcl.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Obsolete Acl diff --git a/docs/description/Magento2_Legacy_ObsoleteConfigNodes.md b/docs/description/Magento2_Legacy_ObsoleteConfigNodes.md deleted file mode 100644 index b01e1d49..00000000 --- a/docs/description/Magento2_Legacy_ObsoleteConfigNodes.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Obsolete Config Nodes diff --git a/docs/description/Magento2_Legacy_ObsoleteConnection.md b/docs/description/Magento2_Legacy_ObsoleteConnection.md deleted file mode 100644 index 12c80282..00000000 --- a/docs/description/Magento2_Legacy_ObsoleteConnection.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Obsolete Connection diff --git a/docs/description/Magento2_Legacy_ObsoleteMenu.md b/docs/description/Magento2_Legacy_ObsoleteMenu.md deleted file mode 100644 index c7293d60..00000000 --- a/docs/description/Magento2_Legacy_ObsoleteMenu.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Obsolete Menu diff --git a/docs/description/Magento2_Legacy_ObsoleteSystemConfiguration.md b/docs/description/Magento2_Legacy_ObsoleteSystemConfiguration.md deleted file mode 100644 index a117db0c..00000000 --- a/docs/description/Magento2_Legacy_ObsoleteSystemConfiguration.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Obsolete System Configuration diff --git a/docs/description/Magento2_Legacy_PhtmlTemplate.md b/docs/description/Magento2_Legacy_PhtmlTemplate.md deleted file mode 100644 index 72d9baeb..00000000 --- a/docs/description/Magento2_Legacy_PhtmlTemplate.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Phtml Template diff --git a/docs/description/Magento2_Legacy_RestrictedCode.md b/docs/description/Magento2_Legacy_RestrictedCode.md deleted file mode 100644 index a7ddb234..00000000 --- a/docs/description/Magento2_Legacy_RestrictedCode.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Restricted Code diff --git a/docs/description/Magento2_Legacy_TableName.md b/docs/description/Magento2_Legacy_TableName.md deleted file mode 100644 index 2ca814da..00000000 --- a/docs/description/Magento2_Legacy_TableName.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Table Name diff --git a/docs/description/Magento2_Legacy_WidgetXML.md b/docs/description/Magento2_Legacy_WidgetXML.md deleted file mode 100644 index 000a45c5..00000000 --- a/docs/description/Magento2_Legacy_WidgetXML.md +++ /dev/null @@ -1 +0,0 @@ -Legacy: Widget XML diff --git a/docs/description/Magento2_Less_AvoidId.md b/docs/description/Magento2_Less_AvoidId.md deleted file mode 100644 index 1fe2c6d2..00000000 --- a/docs/description/Magento2_Less_AvoidId.md +++ /dev/null @@ -1 +0,0 @@ -Less: Avoid Id diff --git a/docs/description/Magento2_Less_BracesFormatting.md b/docs/description/Magento2_Less_BracesFormatting.md deleted file mode 100644 index 92814dd1..00000000 --- a/docs/description/Magento2_Less_BracesFormatting.md +++ /dev/null @@ -1 +0,0 @@ -Less: Braces Formatting diff --git a/docs/description/Magento2_Less_ClassNaming.md b/docs/description/Magento2_Less_ClassNaming.md deleted file mode 100644 index 763079b6..00000000 --- a/docs/description/Magento2_Less_ClassNaming.md +++ /dev/null @@ -1 +0,0 @@ -Less: Class Naming diff --git a/docs/description/Magento2_Less_ColonSpacing.md b/docs/description/Magento2_Less_ColonSpacing.md deleted file mode 100644 index d57d1405..00000000 --- a/docs/description/Magento2_Less_ColonSpacing.md +++ /dev/null @@ -1 +0,0 @@ -Less: Colon Spacing diff --git a/docs/description/Magento2_Less_ColourDefinition.md b/docs/description/Magento2_Less_ColourDefinition.md deleted file mode 100644 index b21f7a67..00000000 --- a/docs/description/Magento2_Less_ColourDefinition.md +++ /dev/null @@ -1 +0,0 @@ -Less: Colour Definition diff --git a/docs/description/Magento2_Less_CombinatorIndentation.md b/docs/description/Magento2_Less_CombinatorIndentation.md deleted file mode 100644 index 1da49443..00000000 --- a/docs/description/Magento2_Less_CombinatorIndentation.md +++ /dev/null @@ -1 +0,0 @@ -Less: Combinator Indentation diff --git a/docs/description/Magento2_Less_CommentLevels.md b/docs/description/Magento2_Less_CommentLevels.md deleted file mode 100644 index 1bbc0e8d..00000000 --- a/docs/description/Magento2_Less_CommentLevels.md +++ /dev/null @@ -1 +0,0 @@ -Less: Comment Levels diff --git a/docs/description/Magento2_Less_ImportantProperty.md b/docs/description/Magento2_Less_ImportantProperty.md deleted file mode 100644 index 199a92b1..00000000 --- a/docs/description/Magento2_Less_ImportantProperty.md +++ /dev/null @@ -1 +0,0 @@ -Less: Important Property diff --git a/docs/description/Magento2_Less_Indentation.md b/docs/description/Magento2_Less_Indentation.md deleted file mode 100644 index e5539d2b..00000000 --- a/docs/description/Magento2_Less_Indentation.md +++ /dev/null @@ -1 +0,0 @@ -Less: Indentation diff --git a/docs/description/Magento2_Less_PropertiesLineBreak.md b/docs/description/Magento2_Less_PropertiesLineBreak.md deleted file mode 100644 index 9922aca9..00000000 --- a/docs/description/Magento2_Less_PropertiesLineBreak.md +++ /dev/null @@ -1 +0,0 @@ -Less: Properties Line Break diff --git a/docs/description/Magento2_Less_PropertiesSorting.md b/docs/description/Magento2_Less_PropertiesSorting.md deleted file mode 100644 index e3a73b45..00000000 --- a/docs/description/Magento2_Less_PropertiesSorting.md +++ /dev/null @@ -1 +0,0 @@ -Less: Properties Sorting diff --git a/docs/description/Magento2_Less_Quotes.md b/docs/description/Magento2_Less_Quotes.md deleted file mode 100644 index 2229196d..00000000 --- a/docs/description/Magento2_Less_Quotes.md +++ /dev/null @@ -1 +0,0 @@ -Less: Quotes diff --git a/docs/description/Magento2_Less_SelectorDelimiter.md b/docs/description/Magento2_Less_SelectorDelimiter.md deleted file mode 100644 index 6fa6a31e..00000000 --- a/docs/description/Magento2_Less_SelectorDelimiter.md +++ /dev/null @@ -1 +0,0 @@ -Less: Selector Delimiter diff --git a/docs/description/Magento2_Less_SemicolonSpacing.md b/docs/description/Magento2_Less_SemicolonSpacing.md deleted file mode 100644 index 65f708ed..00000000 --- a/docs/description/Magento2_Less_SemicolonSpacing.md +++ /dev/null @@ -1 +0,0 @@ -Less: Semicolon Spacing diff --git a/docs/description/Magento2_Less_TypeSelectorConcatenation.md b/docs/description/Magento2_Less_TypeSelectorConcatenation.md deleted file mode 100644 index 0a0b1ce4..00000000 --- a/docs/description/Magento2_Less_TypeSelectorConcatenation.md +++ /dev/null @@ -1 +0,0 @@ -Less: Type Selector Concatenation diff --git a/docs/description/Magento2_Less_TypeSelectors.md b/docs/description/Magento2_Less_TypeSelectors.md deleted file mode 100644 index deac00d3..00000000 --- a/docs/description/Magento2_Less_TypeSelectors.md +++ /dev/null @@ -1 +0,0 @@ -Less: Type Selectors diff --git a/docs/description/Magento2_Less_Variables.md b/docs/description/Magento2_Less_Variables.md deleted file mode 100644 index 630b8ded..00000000 --- a/docs/description/Magento2_Less_Variables.md +++ /dev/null @@ -1 +0,0 @@ -Less: Variables diff --git a/docs/description/Magento2_Less_ZeroUnits.md b/docs/description/Magento2_Less_ZeroUnits.md deleted file mode 100644 index ddbf8db9..00000000 --- a/docs/description/Magento2_Less_ZeroUnits.md +++ /dev/null @@ -1 +0,0 @@ -Less: Zero Units diff --git a/docs/description/Magento2_Methods_DeprecatedModelMethod.md b/docs/description/Magento2_Methods_DeprecatedModelMethod.md deleted file mode 100644 index d2020c26..00000000 --- a/docs/description/Magento2_Methods_DeprecatedModelMethod.md +++ /dev/null @@ -1 +0,0 @@ -Methods: Deprecated Model Method diff --git a/docs/description/Magento2_Namespaces_ImportsFromTestNamespace.md b/docs/description/Magento2_Namespaces_ImportsFromTestNamespace.md deleted file mode 100644 index 1919d00c..00000000 --- a/docs/description/Magento2_Namespaces_ImportsFromTestNamespace.md +++ /dev/null @@ -1 +0,0 @@ -Namespaces: Imports From Test Namespace diff --git a/docs/description/Magento2_NamingConvention_InterfaceName.md b/docs/description/Magento2_NamingConvention_InterfaceName.md deleted file mode 100644 index 1fbdb84c..00000000 --- a/docs/description/Magento2_NamingConvention_InterfaceName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Convention: Interface Name diff --git a/docs/description/Magento2_NamingConvention_ReservedWords.md b/docs/description/Magento2_NamingConvention_ReservedWords.md deleted file mode 100644 index 88daaf4c..00000000 --- a/docs/description/Magento2_NamingConvention_ReservedWords.md +++ /dev/null @@ -1 +0,0 @@ -Naming Convention: Reserved Words diff --git a/docs/description/Magento2_PHP_ArrayAutovivification.md b/docs/description/Magento2_PHP_ArrayAutovivification.md deleted file mode 100644 index 91b6dc42..00000000 --- a/docs/description/Magento2_PHP_ArrayAutovivification.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Array Autovivification diff --git a/docs/description/Magento2_PHP_AutogeneratedClassNotInConstructor.md b/docs/description/Magento2_PHP_AutogeneratedClassNotInConstructor.md deleted file mode 100644 index 1735a605..00000000 --- a/docs/description/Magento2_PHP_AutogeneratedClassNotInConstructor.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Autogenerated Class Not In Constructor diff --git a/docs/description/Magento2_PHP_FinalImplementation.md b/docs/description/Magento2_PHP_FinalImplementation.md deleted file mode 100644 index 895eaf9a..00000000 --- a/docs/description/Magento2_PHP_FinalImplementation.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Final Implementation diff --git a/docs/description/Magento2_PHP_Goto.md b/docs/description/Magento2_PHP_Goto.md deleted file mode 100644 index 0a8522fb..00000000 --- a/docs/description/Magento2_PHP_Goto.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Goto diff --git a/docs/description/Magento2_PHP_LiteralNamespaces.md b/docs/description/Magento2_PHP_LiteralNamespaces.md deleted file mode 100644 index 0aa1bbc9..00000000 --- a/docs/description/Magento2_PHP_LiteralNamespaces.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Literal Namespaces diff --git a/docs/description/Magento2_PHP_ReturnValueCheck.md b/docs/description/Magento2_PHP_ReturnValueCheck.md deleted file mode 100644 index 99816282..00000000 --- a/docs/description/Magento2_PHP_ReturnValueCheck.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Return Value Check diff --git a/docs/description/Magento2_PHP_ShortEchoSyntax.md b/docs/description/Magento2_PHP_ShortEchoSyntax.md deleted file mode 100644 index b2bfdba9..00000000 --- a/docs/description/Magento2_PHP_ShortEchoSyntax.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Short Echo Syntax diff --git a/docs/description/Magento2_PHP_Var.md b/docs/description/Magento2_PHP_Var.md deleted file mode 100644 index b118716a..00000000 --- a/docs/description/Magento2_PHP_Var.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Var diff --git a/docs/description/Magento2_Performance_ForeachArrayMerge.md b/docs/description/Magento2_Performance_ForeachArrayMerge.md deleted file mode 100644 index 50b790d5..00000000 --- a/docs/description/Magento2_Performance_ForeachArrayMerge.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Foreach Array Merge diff --git a/docs/description/Magento2_SQL_RawQuery.md b/docs/description/Magento2_SQL_RawQuery.md deleted file mode 100644 index 2889c5ef..00000000 --- a/docs/description/Magento2_SQL_RawQuery.md +++ /dev/null @@ -1 +0,0 @@ -SQL: Raw Query diff --git a/docs/description/Magento2_Security_IncludeFile.md b/docs/description/Magento2_Security_IncludeFile.md deleted file mode 100644 index f75eb296..00000000 --- a/docs/description/Magento2_Security_IncludeFile.md +++ /dev/null @@ -1 +0,0 @@ -Security: Include File diff --git a/docs/description/Magento2_Security_InsecureFunction.md b/docs/description/Magento2_Security_InsecureFunction.md deleted file mode 100644 index 6fde60c4..00000000 --- a/docs/description/Magento2_Security_InsecureFunction.md +++ /dev/null @@ -1 +0,0 @@ -Security: Insecure Function diff --git a/docs/description/Magento2_Security_LanguageConstruct.md b/docs/description/Magento2_Security_LanguageConstruct.md deleted file mode 100644 index 2a548cb8..00000000 --- a/docs/description/Magento2_Security_LanguageConstruct.md +++ /dev/null @@ -1 +0,0 @@ -Security: Language Construct diff --git a/docs/description/Magento2_Security_Superglobal.md b/docs/description/Magento2_Security_Superglobal.md deleted file mode 100644 index d926a3a7..00000000 --- a/docs/description/Magento2_Security_Superglobal.md +++ /dev/null @@ -1 +0,0 @@ -Security: Superglobal diff --git a/docs/description/Magento2_Security_XssTemplate.md b/docs/description/Magento2_Security_XssTemplate.md deleted file mode 100644 index b5b8c612..00000000 --- a/docs/description/Magento2_Security_XssTemplate.md +++ /dev/null @@ -1 +0,0 @@ -Security: Xss Template diff --git a/docs/description/Magento2_Strings_ExecutableRegEx.md b/docs/description/Magento2_Strings_ExecutableRegEx.md deleted file mode 100644 index 3b41be9a..00000000 --- a/docs/description/Magento2_Strings_ExecutableRegEx.md +++ /dev/null @@ -1 +0,0 @@ -Strings: Executable Reg Ex diff --git a/docs/description/Magento2_Strings_StringConcat.md b/docs/description/Magento2_Strings_StringConcat.md deleted file mode 100644 index 29b0cca3..00000000 --- a/docs/description/Magento2_Strings_StringConcat.md +++ /dev/null @@ -1 +0,0 @@ -Strings: String Concat diff --git a/docs/description/Magento2_Templates_ObjectManager.md b/docs/description/Magento2_Templates_ObjectManager.md deleted file mode 100644 index a05ff38e..00000000 --- a/docs/description/Magento2_Templates_ObjectManager.md +++ /dev/null @@ -1 +0,0 @@ -Templates: Object Manager diff --git a/docs/description/Magento2_Templates_ThisInTemplate.md b/docs/description/Magento2_Templates_ThisInTemplate.md deleted file mode 100644 index acf30fbf..00000000 --- a/docs/description/Magento2_Templates_ThisInTemplate.md +++ /dev/null @@ -1 +0,0 @@ -Templates: This In Template diff --git a/docs/description/Magento2_Translation_ConstantUsage.md b/docs/description/Magento2_Translation_ConstantUsage.md deleted file mode 100644 index 3a22cf8f..00000000 --- a/docs/description/Magento2_Translation_ConstantUsage.md +++ /dev/null @@ -1 +0,0 @@ -Translation: Constant Usage diff --git a/docs/description/Magento2_Whitespace_MultipleEmptyLines.md b/docs/description/Magento2_Whitespace_MultipleEmptyLines.md deleted file mode 100644 index bf4a55b5..00000000 --- a/docs/description/Magento2_Whitespace_MultipleEmptyLines.md +++ /dev/null @@ -1 +0,0 @@ -Whitespace: Multiple Empty Lines diff --git a/docs/description/PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods.md b/docs/description/PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods.md deleted file mode 100644 index 9927edcf..00000000 --- a/docs/description/PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): Forbidden Abstract Private Methods diff --git a/docs/description/PHPCompatibility_Classes_ForbiddenClassNameUnderscore.md b/docs/description/PHPCompatibility_Classes_ForbiddenClassNameUnderscore.md new file mode 100644 index 00000000..68265e4f --- /dev/null +++ b/docs/description/PHPCompatibility_Classes_ForbiddenClassNameUnderscore.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Classes): Forbidden Class Name Underscore diff --git a/docs/description/PHPCompatibility_Classes_NewAbstractProperties.md b/docs/description/PHPCompatibility_Classes_NewAbstractProperties.md new file mode 100644 index 00000000..79f2a5c9 --- /dev/null +++ b/docs/description/PHPCompatibility_Classes_NewAbstractProperties.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Classes): New Abstract Properties diff --git a/docs/description/PHPCompatibility_Classes_NewFinalProperties.md b/docs/description/PHPCompatibility_Classes_NewFinalProperties.md new file mode 100644 index 00000000..cf86b97d --- /dev/null +++ b/docs/description/PHPCompatibility_Classes_NewFinalProperties.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Classes): New Final Properties diff --git a/docs/description/PHPCompatibility_Classes_NewStaticAvizProperties.md b/docs/description/PHPCompatibility_Classes_NewStaticAvizProperties.md new file mode 100644 index 00000000..93cdffa1 --- /dev/null +++ b/docs/description/PHPCompatibility_Classes_NewStaticAvizProperties.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Classes): New Static Aviz Properties diff --git a/docs/description/PHPCompatibility_Classes_NewTypedConstants.md b/docs/description/PHPCompatibility_Classes_NewTypedConstants.md new file mode 100644 index 00000000..c5c13dbe --- /dev/null +++ b/docs/description/PHPCompatibility_Classes_NewTypedConstants.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Classes): New Typed Constants diff --git a/docs/description/PHPCompatibility_Generators_NewYieldFromComment.md b/docs/description/PHPCompatibility_Generators_NewYieldFromComment.md new file mode 100644 index 00000000..d7e21237 --- /dev/null +++ b/docs/description/PHPCompatibility_Generators_NewYieldFromComment.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Generators): New Yield From Comment diff --git a/docs/description/PHPCompatibility_Interfaces_NewPropertiesInInterfaces.md b/docs/description/PHPCompatibility_Interfaces_NewPropertiesInInterfaces.md new file mode 100644 index 00000000..2f4786f3 --- /dev/null +++ b/docs/description/PHPCompatibility_Interfaces_NewPropertiesInInterfaces.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Interfaces): New Properties In Interfaces diff --git a/docs/description/PHPCompatibility_Keywords_ForbiddenClassAlias.md b/docs/description/PHPCompatibility_Keywords_ForbiddenClassAlias.md new file mode 100644 index 00000000..905a4209 --- /dev/null +++ b/docs/description/PHPCompatibility_Keywords_ForbiddenClassAlias.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Keywords): Forbidden Class Alias diff --git a/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsDeclared.md b/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsDeclared.md deleted file mode 100644 index 5ab769fb..00000000 --- a/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsDeclared.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Keywords): Forbidden Names As Declared diff --git a/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions.md b/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions.md deleted file mode 100644 index 1124994b..00000000 --- a/docs/description/PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Keywords): Forbidden Names As Invoked Functions diff --git a/docs/description/PHPCompatibility_LanguageConstructs_RemovedLanguageConstructs.md b/docs/description/PHPCompatibility_LanguageConstructs_RemovedLanguageConstructs.md new file mode 100644 index 00000000..95631b79 --- /dev/null +++ b/docs/description/PHPCompatibility_LanguageConstructs_RemovedLanguageConstructs.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Language Constructs): Removed Language Constructs diff --git a/docs/description/PHPCompatibility_Miscellaneous_ValidIntegers.md b/docs/description/PHPCompatibility_Miscellaneous_ValidIntegers.md deleted file mode 100644 index c77f27ae..00000000 --- a/docs/description/PHPCompatibility_Miscellaneous_ValidIntegers.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Miscellaneous): Valid Integers diff --git a/docs/description/PHPCompatibility_ParameterValues_NewClassAliasInternalClass.md b/docs/description/PHPCompatibility_ParameterValues_NewClassAliasInternalClass.md new file mode 100644 index 00000000..e60a2cfe --- /dev/null +++ b/docs/description/PHPCompatibility_ParameterValues_NewClassAliasInternalClass.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Parameter Values): New Class Alias Internal Class diff --git a/docs/description/PHPCompatibility_ParameterValues_NewExitAsFunctionCall.md b/docs/description/PHPCompatibility_ParameterValues_NewExitAsFunctionCall.md new file mode 100644 index 00000000..ee540001 --- /dev/null +++ b/docs/description/PHPCompatibility_ParameterValues_NewExitAsFunctionCall.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Parameter Values): New Exit As Function Call diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedDbaKeySplitNullFalse.md b/docs/description/PHPCompatibility_ParameterValues_RemovedDbaKeySplitNullFalse.md new file mode 100644 index 00000000..5aadba41 --- /dev/null +++ b/docs/description/PHPCompatibility_ParameterValues_RemovedDbaKeySplitNullFalse.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Parameter Values): Removed Dba Key Split Null False diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedProprietaryCSVEscaping.md b/docs/description/PHPCompatibility_ParameterValues_RemovedProprietaryCSVEscaping.md new file mode 100644 index 00000000..7fac7240 --- /dev/null +++ b/docs/description/PHPCompatibility_ParameterValues_RemovedProprietaryCSVEscaping.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Parameter Values): Removed Proprietary CSV Escaping diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedTriggerErrorLevel.md b/docs/description/PHPCompatibility_ParameterValues_RemovedTriggerErrorLevel.md new file mode 100644 index 00000000..e50c8521 --- /dev/null +++ b/docs/description/PHPCompatibility_ParameterValues_RemovedTriggerErrorLevel.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Parameter Values): Removed Trigger Error Level diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedXmlSetHandlerCallbackUnset.md b/docs/description/PHPCompatibility_ParameterValues_RemovedXmlSetHandlerCallbackUnset.md new file mode 100644 index 00000000..cccec6d7 --- /dev/null +++ b/docs/description/PHPCompatibility_ParameterValues_RemovedXmlSetHandlerCallbackUnset.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Parameter Values): Removed Xml Set Handler Callback Unset diff --git a/docs/description/PHPCompatibility_Syntax_NewClassMemberAccessWithoutParentheses.md b/docs/description/PHPCompatibility_Syntax_NewClassMemberAccessWithoutParentheses.md new file mode 100644 index 00000000..731b8206 --- /dev/null +++ b/docs/description/PHPCompatibility_Syntax_NewClassMemberAccessWithoutParentheses.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Syntax): New Class Member Access Without Parentheses diff --git a/docs/description/PHPCompatibility_Syntax_NewDynamicClassConstantFetch.md b/docs/description/PHPCompatibility_Syntax_NewDynamicClassConstantFetch.md new file mode 100644 index 00000000..5d65951c --- /dev/null +++ b/docs/description/PHPCompatibility_Syntax_NewDynamicClassConstantFetch.md @@ -0,0 +1 @@ +PHP Compatibility related issue (Syntax): New Dynamic Class Constant Fetch diff --git a/docs/description/PHPCompatibility_Upgrade_LowPHPCS.md b/docs/description/PHPCompatibility_Upgrade_LowPHPCS.md deleted file mode 100644 index e0707dfb..00000000 --- a/docs/description/PHPCompatibility_Upgrade_LowPHPCS.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Upgrade): Low PHPCS diff --git a/docs/description/Security_BadFunctions_Asserts.md b/docs/description/Security_BadFunctions_Asserts.md deleted file mode 100644 index ebff70c6..00000000 --- a/docs/description/Security_BadFunctions_Asserts.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Asserts diff --git a/docs/description/Security_BadFunctions_Backticks.md b/docs/description/Security_BadFunctions_Backticks.md deleted file mode 100644 index f39bde28..00000000 --- a/docs/description/Security_BadFunctions_Backticks.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Backticks diff --git a/docs/description/Security_BadFunctions_CallbackFunctions.md b/docs/description/Security_BadFunctions_CallbackFunctions.md deleted file mode 100644 index a9bbed55..00000000 --- a/docs/description/Security_BadFunctions_CallbackFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Callback Functions diff --git a/docs/description/Security_BadFunctions_CryptoFunctions.md b/docs/description/Security_BadFunctions_CryptoFunctions.md deleted file mode 100644 index 190bac3f..00000000 --- a/docs/description/Security_BadFunctions_CryptoFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Crypto Functions diff --git a/docs/description/Security_BadFunctions_EasyRFI.md b/docs/description/Security_BadFunctions_EasyRFI.md deleted file mode 100644 index 792b99e2..00000000 --- a/docs/description/Security_BadFunctions_EasyRFI.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Easy RFI diff --git a/docs/description/Security_BadFunctions_EasyXSS.md b/docs/description/Security_BadFunctions_EasyXSS.md deleted file mode 100644 index a6f835de..00000000 --- a/docs/description/Security_BadFunctions_EasyXSS.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Easy XSS diff --git a/docs/description/Security_BadFunctions_ErrorHandling.md b/docs/description/Security_BadFunctions_ErrorHandling.md deleted file mode 100644 index cae79be9..00000000 --- a/docs/description/Security_BadFunctions_ErrorHandling.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Error Handling diff --git a/docs/description/Security_BadFunctions_FilesystemFunctions.md b/docs/description/Security_BadFunctions_FilesystemFunctions.md deleted file mode 100644 index cf4e7ac4..00000000 --- a/docs/description/Security_BadFunctions_FilesystemFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Filesystem Functions diff --git a/docs/description/Security_BadFunctions_FringeFunctions.md b/docs/description/Security_BadFunctions_FringeFunctions.md deleted file mode 100644 index 26f88932..00000000 --- a/docs/description/Security_BadFunctions_FringeFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Fringe Functions diff --git a/docs/description/Security_BadFunctions_FunctionHandlingFunctions.md b/docs/description/Security_BadFunctions_FunctionHandlingFunctions.md deleted file mode 100644 index 06ab7125..00000000 --- a/docs/description/Security_BadFunctions_FunctionHandlingFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Function Handling Functions diff --git a/docs/description/Security_BadFunctions_Mysqli.md b/docs/description/Security_BadFunctions_Mysqli.md deleted file mode 100644 index e69e3d2a..00000000 --- a/docs/description/Security_BadFunctions_Mysqli.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Mysqli diff --git a/docs/description/Security_BadFunctions_NoEvals.md b/docs/description/Security_BadFunctions_NoEvals.md deleted file mode 100644 index 2ba108f6..00000000 --- a/docs/description/Security_BadFunctions_NoEvals.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: No Evals diff --git a/docs/description/Security_BadFunctions_Phpinfos.md b/docs/description/Security_BadFunctions_Phpinfos.md deleted file mode 100644 index 8eef8868..00000000 --- a/docs/description/Security_BadFunctions_Phpinfos.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Phpinfos diff --git a/docs/description/Security_BadFunctions_PregReplace.md b/docs/description/Security_BadFunctions_PregReplace.md deleted file mode 100644 index 7b4bff2a..00000000 --- a/docs/description/Security_BadFunctions_PregReplace.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: Preg Replace diff --git a/docs/description/Security_BadFunctions_SQLFunctions.md b/docs/description/Security_BadFunctions_SQLFunctions.md deleted file mode 100644 index 8e139fb1..00000000 --- a/docs/description/Security_BadFunctions_SQLFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: SQL Functions diff --git a/docs/description/Security_BadFunctions_SystemExecFunctions.md b/docs/description/Security_BadFunctions_SystemExecFunctions.md deleted file mode 100644 index b831abf6..00000000 --- a/docs/description/Security_BadFunctions_SystemExecFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Security Bad Functions related issue: System Exec Functions diff --git a/docs/description/Security_CVE_20132110.md b/docs/description/Security_CVE_20132110.md deleted file mode 100644 index 43f6d282..00000000 --- a/docs/description/Security_CVE_20132110.md +++ /dev/null @@ -1 +0,0 @@ -Security CVE related issue: 20132110 diff --git a/docs/description/Security_CVE_20134113.md b/docs/description/Security_CVE_20134113.md deleted file mode 100644 index c411f188..00000000 --- a/docs/description/Security_CVE_20134113.md +++ /dev/null @@ -1 +0,0 @@ -Security CVE related issue: 20134113 diff --git a/docs/description/Security_CVE_CVE20132110.md b/docs/description/Security_CVE_CVE20132110.md deleted file mode 100644 index 3895af75..00000000 --- a/docs/description/Security_CVE_CVE20132110.md +++ /dev/null @@ -1 +0,0 @@ -Security CVE related issue: CVE20132110 diff --git a/docs/description/Security_CVE_CVE20134113.md b/docs/description/Security_CVE_CVE20134113.md deleted file mode 100644 index 43f91438..00000000 --- a/docs/description/Security_CVE_CVE20134113.md +++ /dev/null @@ -1 +0,0 @@ -Security CVE related issue: CVE20134113 diff --git a/docs/description/Security_Drupal7_AESModule.md b/docs/description/Security_Drupal7_AESModule.md deleted file mode 100644 index ed23d880..00000000 --- a/docs/description/Security_Drupal7_AESModule.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: AES Module diff --git a/docs/description/Security_Drupal7_AdvisoriesContrib.md b/docs/description/Security_Drupal7_AdvisoriesContrib.md deleted file mode 100644 index d6e35fb8..00000000 --- a/docs/description/Security_Drupal7_AdvisoriesContrib.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: Advisories Contrib diff --git a/docs/description/Security_Drupal7_AdvisoriesCore.md b/docs/description/Security_Drupal7_AdvisoriesCore.md deleted file mode 100644 index 14f9d031..00000000 --- a/docs/description/Security_Drupal7_AdvisoriesCore.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: Advisories Core diff --git a/docs/description/Security_Drupal7_Cachei.md b/docs/description/Security_Drupal7_Cachei.md deleted file mode 100644 index 79511728..00000000 --- a/docs/description/Security_Drupal7_Cachei.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: Cachei diff --git a/docs/description/Security_Drupal7_DbQueryAC.md b/docs/description/Security_Drupal7_DbQueryAC.md deleted file mode 100644 index e9aae5a8..00000000 --- a/docs/description/Security_Drupal7_DbQueryAC.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: Db Query AC diff --git a/docs/description/Security_Drupal7_DynQueries.md b/docs/description/Security_Drupal7_DynQueries.md deleted file mode 100644 index 058f5c08..00000000 --- a/docs/description/Security_Drupal7_DynQueries.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: Dyn Queries diff --git a/docs/description/Security_Drupal7_HttpRequest.md b/docs/description/Security_Drupal7_HttpRequest.md deleted file mode 100644 index 134df48d..00000000 --- a/docs/description/Security_Drupal7_HttpRequest.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: Http Request diff --git a/docs/description/Security_Drupal7_SQLi.md b/docs/description/Security_Drupal7_SQLi.md deleted file mode 100644 index 7b1e6336..00000000 --- a/docs/description/Security_Drupal7_SQLi.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: SQ Li diff --git a/docs/description/Security_Drupal7_UserInputWatch.md b/docs/description/Security_Drupal7_UserInputWatch.md deleted file mode 100644 index 7b6177ff..00000000 --- a/docs/description/Security_Drupal7_UserInputWatch.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: User Input Watch diff --git a/docs/description/Security_Drupal7_XSSFormValue.md b/docs/description/Security_Drupal7_XSSFormValue.md deleted file mode 100644 index 81cbf2e4..00000000 --- a/docs/description/Security_Drupal7_XSSFormValue.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: XSS Form Value diff --git a/docs/description/Security_Drupal7_XSSHTMLConstruct.md b/docs/description/Security_Drupal7_XSSHTMLConstruct.md deleted file mode 100644 index fd7575d1..00000000 --- a/docs/description/Security_Drupal7_XSSHTMLConstruct.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: XSSHTML Construct diff --git a/docs/description/Security_Drupal7_XSSPTheme.md b/docs/description/Security_Drupal7_XSSPTheme.md deleted file mode 100644 index a242ead3..00000000 --- a/docs/description/Security_Drupal7_XSSPTheme.md +++ /dev/null @@ -1 +0,0 @@ -Security Drupal7 related issue: XSSP Theme diff --git a/docs/description/Security_Misc_BadCorsHeader.md b/docs/description/Security_Misc_BadCorsHeader.md deleted file mode 100644 index 76331a06..00000000 --- a/docs/description/Security_Misc_BadCorsHeader.md +++ /dev/null @@ -1 +0,0 @@ -Security Misc related issue: Bad Cors Header diff --git a/docs/description/Security_Misc_IncludeMismatch.md b/docs/description/Security_Misc_IncludeMismatch.md deleted file mode 100644 index b575dd6e..00000000 --- a/docs/description/Security_Misc_IncludeMismatch.md +++ /dev/null @@ -1 +0,0 @@ -Security Misc related issue: Include Mismatch diff --git a/docs/description/Security_Misc_TypeJuggle.md b/docs/description/Security_Misc_TypeJuggle.md deleted file mode 100644 index 7b81a7af..00000000 --- a/docs/description/Security_Misc_TypeJuggle.md +++ /dev/null @@ -1 +0,0 @@ -Security Misc related issue: Type Juggle diff --git a/docs/description/SlevomatCodingStandard_Arrays_ArrayAccess.md b/docs/description/SlevomatCodingStandard_Arrays_ArrayAccess.md index bf9cb284..e8f3418d 100644 --- a/docs/description/SlevomatCodingStandard_Arrays_ArrayAccess.md +++ b/docs/description/SlevomatCodingStandard_Arrays_ArrayAccess.md @@ -1 +1,3 @@ -Arrays: Array Access +## Arrays: Array Access + +Disallow whitespace between array access operator and the variable, or between array access operators. diff --git a/docs/description/SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace.md b/docs/description/SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace.md index 04df82a7..922c48e9 100644 --- a/docs/description/SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace.md +++ b/docs/description/SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace.md @@ -5,4 +5,4 @@ Checks whitespace in single line array declarations (whitespace between brackets Sniff provides the following settings: * `spacesAroundBrackets`: number of spaces you require to have around array brackets -* `enableEmptyArrayCheck` (defaults to `false`): enables check for empty arrays +* `enableEmptyArrayCheck` (default: `false`): enables check for empty arrays diff --git a/docs/description/SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing.md b/docs/description/SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing.md index 21e5cafe..f5ac92ed 100644 --- a/docs/description/SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing.md +++ b/docs/description/SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing.md @@ -4,5 +4,5 @@ Sniff checks lines count between attribute and its target (or target's documenta Sniff provides the following settings: -* `allowOnSameLine`: allow attribute and its target to be placed on the same line (default value is false) +* `allowOnSameLine` (default: `false`): allow attribute and its target to be placed on the same line * `linesCount`: lines count between attribute and its target diff --git a/docs/description/SlevomatCodingStandard_Classes_ClassKeywordOrder.md b/docs/description/SlevomatCodingStandard_Classes_ClassKeywordOrder.md new file mode 100644 index 00000000..9d3d4f48 --- /dev/null +++ b/docs/description/SlevomatCodingStandard_Classes_ClassKeywordOrder.md @@ -0,0 +1,5 @@ +## Classes: Class Keyword Order + +Enforces the correct order of class modifiers (e.g., `final`, `abstract`, `readonly`). + +Required order is (final | abstract) readonly class. That is, use either `final` or `abstract` (never both), then `readonly` if present, then `class`. diff --git a/docs/description/SlevomatCodingStandard_Classes_ClassLength.md b/docs/description/SlevomatCodingStandard_Classes_ClassLength.md index fee2263a..c640c7cc 100644 --- a/docs/description/SlevomatCodingStandard_Classes_ClassLength.md +++ b/docs/description/SlevomatCodingStandard_Classes_ClassLength.md @@ -2,6 +2,6 @@ Disallows long classes. This sniff provides the following settings: -* `includeComments`: should comments be included in the count (default value is false). -* `includeWhitespace`: should empty lines be included in the count (default value is false). -* `maxLinesLength`: specifies max allowed function lines length (default value is 250). +* `includeComments` (default: `false`): should comments be included in the count. +* `includeWhitespace` (default: `false`): should empty lines be included in the count. +* `maxLinesLength` (default: `250`): specifies max allowed function lines length. diff --git a/docs/description/SlevomatCodingStandard_Classes_ClassStructure.md b/docs/description/SlevomatCodingStandard_Classes_ClassStructure.md index b0796fce..0c8be21a 100644 --- a/docs/description/SlevomatCodingStandard_Classes_ClassStructure.md +++ b/docs/description/SlevomatCodingStandard_Classes_ClassStructure.md @@ -5,18 +5,19 @@ Checks that class/trait/interface members are in the correct order. Sniff provides the following settings: * `groups`: order of groups. Use multiple groups in one `` to not differentiate among them. You can use specific groups or shortcuts. +* `methodGroups`: custom method groups. Define a custom group for special methods based on their name, annotation, or attribute. + * You can use a `* ` as prefix or suffix to filter methods name as seen in the example below. * * List of supported groups* * : uses, enum cases, public constants, protected constants, private constants, public properties, public static properties, protected properties, protected static properties, private properties, private static properties, -constructor, static constructors, destructor, magic methods, +constructor, static constructors, destructor, magic methods, invoke method, public methods, protected methods, private methods, public final methods, public static final methods, protected final methods, protected static final methods, public abstract methods, public static abstract methods, protected abstract methods, protected static abstract methods, -public static methods, protected static methods, private static methods, -private methods +public static methods, protected static methods, private static methods * * List of supported shortcuts* * : constants, properties, static properties, methods, all public methods, all protected methods, all private methods, static methods, final methods, abstract methods @@ -24,6 +25,13 @@ constants, properties, static properties, methods, all public methods, all prote ```xml + + + + + + + @@ -36,10 +44,24 @@ constants, properties, static properties, methods, all public methods, all prote - + + + + + + + + + + + + + + + diff --git a/docs/description/SlevomatCodingStandard_Classes_ConstantSpacing.md b/docs/description/SlevomatCodingStandard_Classes_ConstantSpacing.md index 49148c0b..82408544 100644 --- a/docs/description/SlevomatCodingStandard_Classes_ConstantSpacing.md +++ b/docs/description/SlevomatCodingStandard_Classes_ConstantSpacing.md @@ -8,3 +8,5 @@ Sniff provides the following settings: * `maxLinesCountBeforeWithComment`: maximum number of lines before constant with a documentation comment or attribute * `minLinesCountBeforeWithoutComment`: minimum number of lines before constant without a documentation comment or attribute * `maxLinesCountBeforeWithoutComment`: maximum number of lines before constant without a documentation comment or attribute +* `minLinesCountBeforeMultiline` (default: `null`): minimum number of lines before multiline constant +* `maxLinesCountBeforeMultiline` (default: `null`): maximum number of lines before multiline constant diff --git a/docs/description/SlevomatCodingStandard_Classes_ForbiddenPublicProperty.md b/docs/description/SlevomatCodingStandard_Classes_ForbiddenPublicProperty.md index a92b10b1..5553e510 100644 --- a/docs/description/SlevomatCodingStandard_Classes_ForbiddenPublicProperty.md +++ b/docs/description/SlevomatCodingStandard_Classes_ForbiddenPublicProperty.md @@ -4,4 +4,6 @@ Disallows using public properties. This sniff provides the following setting: -* `checkPromoted`: will check promoted properties too. +* `checkPromoted` (default: `false`): will check promoted properties too. +* `allowReadonly` (default: `false`): will allow readonly properties. +* `allowNonPublicSet` (default: `true`): will allow properties with `protected(set)` or `private(set)`. diff --git a/docs/description/SlevomatCodingStandard_Classes_PropertySpacing.md b/docs/description/SlevomatCodingStandard_Classes_PropertySpacing.md index 3c1b3bb3..92df33ce 100644 --- a/docs/description/SlevomatCodingStandard_Classes_PropertySpacing.md +++ b/docs/description/SlevomatCodingStandard_Classes_PropertySpacing.md @@ -8,3 +8,5 @@ Sniff provides the following settings: * `maxLinesCountBeforeWithComment`: maximum number of lines before property with a documentation comment or attribute * `minLinesCountBeforeWithoutComment`: minimum number of lines before property without a documentation comment or attribute * `maxLinesCountBeforeWithoutComment`: maximum number of lines before property without a documentation comment or attribute +* `minLinesCountBeforeMultiline` (default: `null`): minimum number of lines before multiline property +* `maxLinesCountBeforeMultiline` (default: `null`): maximum number of lines before multiline property diff --git a/docs/description/SlevomatCodingStandard_Classes_ReadonlyClass.md b/docs/description/SlevomatCodingStandard_Classes_ReadonlyClass.md new file mode 100644 index 00000000..5e440cc9 --- /dev/null +++ b/docs/description/SlevomatCodingStandard_Classes_ReadonlyClass.md @@ -0,0 +1 @@ +Classes: Readonly Class diff --git a/docs/description/SlevomatCodingStandard_Classes_RequireMultiLineMethodSignature.md b/docs/description/SlevomatCodingStandard_Classes_RequireMultiLineMethodSignature.md index ada9a005..1b3d094c 100644 --- a/docs/description/SlevomatCodingStandard_Classes_RequireMultiLineMethodSignature.md +++ b/docs/description/SlevomatCodingStandard_Classes_RequireMultiLineMethodSignature.md @@ -10,3 +10,6 @@ Sniff provides the following settings: * `includedMethodPatterns`: allows to configure which methods are included in sniff detection. This is an array of regular expressions (PCRE) with delimiters. You should not use this with `excludedMethodPatterns`, as it will not work properly. * `excludedMethodPatterns`: allows to configure which methods are excluded from sniff detection. This is an array of regular expressions (PCRE) with delimiters. You should not use this with `includedMethodPatterns`, as it will not work properly. + +* `withPromotedProperties` (default: `false`): always require multiline signatures for methods with promoted properties. +* `withParametersWithAttributes` (default: `false`): always require multiline signatures for methods with parameters with attributes. diff --git a/docs/description/SlevomatCodingStandard_Classes_TraitUseOrder.md b/docs/description/SlevomatCodingStandard_Classes_TraitUseOrder.md new file mode 100644 index 00000000..6dce7dee --- /dev/null +++ b/docs/description/SlevomatCodingStandard_Classes_TraitUseOrder.md @@ -0,0 +1,7 @@ +## Classes: Trait Use Order + +Enforces alphabetical order of trait `use` statements, both when traits are on separate lines and when they are comma-separated in a single `use` statement. + +Sniff provides the following settings: + +* `caseSensitive` (default: `false`): compare trait names case-sensitively. diff --git a/docs/description/SlevomatCodingStandard_Commenting_RequireOneDocComment.md b/docs/description/SlevomatCodingStandard_Commenting_RequireOneDocComment.md new file mode 100644 index 00000000..dff41e17 --- /dev/null +++ b/docs/description/SlevomatCodingStandard_Commenting_RequireOneDocComment.md @@ -0,0 +1,3 @@ +## Commenting: Require One Doc Comment + +Ensures that there is only one PHPDoc comment block for each entity (class, method, property, constant, etc.). This sniff prevents multiple documentation comments from being associated with a single code element, which can lead to confusion and inconsistency. diff --git a/docs/description/SlevomatCodingStandard_Commenting_ThrowsAnnotationsOrder.md b/docs/description/SlevomatCodingStandard_Commenting_ThrowsAnnotationsOrder.md new file mode 100644 index 00000000..2733340f --- /dev/null +++ b/docs/description/SlevomatCodingStandard_Commenting_ThrowsAnnotationsOrder.md @@ -0,0 +1,7 @@ +## Commenting: Throws Annotations Order + +Checks that `@throws` annotations are sorted alphabetically by exception class name. + +Sniff provides the following settings: + +* `caseSensitive`: compare class names case-sensitively. Default is `false`. diff --git a/docs/description/SlevomatCodingStandard_Commenting_UselessFunctionDocComment.md b/docs/description/SlevomatCodingStandard_Commenting_UselessFunctionDocComment.md index 47cc1302..9f9189cd 100644 --- a/docs/description/SlevomatCodingStandard_Commenting_UselessFunctionDocComment.md +++ b/docs/description/SlevomatCodingStandard_Commenting_UselessFunctionDocComment.md @@ -6,5 +6,3 @@ Sniff provides the following settings: * `traversableTypeHints`: enforces which typehints must have specified contained type. E.g. if you set this to `\Doctrine\Common\Collections\Collection`, then `\Doctrine\Common\Collections\Collection` must always be supplied with the contained type: `\Doctrine\Common\Collections\Collection|Foo[]`. - -This sniff can cause an error if you're overriding or implementing a parent method which does not have typehints. In such cases add `@phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint` annotation to the method to have this sniff skip it. diff --git a/docs/description/SlevomatCodingStandard_Complexity_Cognitive.md b/docs/description/SlevomatCodingStandard_Complexity_Cognitive.md index 9bd11f45..097ed936 100644 --- a/docs/description/SlevomatCodingStandard_Complexity_Cognitive.md +++ b/docs/description/SlevomatCodingStandard_Complexity_Cognitive.md @@ -4,5 +4,5 @@ Enforces maximum [cognitive complexity](https://www.sonarsource.com/docs/Cogniti Sniff provides the following setting: -* `warningThreshold`: defaults to 6 -* `errorThreshold` : defaults to 6 +* `warningThreshold` (default: `6`) +* `errorThreshold` (default: `6`) diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireMultiLineTernaryOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireMultiLineTernaryOperator.md index c50afa75..0ec9a543 100644 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireMultiLineTernaryOperator.md +++ b/docs/description/SlevomatCodingStandard_ControlStructures_RequireMultiLineTernaryOperator.md @@ -4,5 +4,5 @@ Ternary operator has to be reformatted to more lines when the line length exceed Sniff provides the following settings: -* `lineLengthLimit` (defaults to `0`) -* `minExpressionsLength` (defaults to `null`): when the expressions after `?` are shorter than this length, the ternary operator does not have to be reformatted. +* `lineLengthLimit` (default: `0`) +* `minExpressionsLength` (default: `null`): when the expressions after `?` are shorter than this length, the ternary operator does not have to be reformatted. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireNullCoalesceEqualOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireNullCoalesceEqualOperator.md index f42433fe..9f39c272 100644 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireNullCoalesceEqualOperator.md +++ b/docs/description/SlevomatCodingStandard_ControlStructures_RequireNullCoalesceEqualOperator.md @@ -5,3 +5,4 @@ Requires use of null coalesce equal operator when possible. This sniff provides the following setting: * `enable`: either to enable or not this sniff. By default, it is enabled for PHP versions 7.4 or higher. +* `checkIfConditions` (default: `false`): will check `if` conditions too. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireTernaryOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireTernaryOperator.md index e5dd7724..ab207b26 100644 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireTernaryOperator.md +++ b/docs/description/SlevomatCodingStandard_ControlStructures_RequireTernaryOperator.md @@ -4,4 +4,4 @@ Requires ternary operator when possible. Sniff provides the following settings: -* `ignoreMultiLine` (defaults to `false`): ignores multi-line statements. +* `ignoreMultiLine` (default: `false`): ignores multi-line statements. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireYodaComparison.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireYodaComparison.md index 89fae075..d00ebe3c 100644 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireYodaComparison.md +++ b/docs/description/SlevomatCodingStandard_ControlStructures_RequireYodaComparison.md @@ -4,7 +4,7 @@ Sniff provides the following settings: -* `alwaysVariableOnRight` (defaults to `false`): moves variables always to right. +* `alwaysVariableOnRight` (default: `false`): moves variables always to right. `DisallowYodaComparison` looks for and fixes such comparisons not only in `if` statements but in the whole code. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_UselessIfConditionWithReturn.md b/docs/description/SlevomatCodingStandard_ControlStructures_UselessIfConditionWithReturn.md index 9da816cc..05cea2e7 100644 --- a/docs/description/SlevomatCodingStandard_ControlStructures_UselessIfConditionWithReturn.md +++ b/docs/description/SlevomatCodingStandard_ControlStructures_UselessIfConditionWithReturn.md @@ -4,4 +4,4 @@ Reports useless conditions where both branches return `true` or `false`. Sniff provides the following settings: -* `assumeAllConditionExpressionsAreAlreadyBoolean` (defaults to `false`). +* `assumeAllConditionExpressionsAreAlreadyBoolean` (default: `false`). diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_UselessTernaryOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_UselessTernaryOperator.md index 6ebdb71b..feaa904f 100644 --- a/docs/description/SlevomatCodingStandard_ControlStructures_UselessTernaryOperator.md +++ b/docs/description/SlevomatCodingStandard_ControlStructures_UselessTernaryOperator.md @@ -4,4 +4,4 @@ Reports useless ternary operator where both branches return `true` or `false`. Sniff provides the following settings: -* `assumeAllConditionExpressionsAreAlreadyBoolean` (defaults to `false`). +* `assumeAllConditionExpressionsAreAlreadyBoolean` (default: `false`). diff --git a/docs/description/SlevomatCodingStandard_Exceptions_CatchExceptionsOrder.md b/docs/description/SlevomatCodingStandard_Exceptions_CatchExceptionsOrder.md new file mode 100644 index 00000000..9dd4e02d --- /dev/null +++ b/docs/description/SlevomatCodingStandard_Exceptions_CatchExceptionsOrder.md @@ -0,0 +1,7 @@ +## Exceptions: Catch Exceptions Order + +Enforces alphabetical order of caught exception types within a `catch` block. + +Sniff provides the following settings: + +* `caseSensitive` (default: `false`): compare exception names case-sensitively. diff --git a/docs/description/SlevomatCodingStandard_Files_FileLength.md b/docs/description/SlevomatCodingStandard_Files_FileLength.md index a3a44820..ae99ed3e 100644 --- a/docs/description/SlevomatCodingStandard_Files_FileLength.md +++ b/docs/description/SlevomatCodingStandard_Files_FileLength.md @@ -2,6 +2,6 @@ Disallows long files. This sniff provides the following settings: -* `includeComments`: should comments be included in the count (default value is false). -* `includeWhitespace`: should empty lines be included in the count (default value is false). -* `maxLinesLength`: specifies max allowed function lines length (default value is 250). +* `includeComments` (default: `false`): should comments be included in the count. +* `includeWhitespace` (default: `false`): should empty lines be included in the count. +* `maxLinesLength` (default: `250`): specifies max allowed function lines length. diff --git a/docs/description/SlevomatCodingStandard_Functions_FunctionLength.md b/docs/description/SlevomatCodingStandard_Functions_FunctionLength.md index bc8fa62d..0eac527a 100644 --- a/docs/description/SlevomatCodingStandard_Functions_FunctionLength.md +++ b/docs/description/SlevomatCodingStandard_Functions_FunctionLength.md @@ -2,6 +2,6 @@ Disallows long functions. This sniff provides the following setting: -* `includeComments`: should comments be included in the count (default value is false). -* `includeWhitespace`: should empty lines be included in the count (default value is false). -* `maxLinesLength`: specifies max allowed function lines length (default value is 20). +* `includeComments` (default: `false`): should comments be included in the count. +* `includeWhitespace` (default: `false`): should empty lines be included in the count. +* `maxLinesLength` (default: `20`): specifies max allowed function lines length. diff --git a/docs/description/SlevomatCodingStandard_Functions_RequireArrowFunction.md b/docs/description/SlevomatCodingStandard_Functions_RequireArrowFunction.md index e36d24ae..4730a7d6 100644 --- a/docs/description/SlevomatCodingStandard_Functions_RequireArrowFunction.md +++ b/docs/description/SlevomatCodingStandard_Functions_RequireArrowFunction.md @@ -4,5 +4,5 @@ Requires arrow functions. Sniff provides the following settings: -* `allowNested` (defaults to `true`) +* `allowNested` (default: `true`) * `enable`: either to enable or not this sniff. By default, it is enabled for PHP versions 7.4 or higher. diff --git a/docs/description/SlevomatCodingStandard_Functions_RequireMultiLineCall.md b/docs/description/SlevomatCodingStandard_Functions_RequireMultiLineCall.md index c8571ad2..48cda6a5 100644 --- a/docs/description/SlevomatCodingStandard_Functions_RequireMultiLineCall.md +++ b/docs/description/SlevomatCodingStandard_Functions_RequireMultiLineCall.md @@ -5,3 +5,5 @@ Enforces function call to be split to more lines so each parameter is on its own Sniff provides the following settings: * `minLineLength`: specifies min line length to enforce call to be split. Use 0 value to enforce for all calls, regardless of length. +* `minParametersCount`: specifies min parameters count to enforce call to be split. +* `excludedCallPatterns`: allows to configure which calls are excluded from sniff detection. This is an array of regular expressions (PCRE) with delimiters. diff --git a/docs/description/SlevomatCodingStandard_Functions_RequireSingleLineCall.md b/docs/description/SlevomatCodingStandard_Functions_RequireSingleLineCall.md index 29cede86..857f8018 100644 --- a/docs/description/SlevomatCodingStandard_Functions_RequireSingleLineCall.md +++ b/docs/description/SlevomatCodingStandard_Functions_RequireSingleLineCall.md @@ -5,4 +5,4 @@ Enforces function call to be on a single line. Sniff provides the following settings: * `maxLineLength`: specifies max allowed line length. If call would fit on it, it's enforced. Use 0 value to enforce for all calls, regardless of length. -* `ignoreWithComplexParameter` (defaults to `true`): ignores calls with arrays, closures, arrow functions and nested calls. +* `ignoreWithComplexParameter` (default: `true`): ignores calls with arrays, closures, arrow functions and nested calls. diff --git a/docs/description/SlevomatCodingStandard_Functions_UnusedParameter.md b/docs/description/SlevomatCodingStandard_Functions_UnusedParameter.md index bee4d1d1..923158f6 100644 --- a/docs/description/SlevomatCodingStandard_Functions_UnusedParameter.md +++ b/docs/description/SlevomatCodingStandard_Functions_UnusedParameter.md @@ -1,3 +1,7 @@ ## Functions: Unused Parameter Looks for unused parameters. + +This sniff provides the following setting: + +* `allowedParameterPatterns`: allows to configure which parameters are always allowed, even if unused. This is an array of regular expressions (PCRE) with delimiters, but without the leading `$` from variable names. (For example, use `[/^_/]` to allow parameters that start with an underscore, like `$_unused`.) diff --git a/docs/description/SlevomatCodingStandard_Namespaces_AlphabeticallySortedUses.md b/docs/description/SlevomatCodingStandard_Namespaces_AlphabeticallySortedUses.md index b5f860ce..bec27c45 100644 --- a/docs/description/SlevomatCodingStandard_Namespaces_AlphabeticallySortedUses.md +++ b/docs/description/SlevomatCodingStandard_Namespaces_AlphabeticallySortedUses.md @@ -14,7 +14,7 @@ use LogStandard; Sniff provides the following settings: -* `psr12Compatible` (defaults to `true`): sets the required order to `classes`, `functions` and `constants`. `false` sets the required order to `classes`, `constants` and `functions`. +* `psr12Compatible` (default: `true`): sets the required order to `classes`, `functions` and `constants`. `false` sets the required order to `classes`, `constants` and `functions`. * `caseSensitive`: compare namespaces case sensitively, which makes this order correct: ```php diff --git a/docs/description/SlevomatCodingStandard_Namespaces_ReferenceUsedNamesOnly.md b/docs/description/SlevomatCodingStandard_Namespaces_ReferenceUsedNamesOnly.md index ec983da3..1d7ef341 100644 --- a/docs/description/SlevomatCodingStandard_Namespaces_ReferenceUsedNamesOnly.md +++ b/docs/description/SlevomatCodingStandard_Namespaces_ReferenceUsedNamesOnly.md @@ -2,7 +2,7 @@ Sniff provides the following settings: -* `searchAnnotations` (defaults to `false`): enables searching for mentions in annotations. +* `searchAnnotations` (default: `false`): enables searching for mentions in annotations. * `namespacesRequiredToUse`: if not set, all namespaces are required to be used. When set, only mentioned namespaces are required to be used. Useful in tandem with UseOnlyWhitelistedNamespaces sniff. * `allowFullyQualifiedExceptions`, `specialExceptionNames` & `ignoredNames`: allows fully qualified exceptions. Useful in tandem with FullyQualifiedExceptions sniff. * `allowFullyQualifiedNameForCollidingClasses`: allow fully qualified name for a class with a colliding use statement. @@ -13,4 +13,7 @@ Sniff provides the following settings: * `allowFullyQualifiedGlobalConstants`: allows using fully qualified constants from global space (i.e. `\PHP_VERSION`). * `allowFallbackGlobalFunctions`: allows using global functions via fallback name without `use` (i.e. `phpversion()`). * `allowFallbackGlobalConstants`: allows using global constants via fallback name without `use` (i.e. `PHP_VERSION`). -* `allowPartialUses`: allows using and referencing whole namespaces. +* `allowPartialUses` (default: `true`): allows using and referencing whole namespaces unless a more specific namespace rule applies. +* `namespacesAllowedToUsePartially`: if set, only namespaces in this list may be referenced partially. Use `Namespace\Name as Alias` when you want to require a specific alias like `use Some\SubNamespace as SubNamespace;`. +* `namespacesRequiredToUsePartially`: namespaces in this list must be referenced partially. The same `Namespace\Name as Alias` syntax applies when you want to enforce a concrete alias. +* `allowWhenNoNamespace` (default: `true`): force even when there's no namespace in the file. diff --git a/docs/description/SlevomatCodingStandard_Namespaces_UnusedUses.md b/docs/description/SlevomatCodingStandard_Namespaces_UnusedUses.md index f4cc71be..ac140e9a 100644 --- a/docs/description/SlevomatCodingStandard_Namespaces_UnusedUses.md +++ b/docs/description/SlevomatCodingStandard_Namespaces_UnusedUses.md @@ -4,6 +4,6 @@ Looks for unused imports from other namespaces. Sniff provides the following settings: -* `searchAnnotations` (defaults to `false`): enables searching for class names in annotations. +* `searchAnnotations` (default: `false`): enables searching for class names in annotations. * `ignoredAnnotationNames`: case-sensitive list of annotation names that the sniff should ignore (only the name is ignored, annotation content is still searched). Useful for name collisions like `@testCase` annotation and `TestCase` class. * `ignoredAnnotations`: case-sensitive list of annotation names that the sniff ignore completely (both name and content are ignored). Useful for name collisions like `@group Cache` annotation and `Cache` class. diff --git a/docs/description/SlevomatCodingStandard_Numbers_RequireNumericLiteralSeparator.md b/docs/description/SlevomatCodingStandard_Numbers_RequireNumericLiteralSeparator.md index a291e880..e555dfde 100644 --- a/docs/description/SlevomatCodingStandard_Numbers_RequireNumericLiteralSeparator.md +++ b/docs/description/SlevomatCodingStandard_Numbers_RequireNumericLiteralSeparator.md @@ -5,6 +5,6 @@ Requires use of numeric literal separators. This sniff provides the following setting: * `enable`: either to enable or not this sniff. By default, it is enabled for PHP versions 7.4 or higher. -* `minDigitsBeforeDecimalPoint`: the minimum digits before decimal point to require separator. -* `minDigitsAfterDecimalPoint`: the minimum digits after decimal point to require separator. -* `ignoreOctalNumbers`: to ignore octal numbers. +* `minDigitsBeforeDecimalPoint` (default: `4`): the minimum digits before decimal point to require separator. +* `minDigitsAfterDecimalPoint` (default: `4`): the minimum digits after decimal point to require separator. +* `ignoreOctalNumbers` (default: `true`): to ignore octal numbers. diff --git a/docs/description/SlevomatCodingStandard_PHP_RequireExplicitAssertion.md b/docs/description/SlevomatCodingStandard_PHP_RequireExplicitAssertion.md index b3db95d6..b3a6672b 100644 --- a/docs/description/SlevomatCodingStandard_PHP_RequireExplicitAssertion.md +++ b/docs/description/SlevomatCodingStandard_PHP_RequireExplicitAssertion.md @@ -4,5 +4,5 @@ Requires assertion via `assert` instead of inline documentation comments. Sniff provides the following settings: -* `enableIntegerRanges` (defaults to `false`): enables support for `positive-int`, `negative-int` and `int<0, 100>`. -* `enableAdvancedStringTypes` (defaults to `false`): enables support for `callable-string`, `numeric-string` and `non-empty-string`. +* `enableIntegerRanges` (default: `false`): enables support for `positive-int`, `negative-int` and `int<0, 100>`. +* `enableAdvancedStringTypes` (default: `false`): enables support for `callable-string`, `numeric-string` and `non-empty-string`. diff --git a/docs/description/SlevomatCodingStandard_PHP_UselessParentheses.md b/docs/description/SlevomatCodingStandard_PHP_UselessParentheses.md index cd48ec85..59504e16 100644 --- a/docs/description/SlevomatCodingStandard_PHP_UselessParentheses.md +++ b/docs/description/SlevomatCodingStandard_PHP_UselessParentheses.md @@ -4,4 +4,5 @@ Looks for useless parentheses. Sniff provides the following settings: -* `ignoreComplexTernaryConditions` (defaults to `false`): ignores complex ternary conditions - condition must contain `&&`, `||` etc. or end of line. +* `ignoreComplexTernaryConditions` (default: `false`): ignores complex ternary conditions - condition must contain `&&`, `||` etc. or end of line. +* `enableCheckAroundNew` (default: `false`): enables check of useless parentheses around `(new class())->call()`. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_ClassConstantTypeHint.md b/docs/description/SlevomatCodingStandard_TypeHints_ClassConstantTypeHint.md new file mode 100644 index 00000000..5ecc11d2 --- /dev/null +++ b/docs/description/SlevomatCodingStandard_TypeHints_ClassConstantTypeHint.md @@ -0,0 +1,9 @@ +## TypeHints: Class Constant Type Hint + +* Checks for missing typehints in case they can be declared natively. +* Reports useless `@var` annotation (or whole documentation comment) because the type of constant is always clear. + +Sniff provides the following settings: + +* `enableNativeTypeHint`: enforces native typehint. It's on by default if you're on PHP 8.3+ +* `fixableNativeTypeHint`: (default: `yes`) allows fixing native type hints. Use `no` to disable fixing, or `private` to fix only private constants (safer for inheritance/interface compatibility). diff --git a/docs/description/SlevomatCodingStandard_TypeHints_DNFTypeHintFormat.md b/docs/description/SlevomatCodingStandard_TypeHints_DNFTypeHintFormat.md new file mode 100644 index 00000000..2d209438 --- /dev/null +++ b/docs/description/SlevomatCodingStandard_TypeHints_DNFTypeHintFormat.md @@ -0,0 +1,12 @@ +## TypeHints: DNFType Hint Format + +Checks format of DNF type hints. The same checks can also be applied to type hints inside `@param`, `@return`, `@var`, `@property` and `@property-read` annotations by enabling `enableForDocComments`. + +Sniff provides the following settings: + +* `enable`: either to enable or not this sniff. By default, it is enabled for PHP versions 8.0 or higher. +* `enableForDocComments`: `true` also applies the configured checks to type hints in doc-comment annotations. Disabled by default. +* `withSpacesAroundOperators`: `yes` requires spaces around `|` and `&`, `no` requires no space around `|`and `&`. None is set by default so both are enabled. +* `withSpacesInsideParentheses`: `yes` requires spaces inside parentheses, `no` requires no spaces inside parentheses. None is set by default so both are enabled. +* `shortNullable`: `yes` requires usage of `?` for nullable type hint, `no` disallows it. None is set by default so both are enabled. +* `nullPosition`: `first` requires `null` on first position in the type hint, `last` requires last position. None is set by default so `null` can be everywhere. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_NullTypeHintOnLastPosition.md b/docs/description/SlevomatCodingStandard_TypeHints_NullTypeHintOnLastPosition.md index 3bebc91b..2531605a 100644 --- a/docs/description/SlevomatCodingStandard_TypeHints_NullTypeHintOnLastPosition.md +++ b/docs/description/SlevomatCodingStandard_TypeHints_NullTypeHintOnLastPosition.md @@ -1,3 +1,5 @@ ## TypeHints: Null Type Hint On Last Position +> * * Deprecated.* * Use [`SlevomatCodingStandard.TypeHints.DNFTypeHintFormat`](#slevomatcodingstandardtypehintsdnftypehintformat-) with `nullPosition` set to `last` and `enableForDocComments` set to `true`, which enforces the same rule for both PHP code and annotations. + Enforces `null` type hint on last position in annotations. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_ParameterTypeHint.md b/docs/description/SlevomatCodingStandard_TypeHints_ParameterTypeHint.md index abb27da7..c870732b 100644 --- a/docs/description/SlevomatCodingStandard_TypeHints_ParameterTypeHint.md +++ b/docs/description/SlevomatCodingStandard_TypeHints_ParameterTypeHint.md @@ -13,4 +13,4 @@ Sniff provides the following settings: * `enableStandaloneNullTrueFalseTypeHints`: enforces to transform `@param true`, `@param false` or `@param null` into native typehints. It's on by default if you're on PHP 8.2+ * `traversableTypeHints`: enforces which typehints must have specified contained type. E.g. if you set this to `\Doctrine\Common\Collections\Collection`, then `\Doctrine\Common\Collections\Collection` must always be supplied with the contained type: `\Doctrine\Common\Collections\Collection|Foo[]`. -This sniff can cause an error if you're overriding or implementing a parent method which does not have typehints. In such cases add `@phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint` annotation to the method to have this sniff skip it. +This sniff can cause an error if you're overriding or implementing a parent method which does not have typehints. In such cases add `#[Override]` attribute or `@phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint` annotation to the method to have this sniff skip it. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_PropertyTypeHint.md b/docs/description/SlevomatCodingStandard_TypeHints_PropertyTypeHint.md index e15b6c88..b703724e 100644 --- a/docs/description/SlevomatCodingStandard_TypeHints_PropertyTypeHint.md +++ b/docs/description/SlevomatCodingStandard_TypeHints_PropertyTypeHint.md @@ -13,4 +13,4 @@ Sniff provides the following settings: * `enableStandaloneNullTrueFalseTypeHints`: enforces to transform `@var true`, `@var false` or `@var null` into native typehints. It's on by default if you're on PHP 8.2+. It can be enabled only when `enableNativeTypeHint` is enabled too. * `traversableTypeHints`: enforces which typehints must have specified contained type. E.g. if you set this to `\Doctrine\Common\Collections\Collection`, then `\Doctrine\Common\Collections\Collection` must always be supplied with the contained type: `\Doctrine\Common\Collections\Collection|Foo[]`. -This sniff can cause an error if you're overriding parent property which does not have typehints. In such cases add `@phpcsSuppress SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint` annotation to the property to have this sniff skip it. +This sniff can cause an error if you're overriding parent property which does not have typehints. In such cases add `#[Override]` attribute if you are using PHP 8.5+ or add `@phpcsSuppress SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint` annotation to the property to have this sniff skip it. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_ReturnTypeHint.md b/docs/description/SlevomatCodingStandard_TypeHints_ReturnTypeHint.md index c94a85d4..8c7be5e0 100644 --- a/docs/description/SlevomatCodingStandard_TypeHints_ReturnTypeHint.md +++ b/docs/description/SlevomatCodingStandard_TypeHints_ReturnTypeHint.md @@ -15,4 +15,4 @@ Sniff provides the following settings: * `enableStandaloneNullTrueFalseTypeHints`: enforces to transform `@return true`, `@return false` or `@return null` into native typehints. It's on by default if you're on PHP 8.2+. * `traversableTypeHints`: enforces which typehints must have specified contained type. E.g. if you set this to `\Doctrine\Common\Collections\Collection`, then `\Doctrine\Common\Collections\Collection` must always be supplied with the contained type: `\Doctrine\Common\Collections\Collection|Foo[]`. -This sniff can cause an error if you're overriding or implementing a parent method which does not have typehints. In such cases add `@phpcsSuppress SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint` annotation to the method to have this sniff skip it. +You can add `@phpcsSuppress SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint` annotation to the method to skip the check. diff --git a/docs/description/SlevomatCodingStandard_Variables_UnusedVariable.md b/docs/description/SlevomatCodingStandard_Variables_UnusedVariable.md index 695d328b..2db064ad 100644 --- a/docs/description/SlevomatCodingStandard_Variables_UnusedVariable.md +++ b/docs/description/SlevomatCodingStandard_Variables_UnusedVariable.md @@ -4,7 +4,7 @@ Looks for unused variables. Sniff provides the following settings: -* `ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach` (defaults to `false`): ignore unused `$value` in foreach when only `$key` is used +* `ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach` (default: `false`): ignore unused `$value` in foreach when only `$key` is used ```php foreach ($values as $key => $value) { diff --git a/docs/description/Vaimo_Classes_ConstantDeclarationOrder.md b/docs/description/Vaimo_Classes_ConstantDeclarationOrder.md deleted file mode 100644 index 838dcba5..00000000 --- a/docs/description/Vaimo_Classes_ConstantDeclarationOrder.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Constant Declaration Order diff --git a/docs/description/Vaimo_Classes_ObjectInstantiation.md b/docs/description/Vaimo_Classes_ObjectInstantiation.md deleted file mode 100644 index 3f7cf77b..00000000 --- a/docs/description/Vaimo_Classes_ObjectInstantiation.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Object Instantiation diff --git a/docs/description/Vaimo_Classes_PropertyUnderscore.md b/docs/description/Vaimo_Classes_PropertyUnderscore.md deleted file mode 100644 index 473c63c5..00000000 --- a/docs/description/Vaimo_Classes_PropertyUnderscore.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Property Underscore diff --git a/docs/description/Vaimo_Classes_ProtectedMember.md b/docs/description/Vaimo_Classes_ProtectedMember.md deleted file mode 100644 index f9740a75..00000000 --- a/docs/description/Vaimo_Classes_ProtectedMember.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Protected Member diff --git a/docs/description/Vaimo_Classes_UndefinedProperty.md b/docs/description/Vaimo_Classes_UndefinedProperty.md deleted file mode 100644 index 94cb4f3d..00000000 --- a/docs/description/Vaimo_Classes_UndefinedProperty.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Undefined Property diff --git a/docs/description/Vaimo_CodeAnalysis_Copyright.md b/docs/description/Vaimo_CodeAnalysis_Copyright.md deleted file mode 100644 index ab97ba68..00000000 --- a/docs/description/Vaimo_CodeAnalysis_Copyright.md +++ /dev/null @@ -1 +0,0 @@ -Code Analysis: Copyright diff --git a/docs/description/Vaimo_CodeAnalysis_UnusedFunctionParameter.md b/docs/description/Vaimo_CodeAnalysis_UnusedFunctionParameter.md deleted file mode 100644 index 59eddb2a..00000000 --- a/docs/description/Vaimo_CodeAnalysis_UnusedFunctionParameter.md +++ /dev/null @@ -1 +0,0 @@ -Code Analysis: Unused Function Parameter diff --git a/docs/description/Vaimo_Comments_DeprecationNotice.md b/docs/description/Vaimo_Comments_DeprecationNotice.md deleted file mode 100644 index 1337ef8e..00000000 --- a/docs/description/Vaimo_Comments_DeprecationNotice.md +++ /dev/null @@ -1 +0,0 @@ -Comments: Deprecation Notice diff --git a/docs/description/Vaimo_ControlStructures_NestedIf.md b/docs/description/Vaimo_ControlStructures_NestedIf.md deleted file mode 100644 index beaf69ab..00000000 --- a/docs/description/Vaimo_ControlStructures_NestedIf.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Nested If diff --git a/docs/description/Vaimo_ControlStructures_TernaryOperator.md b/docs/description/Vaimo_ControlStructures_TernaryOperator.md deleted file mode 100644 index e5d166c7..00000000 --- a/docs/description/Vaimo_ControlStructures_TernaryOperator.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Ternary Operator diff --git a/docs/description/Vaimo_ControlStructures_TernaryOperatorPlacement.md b/docs/description/Vaimo_ControlStructures_TernaryOperatorPlacement.md deleted file mode 100644 index 9a74b023..00000000 --- a/docs/description/Vaimo_ControlStructures_TernaryOperatorPlacement.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Ternary Operator Placement diff --git a/docs/description/Vaimo_Custom_ArrayAccess.md b/docs/description/Vaimo_Custom_ArrayAccess.md deleted file mode 100644 index 0cb2caed..00000000 --- a/docs/description/Vaimo_Custom_ArrayAccess.md +++ /dev/null @@ -1 +0,0 @@ -Custom: Array Access diff --git a/docs/description/Vaimo_Custom_FixMultilineIf.md b/docs/description/Vaimo_Custom_FixMultilineIf.md deleted file mode 100644 index b9f8fc25..00000000 --- a/docs/description/Vaimo_Custom_FixMultilineIf.md +++ /dev/null @@ -1 +0,0 @@ -Custom: Fix Multiline If diff --git a/docs/description/Vaimo_Custom_LegacyDocblockTags.md b/docs/description/Vaimo_Custom_LegacyDocblockTags.md deleted file mode 100644 index 7c6c6793..00000000 --- a/docs/description/Vaimo_Custom_LegacyDocblockTags.md +++ /dev/null @@ -1 +0,0 @@ -Custom: Legacy Docblock Tags diff --git a/docs/description/Vaimo_Custom_NoPhpCsDisable.md b/docs/description/Vaimo_Custom_NoPhpCsDisable.md deleted file mode 100644 index a431b51e..00000000 --- a/docs/description/Vaimo_Custom_NoPhpCsDisable.md +++ /dev/null @@ -1 +0,0 @@ -Custom: No Php Cs Disable diff --git a/docs/description/Vaimo_Exceptions_TryProcessSystemResources.md b/docs/description/Vaimo_Exceptions_TryProcessSystemResources.md deleted file mode 100644 index c019bb75..00000000 --- a/docs/description/Vaimo_Exceptions_TryProcessSystemResources.md +++ /dev/null @@ -1 +0,0 @@ -Exceptions: Try Process System Resources diff --git a/docs/description/Vaimo_NamingConventions_AndOrInClassName.md b/docs/description/Vaimo_NamingConventions_AndOrInClassName.md deleted file mode 100644 index 328831d7..00000000 --- a/docs/description/Vaimo_NamingConventions_AndOrInClassName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: And Or In Class Name diff --git a/docs/description/Vaimo_NamingConventions_AndOrInMethodName.md b/docs/description/Vaimo_NamingConventions_AndOrInMethodName.md deleted file mode 100644 index dfa600fc..00000000 --- a/docs/description/Vaimo_NamingConventions_AndOrInMethodName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: And Or In Method Name diff --git a/docs/description/Vaimo_NamingConventions_AndOrInVariableName.md b/docs/description/Vaimo_NamingConventions_AndOrInVariableName.md deleted file mode 100644 index 8d61da7c..00000000 --- a/docs/description/Vaimo_NamingConventions_AndOrInVariableName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: And Or In Variable Name diff --git a/docs/description/Vaimo_NamingConventions_IllegalWordInClassName.md b/docs/description/Vaimo_NamingConventions_IllegalWordInClassName.md deleted file mode 100644 index 430adc1d..00000000 --- a/docs/description/Vaimo_NamingConventions_IllegalWordInClassName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Illegal Word In Class Name diff --git a/docs/description/Vaimo_NamingConventions_IllegalWordInMethodName.md b/docs/description/Vaimo_NamingConventions_IllegalWordInMethodName.md deleted file mode 100644 index cf58f845..00000000 --- a/docs/description/Vaimo_NamingConventions_IllegalWordInMethodName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Illegal Word In Method Name diff --git a/docs/description/Vaimo_NamingConventions_IllegalWordInVariableName.md b/docs/description/Vaimo_NamingConventions_IllegalWordInVariableName.md deleted file mode 100644 index a99f9c51..00000000 --- a/docs/description/Vaimo_NamingConventions_IllegalWordInVariableName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Illegal Word In Variable Name diff --git a/docs/description/Vaimo_NamingConventions_VariablesCamelCase.md b/docs/description/Vaimo_NamingConventions_VariablesCamelCase.md deleted file mode 100644 index 9ab236c1..00000000 --- a/docs/description/Vaimo_NamingConventions_VariablesCamelCase.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Variables Camel Case diff --git a/docs/description/Vaimo_PHP_NoSilencedErrors.md b/docs/description/Vaimo_PHP_NoSilencedErrors.md deleted file mode 100644 index 6950272d..00000000 --- a/docs/description/Vaimo_PHP_NoSilencedErrors.md +++ /dev/null @@ -1 +0,0 @@ -PHP: No Silenced Errors diff --git a/docs/description/Vaimo_TypeHints_IllegalReturnTypeAnnotation.md b/docs/description/Vaimo_TypeHints_IllegalReturnTypeAnnotation.md deleted file mode 100644 index fa7eddcb..00000000 --- a/docs/description/Vaimo_TypeHints_IllegalReturnTypeAnnotation.md +++ /dev/null @@ -1 +0,0 @@ -Type Hints: Illegal Return Type Annotation diff --git a/docs/description/WordPressVIPMinimum_Classes_DeclarationCompatibility.md b/docs/description/WordPressVIPMinimum_Classes_DeclarationCompatibility.md deleted file mode 100644 index 23a0c872..00000000 --- a/docs/description/WordPressVIPMinimum_Classes_DeclarationCompatibility.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Declaration Compatibility diff --git a/docs/description/WordPressVIPMinimum_Classes_RestrictedExtendClasses.md b/docs/description/WordPressVIPMinimum_Classes_RestrictedExtendClasses.md deleted file mode 100644 index ffeea57b..00000000 --- a/docs/description/WordPressVIPMinimum_Classes_RestrictedExtendClasses.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Restricted Extend Classes diff --git a/docs/description/WordPressVIPMinimum_Constants_ConstantString.md b/docs/description/WordPressVIPMinimum_Constants_ConstantString.md deleted file mode 100644 index 7f6fe0ac..00000000 --- a/docs/description/WordPressVIPMinimum_Constants_ConstantString.md +++ /dev/null @@ -1 +0,0 @@ -Constants: Constant String diff --git a/docs/description/WordPressVIPMinimum_Constants_RestrictedConstants.md b/docs/description/WordPressVIPMinimum_Constants_RestrictedConstants.md deleted file mode 100644 index 333744be..00000000 --- a/docs/description/WordPressVIPMinimum_Constants_RestrictedConstants.md +++ /dev/null @@ -1 +0,0 @@ -Constants: Restricted Constants diff --git a/docs/description/WordPressVIPMinimum_Files_IncludingFile.md b/docs/description/WordPressVIPMinimum_Files_IncludingFile.md deleted file mode 100644 index 2462f700..00000000 --- a/docs/description/WordPressVIPMinimum_Files_IncludingFile.md +++ /dev/null @@ -1 +0,0 @@ -Files: Including File diff --git a/docs/description/WordPressVIPMinimum_Files_IncludingNonPHPFile.md b/docs/description/WordPressVIPMinimum_Files_IncludingNonPHPFile.md deleted file mode 100644 index 8a4dd75d..00000000 --- a/docs/description/WordPressVIPMinimum_Files_IncludingNonPHPFile.md +++ /dev/null @@ -1 +0,0 @@ -Files: Including Non PHP File diff --git a/docs/description/WordPressVIPMinimum_Functions_CheckReturnValue.md b/docs/description/WordPressVIPMinimum_Functions_CheckReturnValue.md deleted file mode 100644 index f288cac3..00000000 --- a/docs/description/WordPressVIPMinimum_Functions_CheckReturnValue.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Check Return Value diff --git a/docs/description/WordPressVIPMinimum_Functions_DynamicCalls.md b/docs/description/WordPressVIPMinimum_Functions_DynamicCalls.md deleted file mode 100644 index 5d5c8b4f..00000000 --- a/docs/description/WordPressVIPMinimum_Functions_DynamicCalls.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Dynamic Calls diff --git a/docs/description/WordPressVIPMinimum_Functions_RestrictedFunctions.md b/docs/description/WordPressVIPMinimum_Functions_RestrictedFunctions.md deleted file mode 100644 index 96d9fdbc..00000000 --- a/docs/description/WordPressVIPMinimum_Functions_RestrictedFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Restricted Functions diff --git a/docs/description/WordPressVIPMinimum_Functions_StripTags.md b/docs/description/WordPressVIPMinimum_Functions_StripTags.md deleted file mode 100644 index 4c08753b..00000000 --- a/docs/description/WordPressVIPMinimum_Functions_StripTags.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Strip Tags diff --git a/docs/description/WordPressVIPMinimum_Hooks_AlwaysReturnInFilter.md b/docs/description/WordPressVIPMinimum_Hooks_AlwaysReturnInFilter.md deleted file mode 100644 index 9f37ffdd..00000000 --- a/docs/description/WordPressVIPMinimum_Hooks_AlwaysReturnInFilter.md +++ /dev/null @@ -1 +0,0 @@ -Hooks: Always Return In Filter diff --git a/docs/description/WordPressVIPMinimum_Hooks_PreGetPosts.md b/docs/description/WordPressVIPMinimum_Hooks_PreGetPosts.md deleted file mode 100644 index 10b21418..00000000 --- a/docs/description/WordPressVIPMinimum_Hooks_PreGetPosts.md +++ /dev/null @@ -1 +0,0 @@ -Hooks: Pre Get Posts diff --git a/docs/description/WordPressVIPMinimum_Hooks_RestrictedHooks.md b/docs/description/WordPressVIPMinimum_Hooks_RestrictedHooks.md deleted file mode 100644 index 4bcc8911..00000000 --- a/docs/description/WordPressVIPMinimum_Hooks_RestrictedHooks.md +++ /dev/null @@ -1 +0,0 @@ -Hooks: Restricted Hooks diff --git a/docs/description/WordPressVIPMinimum_JS_DangerouslySetInnerHTML.md b/docs/description/WordPressVIPMinimum_JS_DangerouslySetInnerHTML.md deleted file mode 100644 index 6ad4ff50..00000000 --- a/docs/description/WordPressVIPMinimum_JS_DangerouslySetInnerHTML.md +++ /dev/null @@ -1 +0,0 @@ -JS: Dangerously Set Inner HTML diff --git a/docs/description/WordPressVIPMinimum_JS_HTMLExecutingFunctions.md b/docs/description/WordPressVIPMinimum_JS_HTMLExecutingFunctions.md deleted file mode 100644 index dca7c02b..00000000 --- a/docs/description/WordPressVIPMinimum_JS_HTMLExecutingFunctions.md +++ /dev/null @@ -1 +0,0 @@ -JS: HTML Executing Functions diff --git a/docs/description/WordPressVIPMinimum_JS_InnerHTML.md b/docs/description/WordPressVIPMinimum_JS_InnerHTML.md deleted file mode 100644 index b68db4b8..00000000 --- a/docs/description/WordPressVIPMinimum_JS_InnerHTML.md +++ /dev/null @@ -1 +0,0 @@ -JS: Inner HTML diff --git a/docs/description/WordPressVIPMinimum_JS_StringConcat.md b/docs/description/WordPressVIPMinimum_JS_StringConcat.md deleted file mode 100644 index 9e4fb86d..00000000 --- a/docs/description/WordPressVIPMinimum_JS_StringConcat.md +++ /dev/null @@ -1 +0,0 @@ -JS: String Concat diff --git a/docs/description/WordPressVIPMinimum_JS_StrippingTags.md b/docs/description/WordPressVIPMinimum_JS_StrippingTags.md deleted file mode 100644 index 76117ac7..00000000 --- a/docs/description/WordPressVIPMinimum_JS_StrippingTags.md +++ /dev/null @@ -1 +0,0 @@ -JS: Stripping Tags diff --git a/docs/description/WordPressVIPMinimum_JS_Window.md b/docs/description/WordPressVIPMinimum_JS_Window.md deleted file mode 100644 index 19df2e7e..00000000 --- a/docs/description/WordPressVIPMinimum_JS_Window.md +++ /dev/null @@ -1 +0,0 @@ -JS: Window diff --git a/docs/description/WordPressVIPMinimum_Performance_CacheValueOverride.md b/docs/description/WordPressVIPMinimum_Performance_CacheValueOverride.md deleted file mode 100644 index 76192fb9..00000000 --- a/docs/description/WordPressVIPMinimum_Performance_CacheValueOverride.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Cache Value Override diff --git a/docs/description/WordPressVIPMinimum_Performance_FetchingRemoteData.md b/docs/description/WordPressVIPMinimum_Performance_FetchingRemoteData.md deleted file mode 100644 index 830e52b2..00000000 --- a/docs/description/WordPressVIPMinimum_Performance_FetchingRemoteData.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Fetching Remote Data diff --git a/docs/description/WordPressVIPMinimum_Performance_LowExpiryCacheTime.md b/docs/description/WordPressVIPMinimum_Performance_LowExpiryCacheTime.md deleted file mode 100644 index 887f6930..00000000 --- a/docs/description/WordPressVIPMinimum_Performance_LowExpiryCacheTime.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Low Expiry Cache Time diff --git a/docs/description/WordPressVIPMinimum_Performance_NoPaging.md b/docs/description/WordPressVIPMinimum_Performance_NoPaging.md deleted file mode 100644 index 15344ecc..00000000 --- a/docs/description/WordPressVIPMinimum_Performance_NoPaging.md +++ /dev/null @@ -1 +0,0 @@ -Performance: No Paging diff --git a/docs/description/WordPressVIPMinimum_Performance_OrderByRand.md b/docs/description/WordPressVIPMinimum_Performance_OrderByRand.md deleted file mode 100644 index b4da9ffe..00000000 --- a/docs/description/WordPressVIPMinimum_Performance_OrderByRand.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Order By Rand diff --git a/docs/description/WordPressVIPMinimum_Performance_RegexpCompare.md b/docs/description/WordPressVIPMinimum_Performance_RegexpCompare.md deleted file mode 100644 index 1e149442..00000000 --- a/docs/description/WordPressVIPMinimum_Performance_RegexpCompare.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Regexp Compare diff --git a/docs/description/WordPressVIPMinimum_Performance_RemoteRequestTimeout.md b/docs/description/WordPressVIPMinimum_Performance_RemoteRequestTimeout.md deleted file mode 100644 index 8a3f86b7..00000000 --- a/docs/description/WordPressVIPMinimum_Performance_RemoteRequestTimeout.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Remote Request Timeout diff --git a/docs/description/WordPressVIPMinimum_Performance_TaxonomyMetaInOptions.md b/docs/description/WordPressVIPMinimum_Performance_TaxonomyMetaInOptions.md deleted file mode 100644 index d0ea5009..00000000 --- a/docs/description/WordPressVIPMinimum_Performance_TaxonomyMetaInOptions.md +++ /dev/null @@ -1 +0,0 @@ -Performance: Taxonomy Meta In Options diff --git a/docs/description/WordPressVIPMinimum_Performance_WPQueryParams.md b/docs/description/WordPressVIPMinimum_Performance_WPQueryParams.md deleted file mode 100644 index eade53d9..00000000 --- a/docs/description/WordPressVIPMinimum_Performance_WPQueryParams.md +++ /dev/null @@ -1 +0,0 @@ -Performance: WP Query Params diff --git a/docs/description/WordPressVIPMinimum_Security_EscapingVoidReturnFunctions.md b/docs/description/WordPressVIPMinimum_Security_EscapingVoidReturnFunctions.md deleted file mode 100644 index 2a80933e..00000000 --- a/docs/description/WordPressVIPMinimum_Security_EscapingVoidReturnFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Security: Escaping Void Return Functions diff --git a/docs/description/WordPressVIPMinimum_Security_ExitAfterRedirect.md b/docs/description/WordPressVIPMinimum_Security_ExitAfterRedirect.md deleted file mode 100644 index 17e69957..00000000 --- a/docs/description/WordPressVIPMinimum_Security_ExitAfterRedirect.md +++ /dev/null @@ -1 +0,0 @@ -Security: Exit After Redirect diff --git a/docs/description/WordPressVIPMinimum_Security_Mustache.md b/docs/description/WordPressVIPMinimum_Security_Mustache.md deleted file mode 100644 index 6998ad18..00000000 --- a/docs/description/WordPressVIPMinimum_Security_Mustache.md +++ /dev/null @@ -1 +0,0 @@ -Security: Mustache diff --git a/docs/description/WordPressVIPMinimum_Security_PHPFilterFunctions.md b/docs/description/WordPressVIPMinimum_Security_PHPFilterFunctions.md deleted file mode 100644 index 19420787..00000000 --- a/docs/description/WordPressVIPMinimum_Security_PHPFilterFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Security: PHP Filter Functions diff --git a/docs/description/WordPressVIPMinimum_Security_ProperEscapingFunction.md b/docs/description/WordPressVIPMinimum_Security_ProperEscapingFunction.md deleted file mode 100644 index 242d7ae5..00000000 --- a/docs/description/WordPressVIPMinimum_Security_ProperEscapingFunction.md +++ /dev/null @@ -1 +0,0 @@ -Security: Proper Escaping Function diff --git a/docs/description/WordPressVIPMinimum_Security_StaticStrreplace.md b/docs/description/WordPressVIPMinimum_Security_StaticStrreplace.md deleted file mode 100644 index cfad4463..00000000 --- a/docs/description/WordPressVIPMinimum_Security_StaticStrreplace.md +++ /dev/null @@ -1 +0,0 @@ -Security: Static Strreplace diff --git a/docs/description/WordPressVIPMinimum_Security_Twig.md b/docs/description/WordPressVIPMinimum_Security_Twig.md deleted file mode 100644 index 6929e567..00000000 --- a/docs/description/WordPressVIPMinimum_Security_Twig.md +++ /dev/null @@ -1 +0,0 @@ -Security: Twig diff --git a/docs/description/WordPressVIPMinimum_Security_Underscorejs.md b/docs/description/WordPressVIPMinimum_Security_Underscorejs.md deleted file mode 100644 index 2e3781bd..00000000 --- a/docs/description/WordPressVIPMinimum_Security_Underscorejs.md +++ /dev/null @@ -1 +0,0 @@ -Security: Underscorejs diff --git a/docs/description/WordPressVIPMinimum_Security_Vuejs.md b/docs/description/WordPressVIPMinimum_Security_Vuejs.md deleted file mode 100644 index 03f25a1e..00000000 --- a/docs/description/WordPressVIPMinimum_Security_Vuejs.md +++ /dev/null @@ -1 +0,0 @@ -Security: Vuejs diff --git a/docs/description/WordPressVIPMinimum_UserExperience_AdminBarRemoval.md b/docs/description/WordPressVIPMinimum_UserExperience_AdminBarRemoval.md deleted file mode 100644 index c6ae6c90..00000000 --- a/docs/description/WordPressVIPMinimum_UserExperience_AdminBarRemoval.md +++ /dev/null @@ -1 +0,0 @@ -User Experience: Admin Bar Removal diff --git a/docs/description/WordPressVIPMinimum_Variables_RestrictedVariables.md b/docs/description/WordPressVIPMinimum_Variables_RestrictedVariables.md deleted file mode 100644 index 0866bf11..00000000 --- a/docs/description/WordPressVIPMinimum_Variables_RestrictedVariables.md +++ /dev/null @@ -1 +0,0 @@ -Variables: Restricted Variables diff --git a/docs/description/WordPressVIPMinimum_Variables_ServerVariables.md b/docs/description/WordPressVIPMinimum_Variables_ServerVariables.md deleted file mode 100644 index 31446ae6..00000000 --- a/docs/description/WordPressVIPMinimum_Variables_ServerVariables.md +++ /dev/null @@ -1 +0,0 @@ -Variables: Server Variables diff --git a/docs/description/WordPress_Arrays_ArrayDeclarationSpacing.md b/docs/description/WordPress_Arrays_ArrayDeclarationSpacing.md deleted file mode 100644 index d53f12b4..00000000 --- a/docs/description/WordPress_Arrays_ArrayDeclarationSpacing.md +++ /dev/null @@ -1 +0,0 @@ -Arrays: Array Declaration Spacing diff --git a/docs/description/WordPress_Arrays_ArrayIndentation.md b/docs/description/WordPress_Arrays_ArrayIndentation.md deleted file mode 100644 index 7f84c261..00000000 --- a/docs/description/WordPress_Arrays_ArrayIndentation.md +++ /dev/null @@ -1 +0,0 @@ -Arrays: Array Indentation diff --git a/docs/description/WordPress_Arrays_ArrayKeySpacingRestrictions.md b/docs/description/WordPress_Arrays_ArrayKeySpacingRestrictions.md deleted file mode 100644 index ecb44460..00000000 --- a/docs/description/WordPress_Arrays_ArrayKeySpacingRestrictions.md +++ /dev/null @@ -1 +0,0 @@ -Arrays: Array Key Spacing Restrictions diff --git a/docs/description/WordPress_Arrays_MultipleStatementAlignment.md b/docs/description/WordPress_Arrays_MultipleStatementAlignment.md deleted file mode 100644 index e9993bf5..00000000 --- a/docs/description/WordPress_Arrays_MultipleStatementAlignment.md +++ /dev/null @@ -1 +0,0 @@ -Arrays: Multiple Statement Alignment diff --git a/docs/description/WordPress_CodeAnalysis_AssignmentInTernaryCondition.md b/docs/description/WordPress_CodeAnalysis_AssignmentInTernaryCondition.md deleted file mode 100644 index 84afc695..00000000 --- a/docs/description/WordPress_CodeAnalysis_AssignmentInTernaryCondition.md +++ /dev/null @@ -1 +0,0 @@ -Code Analysis: Assignment In Ternary Condition diff --git a/docs/description/WordPress_CodeAnalysis_EscapedNotTranslated.md b/docs/description/WordPress_CodeAnalysis_EscapedNotTranslated.md deleted file mode 100644 index 2e06e066..00000000 --- a/docs/description/WordPress_CodeAnalysis_EscapedNotTranslated.md +++ /dev/null @@ -1 +0,0 @@ -Code Analysis: Escaped Not Translated diff --git a/docs/description/WordPress_DB_DirectDatabaseQuery.md b/docs/description/WordPress_DB_DirectDatabaseQuery.md deleted file mode 100644 index 9a6855d0..00000000 --- a/docs/description/WordPress_DB_DirectDatabaseQuery.md +++ /dev/null @@ -1 +0,0 @@ -DB: Direct Database Query diff --git a/docs/description/WordPress_DB_PreparedSQL.md b/docs/description/WordPress_DB_PreparedSQL.md deleted file mode 100644 index 768043c6..00000000 --- a/docs/description/WordPress_DB_PreparedSQL.md +++ /dev/null @@ -1 +0,0 @@ -DB: Prepared SQL diff --git a/docs/description/WordPress_DB_PreparedSQLPlaceholders.md b/docs/description/WordPress_DB_PreparedSQLPlaceholders.md deleted file mode 100644 index c5d6a41a..00000000 --- a/docs/description/WordPress_DB_PreparedSQLPlaceholders.md +++ /dev/null @@ -1 +0,0 @@ -DB: Prepared SQL Placeholders diff --git a/docs/description/WordPress_DB_RestrictedClasses.md b/docs/description/WordPress_DB_RestrictedClasses.md deleted file mode 100644 index 8dc75530..00000000 --- a/docs/description/WordPress_DB_RestrictedClasses.md +++ /dev/null @@ -1 +0,0 @@ -DB: Restricted Classes diff --git a/docs/description/WordPress_DB_RestrictedFunctions.md b/docs/description/WordPress_DB_RestrictedFunctions.md deleted file mode 100644 index 461fdd20..00000000 --- a/docs/description/WordPress_DB_RestrictedFunctions.md +++ /dev/null @@ -1 +0,0 @@ -DB: Restricted Functions diff --git a/docs/description/WordPress_DB_SlowDBQuery.md b/docs/description/WordPress_DB_SlowDBQuery.md deleted file mode 100644 index 7e6713a6..00000000 --- a/docs/description/WordPress_DB_SlowDBQuery.md +++ /dev/null @@ -1 +0,0 @@ -DB: Slow DB Query diff --git a/docs/description/WordPress_DateTime_CurrentTimeTimestamp.md b/docs/description/WordPress_DateTime_CurrentTimeTimestamp.md deleted file mode 100644 index 735ee840..00000000 --- a/docs/description/WordPress_DateTime_CurrentTimeTimestamp.md +++ /dev/null @@ -1 +0,0 @@ -Date Time: Current Time Timestamp diff --git a/docs/description/WordPress_DateTime_RestrictedFunctions.md b/docs/description/WordPress_DateTime_RestrictedFunctions.md deleted file mode 100644 index ef8f8650..00000000 --- a/docs/description/WordPress_DateTime_RestrictedFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Date Time: Restricted Functions diff --git a/docs/description/WordPress_Files_FileName.md b/docs/description/WordPress_Files_FileName.md deleted file mode 100644 index 485f66a9..00000000 --- a/docs/description/WordPress_Files_FileName.md +++ /dev/null @@ -1 +0,0 @@ -Files: File Name diff --git a/docs/description/WordPress_NamingConventions_PrefixAllGlobals.md b/docs/description/WordPress_NamingConventions_PrefixAllGlobals.md deleted file mode 100644 index a40d50e9..00000000 --- a/docs/description/WordPress_NamingConventions_PrefixAllGlobals.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Prefix All Globals (Deprecated) diff --git a/docs/description/WordPress_NamingConventions_ValidFunctionName.md b/docs/description/WordPress_NamingConventions_ValidFunctionName.md deleted file mode 100644 index be7e56d6..00000000 --- a/docs/description/WordPress_NamingConventions_ValidFunctionName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Function Name (Deprecated) diff --git a/docs/description/WordPress_NamingConventions_ValidHookName.md b/docs/description/WordPress_NamingConventions_ValidHookName.md deleted file mode 100644 index 08db952b..00000000 --- a/docs/description/WordPress_NamingConventions_ValidHookName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Hook Name diff --git a/docs/description/WordPress_NamingConventions_ValidPostTypeSlug.md b/docs/description/WordPress_NamingConventions_ValidPostTypeSlug.md deleted file mode 100644 index f775963a..00000000 --- a/docs/description/WordPress_NamingConventions_ValidPostTypeSlug.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Post Type Slug diff --git a/docs/description/WordPress_NamingConventions_ValidVariableName.md b/docs/description/WordPress_NamingConventions_ValidVariableName.md deleted file mode 100644 index a1a934cb..00000000 --- a/docs/description/WordPress_NamingConventions_ValidVariableName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Variable Name diff --git a/docs/description/WordPress_PHP_DevelopmentFunctions.md b/docs/description/WordPress_PHP_DevelopmentFunctions.md deleted file mode 100644 index 3e5faf34..00000000 --- a/docs/description/WordPress_PHP_DevelopmentFunctions.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Development Functions diff --git a/docs/description/WordPress_PHP_DiscouragedPHPFunctions.md b/docs/description/WordPress_PHP_DiscouragedPHPFunctions.md deleted file mode 100644 index 76e56184..00000000 --- a/docs/description/WordPress_PHP_DiscouragedPHPFunctions.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Discouraged PHP Functions diff --git a/docs/description/WordPress_PHP_DontExtract.md b/docs/description/WordPress_PHP_DontExtract.md deleted file mode 100644 index 50c99adf..00000000 --- a/docs/description/WordPress_PHP_DontExtract.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Dont Extract diff --git a/docs/description/WordPress_PHP_IniSet.md b/docs/description/WordPress_PHP_IniSet.md deleted file mode 100644 index 62c9237a..00000000 --- a/docs/description/WordPress_PHP_IniSet.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Ini Set diff --git a/docs/description/WordPress_PHP_NoSilencedErrors.md b/docs/description/WordPress_PHP_NoSilencedErrors.md deleted file mode 100644 index 6950272d..00000000 --- a/docs/description/WordPress_PHP_NoSilencedErrors.md +++ /dev/null @@ -1 +0,0 @@ -PHP: No Silenced Errors diff --git a/docs/description/WordPress_PHP_POSIXFunctions.md b/docs/description/WordPress_PHP_POSIXFunctions.md deleted file mode 100644 index eb723b6d..00000000 --- a/docs/description/WordPress_PHP_POSIXFunctions.md +++ /dev/null @@ -1 +0,0 @@ -PHP: POSIX Functions diff --git a/docs/description/WordPress_PHP_PregQuoteDelimiter.md b/docs/description/WordPress_PHP_PregQuoteDelimiter.md deleted file mode 100644 index 90df2a27..00000000 --- a/docs/description/WordPress_PHP_PregQuoteDelimiter.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Preg Quote Delimiter diff --git a/docs/description/WordPress_PHP_RestrictedPHPFunctions.md b/docs/description/WordPress_PHP_RestrictedPHPFunctions.md deleted file mode 100644 index be6bebee..00000000 --- a/docs/description/WordPress_PHP_RestrictedPHPFunctions.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Restricted PHP Functions diff --git a/docs/description/WordPress_PHP_StrictInArray.md b/docs/description/WordPress_PHP_StrictInArray.md deleted file mode 100644 index f35ebb44..00000000 --- a/docs/description/WordPress_PHP_StrictInArray.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Strict In Array diff --git a/docs/description/WordPress_PHP_TypeCasts.md b/docs/description/WordPress_PHP_TypeCasts.md deleted file mode 100644 index 6d40d9a3..00000000 --- a/docs/description/WordPress_PHP_TypeCasts.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Type Casts diff --git a/docs/description/WordPress_PHP_YodaConditions.md b/docs/description/WordPress_PHP_YodaConditions.md deleted file mode 100644 index ccdfb309..00000000 --- a/docs/description/WordPress_PHP_YodaConditions.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Yoda Conditions diff --git a/docs/description/WordPress_Security_EscapeOutput.md b/docs/description/WordPress_Security_EscapeOutput.md deleted file mode 100644 index 64ed7d74..00000000 --- a/docs/description/WordPress_Security_EscapeOutput.md +++ /dev/null @@ -1 +0,0 @@ -Security: Escape Output diff --git a/docs/description/WordPress_Security_NonceVerification.md b/docs/description/WordPress_Security_NonceVerification.md deleted file mode 100644 index c26b23ba..00000000 --- a/docs/description/WordPress_Security_NonceVerification.md +++ /dev/null @@ -1 +0,0 @@ -Security: Nonce Verification diff --git a/docs/description/WordPress_Security_PluginMenuSlug.md b/docs/description/WordPress_Security_PluginMenuSlug.md deleted file mode 100644 index cf6eebf2..00000000 --- a/docs/description/WordPress_Security_PluginMenuSlug.md +++ /dev/null @@ -1 +0,0 @@ -Security: Plugin Menu Slug diff --git a/docs/description/WordPress_Security_SafeRedirect.md b/docs/description/WordPress_Security_SafeRedirect.md deleted file mode 100644 index 2f93c683..00000000 --- a/docs/description/WordPress_Security_SafeRedirect.md +++ /dev/null @@ -1 +0,0 @@ -Security: Safe Redirect diff --git a/docs/description/WordPress_Security_ValidatedSanitizedInput.md b/docs/description/WordPress_Security_ValidatedSanitizedInput.md deleted file mode 100644 index bfd49c83..00000000 --- a/docs/description/WordPress_Security_ValidatedSanitizedInput.md +++ /dev/null @@ -1 +0,0 @@ -Security: Validated Sanitized Input diff --git a/docs/description/WordPress_Utils_I18nTextDomainFixer.md b/docs/description/WordPress_Utils_I18nTextDomainFixer.md deleted file mode 100644 index 74aa7236..00000000 --- a/docs/description/WordPress_Utils_I18nTextDomainFixer.md +++ /dev/null @@ -1 +0,0 @@ -Utils: I18n Text Domain Fixer diff --git a/docs/description/WordPress_WP_AlternativeFunctions.md b/docs/description/WordPress_WP_AlternativeFunctions.md deleted file mode 100644 index 6b87d0a0..00000000 --- a/docs/description/WordPress_WP_AlternativeFunctions.md +++ /dev/null @@ -1 +0,0 @@ -WP: Alternative Functions diff --git a/docs/description/WordPress_WP_Capabilities.md b/docs/description/WordPress_WP_Capabilities.md deleted file mode 100644 index 2060acaf..00000000 --- a/docs/description/WordPress_WP_Capabilities.md +++ /dev/null @@ -1 +0,0 @@ -WP: Capabilities diff --git a/docs/description/WordPress_WP_CapitalPDangit.md b/docs/description/WordPress_WP_CapitalPDangit.md deleted file mode 100644 index fc89c4a4..00000000 --- a/docs/description/WordPress_WP_CapitalPDangit.md +++ /dev/null @@ -1 +0,0 @@ -WP: Capital P Dangit diff --git a/docs/description/WordPress_WP_ClassNameCase.md b/docs/description/WordPress_WP_ClassNameCase.md deleted file mode 100644 index 144fdf77..00000000 --- a/docs/description/WordPress_WP_ClassNameCase.md +++ /dev/null @@ -1 +0,0 @@ -WP: Class Name Case diff --git a/docs/description/WordPress_WP_CronInterval.md b/docs/description/WordPress_WP_CronInterval.md deleted file mode 100644 index a7b09fa9..00000000 --- a/docs/description/WordPress_WP_CronInterval.md +++ /dev/null @@ -1 +0,0 @@ -WP: Cron Interval diff --git a/docs/description/WordPress_WP_DeprecatedClasses.md b/docs/description/WordPress_WP_DeprecatedClasses.md deleted file mode 100644 index 37366a24..00000000 --- a/docs/description/WordPress_WP_DeprecatedClasses.md +++ /dev/null @@ -1 +0,0 @@ -WP: Deprecated Classes diff --git a/docs/description/WordPress_WP_DeprecatedFunctions.md b/docs/description/WordPress_WP_DeprecatedFunctions.md deleted file mode 100644 index 964f5341..00000000 --- a/docs/description/WordPress_WP_DeprecatedFunctions.md +++ /dev/null @@ -1 +0,0 @@ -WP: Deprecated Functions diff --git a/docs/description/WordPress_WP_DeprecatedParameterValues.md b/docs/description/WordPress_WP_DeprecatedParameterValues.md deleted file mode 100644 index 6e9c0f52..00000000 --- a/docs/description/WordPress_WP_DeprecatedParameterValues.md +++ /dev/null @@ -1 +0,0 @@ -WP: Deprecated Parameter Values diff --git a/docs/description/WordPress_WP_DeprecatedParameters.md b/docs/description/WordPress_WP_DeprecatedParameters.md deleted file mode 100644 index 93ef610e..00000000 --- a/docs/description/WordPress_WP_DeprecatedParameters.md +++ /dev/null @@ -1 +0,0 @@ -WP: Deprecated Parameters diff --git a/docs/description/WordPress_WP_DiscouragedConstants.md b/docs/description/WordPress_WP_DiscouragedConstants.md deleted file mode 100644 index f7829195..00000000 --- a/docs/description/WordPress_WP_DiscouragedConstants.md +++ /dev/null @@ -1 +0,0 @@ -WP: Discouraged Constants diff --git a/docs/description/WordPress_WP_DiscouragedFunctions.md b/docs/description/WordPress_WP_DiscouragedFunctions.md deleted file mode 100644 index e2eea31a..00000000 --- a/docs/description/WordPress_WP_DiscouragedFunctions.md +++ /dev/null @@ -1 +0,0 @@ -WP: Discouraged Functions diff --git a/docs/description/WordPress_WP_EnqueuedResourceParameters.md b/docs/description/WordPress_WP_EnqueuedResourceParameters.md deleted file mode 100644 index 653aea8b..00000000 --- a/docs/description/WordPress_WP_EnqueuedResourceParameters.md +++ /dev/null @@ -1 +0,0 @@ -WP: Enqueued Resource Parameters diff --git a/docs/description/WordPress_WP_EnqueuedResources.md b/docs/description/WordPress_WP_EnqueuedResources.md deleted file mode 100644 index f3a7ba90..00000000 --- a/docs/description/WordPress_WP_EnqueuedResources.md +++ /dev/null @@ -1 +0,0 @@ -WP: Enqueued Resources diff --git a/docs/description/WordPress_WP_GlobalVariablesOverride.md b/docs/description/WordPress_WP_GlobalVariablesOverride.md deleted file mode 100644 index e1a76ca3..00000000 --- a/docs/description/WordPress_WP_GlobalVariablesOverride.md +++ /dev/null @@ -1 +0,0 @@ -WP: Global Variables Override diff --git a/docs/description/WordPress_WP_I18n.md b/docs/description/WordPress_WP_I18n.md deleted file mode 100644 index 45d90f4a..00000000 --- a/docs/description/WordPress_WP_I18n.md +++ /dev/null @@ -1 +0,0 @@ -WP: I18n diff --git a/docs/description/WordPress_WP_PostsPerPage.md b/docs/description/WordPress_WP_PostsPerPage.md deleted file mode 100644 index ff25b47f..00000000 --- a/docs/description/WordPress_WP_PostsPerPage.md +++ /dev/null @@ -1 +0,0 @@ -WP: Posts Per Page diff --git a/docs/description/WordPress_WhiteSpace_CastStructureSpacing.md b/docs/description/WordPress_WhiteSpace_CastStructureSpacing.md deleted file mode 100644 index a7d68edb..00000000 --- a/docs/description/WordPress_WhiteSpace_CastStructureSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Cast Structure Spacing diff --git a/docs/description/WordPress_WhiteSpace_ControlStructureSpacing.md b/docs/description/WordPress_WhiteSpace_ControlStructureSpacing.md deleted file mode 100644 index 47b6e51a..00000000 --- a/docs/description/WordPress_WhiteSpace_ControlStructureSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Control Structure Spacing diff --git a/docs/description/WordPress_WhiteSpace_ObjectOperatorSpacing.md b/docs/description/WordPress_WhiteSpace_ObjectOperatorSpacing.md deleted file mode 100644 index 8a6091ab..00000000 --- a/docs/description/WordPress_WhiteSpace_ObjectOperatorSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Object Operator Spacing diff --git a/docs/description/WordPress_WhiteSpace_OperatorSpacing.md b/docs/description/WordPress_WhiteSpace_OperatorSpacing.md deleted file mode 100644 index ed3a85be..00000000 --- a/docs/description/WordPress_WhiteSpace_OperatorSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Operator Spacing diff --git a/docs/description/description.json b/docs/description/description.json index 77cf1ef3..dd077acc 100644 --- a/docs/description/description.json +++ b/docs/description/description.json @@ -88,20 +88,8 @@ "description" : "lineLimit" } ] }, { - "patternId" : "Drupal_Arrays_DisallowLongArraySyntax", - "title" : "Arrays: Disallow Long Array Syntax", - "parameters" : [ ] -}, { - "patternId" : "Drupal_CSS_ClassDefinitionNameSpacing", - "title" : "CSS: Class Definition Name Spacing", - "parameters" : [ ] -}, { - "patternId" : "Drupal_CSS_ColourDefinition", - "title" : "CSS: Colour Definition", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Classes_ClassCreateInstance", - "title" : "Classes: Class Create Instance", + "patternId" : "Drupal_Attributes_ValidHookName", + "title" : "Attributes: Valid Hook Name", "parameters" : [ ] }, { "patternId" : "Drupal_Classes_ClassDeclaration", @@ -110,42 +98,22 @@ "name" : "indent", "description" : "indent" } ] -}, { - "patternId" : "Drupal_Classes_ClassFileName", - "title" : "Classes: Class File Name", - "parameters" : [ ] }, { "patternId" : "Drupal_Classes_FullyQualifiedNamespace", "title" : "Classes: Fully Qualified Namespace", "parameters" : [ ] -}, { - "patternId" : "Drupal_Classes_InterfaceName", - "title" : "Classes: Interface Name", - "parameters" : [ ] }, { "patternId" : "Drupal_Classes_PropertyDeclaration", "title" : "Classes: Property Declaration", "parameters" : [ ] -}, { - "patternId" : "Drupal_Classes_UnusedUseStatement", - "title" : "Classes: Unused Use Statement", - "parameters" : [ ] }, { "patternId" : "Drupal_Classes_UseGlobalClass", "title" : "Classes: Use Global Class", "parameters" : [ ] -}, { - "patternId" : "Drupal_Classes_UseLeadingBackslash", - "title" : "Classes: Use Leading Backslash", - "parameters" : [ ] }, { "patternId" : "Drupal_Commenting_ClassComment", "title" : "Commenting: Class Comment", "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_DataTypeNamespace", - "title" : "Commenting: Data Type Namespace", - "parameters" : [ ] }, { "patternId" : "Drupal_Commenting_Deprecated", "title" : "Commenting: Deprecated", @@ -205,15 +173,10 @@ }, { "patternId" : "Drupal_ControlStructures_ControlSignature", "title" : "Control Structures: Control Signature", - "parameters" : [ ] -}, { - "patternId" : "Drupal_ControlStructures_ElseIf", - "title" : "Control Structures: Else If", - "parameters" : [ ] -}, { - "patternId" : "Drupal_ControlStructures_InlineControlStructure", - "title" : "Control Structures: Inline Control Structure", - "parameters" : [ ] + "parameters" : [ { + "name" : "requiredSpacesBeforeColon", + "description" : "requiredSpacesBeforeColon" + } ] }, { "patternId" : "Drupal_Files_EndFileNewline", "title" : "Files: End File Newline", @@ -262,10 +225,6 @@ "name" : "error", "description" : "error" } ] -}, { - "patternId" : "Drupal_Functions_FunctionDeclaration", - "title" : "Functions: Function Declaration", - "parameters" : [ ] }, { "patternId" : "Drupal_Functions_MultiLineFunctionDeclaration", "title" : "Functions: Multi Line Function Declaration", @@ -293,14 +252,14 @@ "patternId" : "Drupal_InfoFiles_Required", "title" : "Info Files: Required", "parameters" : [ ] -}, { - "patternId" : "Drupal_Methods_MethodDeclaration", - "title" : "Methods: Method Declaration", - "parameters" : [ ] }, { "patternId" : "Drupal_NamingConventions_ValidClassName", "title" : "Naming Conventions: Valid Class Name", "parameters" : [ ] +}, { + "patternId" : "Drupal_NamingConventions_ValidEnumCase", + "title" : "Naming Conventions: Valid Enum Case", + "parameters" : [ ] }, { "patternId" : "Drupal_NamingConventions_ValidFunctionName", "title" : "Naming Conventions: Valid Function Name", @@ -369,10 +328,6 @@ "patternId" : "Drupal_Semantics_UnsilencedDeprecation", "title" : "Semantics: Unsilenced Deprecation", "parameters" : [ ] -}, { - "patternId" : "Drupal_Strings_UnnecessaryStringConcat", - "title" : "Strings: Unnecessary String Concat", - "parameters" : [ ] }, { "patternId" : "Drupal_WhiteSpace_CloseBracketSpacing", "title" : "White Space: Close Bracket Spacing", @@ -385,10 +340,6 @@ "patternId" : "Drupal_WhiteSpace_EmptyLines", "title" : "White Space: Empty Lines", "parameters" : [ ] -}, { - "patternId" : "Drupal_WhiteSpace_Namespace", - "title" : "White Space: Namespace", - "parameters" : [ ] }, { "patternId" : "Drupal_WhiteSpace_ObjectOperatorIndent", "title" : "White Space: Object Operator Indent", @@ -923,1225 +874,980 @@ "description" : "ignoreNewlines" } ] }, { - "patternId" : "MEQP1_Classes_Mysql4", - "title" : "Classes: Mysql4", + "patternId" : "MySource_CSS_BrowserSpecificStyles", + "title" : "CSS: Browser Specific Styles", "parameters" : [ ] }, { - "patternId" : "MEQP1_Classes_ObjectInstantiation", - "title" : "Classes: Object Instantiation", + "patternId" : "MySource_Channels_DisallowSelfActions", + "title" : "Channels: Disallow Self Actions", "parameters" : [ ] }, { - "patternId" : "MEQP1_Classes_ResourceModel", - "title" : "Classes: Resource Model", + "patternId" : "MySource_Channels_IncludeOwnSystem", + "title" : "Channels: Include Own System", "parameters" : [ ] }, { - "patternId" : "MEQP1_CodeAnalysis_EmptyBlock", - "title" : "Code Analysis: Empty Block", + "patternId" : "MySource_Channels_IncludeSystem", + "title" : "Channels: Include System", "parameters" : [ ] }, { - "patternId" : "MEQP1_Exceptions_DirectThrow", - "title" : "Exceptions: Direct Throw", + "patternId" : "MySource_Channels_UnusedSystem", + "title" : "Channels: Unused System", "parameters" : [ ] }, { - "patternId" : "MEQP1_Exceptions_Namespace", - "title" : "Exceptions: Namespace", + "patternId" : "MySource_Commenting_FunctionComment", + "title" : "Commenting: Function Comment", "parameters" : [ ] }, { - "patternId" : "MEQP1_PHP_Goto", - "title" : "PHP: Goto", + "patternId" : "MySource_Debug_DebugCode", + "title" : "Debug: Debug Code", "parameters" : [ ] }, { - "patternId" : "MEQP1_PHP_PrivateClassMember", - "title" : "PHP: Private Class Member", + "patternId" : "MySource_Debug_FirebugConsole", + "title" : "Debug: Firebug Console", "parameters" : [ ] }, { - "patternId" : "MEQP1_PHP_Syntax", - "title" : "PHP: Syntax", + "patternId" : "MySource_Objects_AssignThis", + "title" : "Objects: Assign This", "parameters" : [ ] }, { - "patternId" : "MEQP1_PHP_Var", - "title" : "PHP: Var", + "patternId" : "MySource_Objects_CreateWidgetTypeCallback", + "title" : "Objects: Create Widget Type Callback", "parameters" : [ ] }, { - "patternId" : "MEQP1_Performance_CollectionCount", - "title" : "Performance: Collection Count", + "patternId" : "MySource_Objects_DisallowNewWidget", + "title" : "Objects: Disallow New Widget", "parameters" : [ ] }, { - "patternId" : "MEQP1_Performance_EmptyCheck", - "title" : "Performance: Empty Check", + "patternId" : "MySource_PHP_AjaxNullComparison", + "title" : "PHP: Ajax Null Comparison", "parameters" : [ ] }, { - "patternId" : "MEQP1_Performance_InefficientMethods", - "title" : "Performance: Inefficient Methods", + "patternId" : "MySource_PHP_EvalObjectFactory", + "title" : "PHP: Eval Object Factory", "parameters" : [ ] }, { - "patternId" : "MEQP1_Performance_Loop", - "title" : "Performance: Loop", + "patternId" : "MySource_PHP_GetRequestData", + "title" : "PHP: Get Request Data", "parameters" : [ ] }, { - "patternId" : "MEQP1_SQL_MissedIndexes", - "title" : "SQL: Missed Indexes", + "patternId" : "MySource_PHP_ReturnFunctionValue", + "title" : "PHP: Return Function Value", "parameters" : [ ] }, { - "patternId" : "MEQP1_SQL_RawQuery", - "title" : "SQL: Raw Query", + "patternId" : "MySource_Strings_JoinStrings", + "title" : "Strings: Join Strings", "parameters" : [ ] }, { - "patternId" : "MEQP1_SQL_SlowQuery", - "title" : "SQL: Slow Query", + "patternId" : "PEAR_Classes_ClassDeclaration", + "title" : "Class Declarations", + "description" : "The opening brace of a class must be on the line after the definition by itself.", "parameters" : [ ] }, { - "patternId" : "MEQP1_Security_Acl", - "title" : "Security: Acl", + "patternId" : "PEAR_Commenting_ClassComment", + "title" : "Class Comments", + "description" : "Classes and interfaces must have a non-empty doc comment. The short description must be on the second line of the comment. Each description must have one blank comment line before and after. There must be one blank line before the tags in the comments. A @version tag must be in Release: package_version format.", "parameters" : [ ] }, { - "patternId" : "MEQP1_Security_DiscouragedFunction", - "title" : "Security: Discouraged Function", + "patternId" : "PEAR_Commenting_FileComment", + "title" : "File Comments", + "description" : "Files must have a non-empty doc comment. The short description must be on the second line of the comment. Each description must have one blank comment line before and after. There must be one blank line before the tags in the comments. There must be a category, package, author, license, and link tag. There may only be one category, package, subpackage, license, version, since and deprecated tag", "parameters" : [ ] }, { - "patternId" : "MEQP1_Security_IncludeFile", - "title" : "Security: Include File", - "parameters" : [ ] + "patternId" : "PEAR_Commenting_FunctionComment", + "title" : "Function Comments", + "description" : "Functions must have a non-empty doc comment. The short description must be on the second line of the comment. Each description must have one blank comment line before and after. There must be one blank line before the tags in the comments. There must be a tag for each of the parameters in the right order with the right variable names with a comment. There must be a return tag. Any throw tag must have an exception class.", + "parameters" : [ { + "name" : "minimumVisibility", + "description" : "minimumVisibility" + } ] }, { - "patternId" : "MEQP1_Security_InsecureFunction", - "title" : "Security: Insecure Function", + "patternId" : "PEAR_Commenting_InlineComment", + "title" : "Inline Comments", + "description" : "Perl-style # comments are not allowed.", "parameters" : [ ] }, { - "patternId" : "MEQP1_Security_LanguageConstruct", - "title" : "Security: Language Construct", - "parameters" : [ ] + "patternId" : "PEAR_ControlStructures_ControlSignature", + "title" : "Control Structure Signatures", + "description" : "Control structures should use one space around the parentheses in conditions. The opening brace should be preceded by one space and should be at the end of the line.", + "parameters" : [ { + "name" : "ignoreComments", + "description" : "ignoreComments" + } ] }, { - "patternId" : "MEQP1_Security_Superglobal", - "title" : "Security: Superglobal", - "parameters" : [ ] + "patternId" : "PEAR_ControlStructures_MultiLineCondition", + "title" : "Multi-line If Conditions", + "description" : "Multi-line if conditions should be indented one level and each line should begin with a boolean operator. The end parenthesis should be on a new line.", + "parameters" : [ { + "name" : "indent", + "description" : "indent" + } ] }, { - "patternId" : "MEQP1_Stdlib_DateTime", - "title" : "Stdlib: Date Time", + "patternId" : "PEAR_Files_IncludingFile", + "title" : "Including Code", + "description" : "Anywhere you are unconditionally including a class file, use require_once. Anywhere you are conditionally including a class file (for example, factory methods), use include_once. Either of these will ensure that class files are included only once. They share the same file list, so you don't need to worry about mixing them - a file included with require_once will not be included again by include_once.", "parameters" : [ ] }, { - "patternId" : "MEQP1_Strings_RegEx", - "title" : "Strings: Reg Ex", - "parameters" : [ ] + "patternId" : "PEAR_Formatting_MultiLineAssignment", + "title" : "Multi-Line Assignment", + "description" : "Multi-line assignment should have the equals sign be the first item on the second line indented correctly.", + "parameters" : [ { + "name" : "indent", + "description" : "indent" + } ] }, { - "patternId" : "MEQP1_Strings_StringConcat", - "title" : "Strings: String Concat", - "parameters" : [ ] + "patternId" : "PEAR_Functions_FunctionCallSignature", + "title" : "Function Calls", + "description" : "Functions should be called with no spaces between the function name, the opening parenthesis, and the first parameter; and no space between the last parameter, the closing parenthesis, and the semicolon.", + "parameters" : [ { + "name" : "indent", + "description" : "indent" + }, { + "name" : "allowMultipleArguments", + "description" : "allowMultipleArguments" + }, { + "name" : "requiredSpacesAfterOpen", + "description" : "requiredSpacesAfterOpen" + }, { + "name" : "requiredSpacesBeforeClose", + "description" : "requiredSpacesBeforeClose" + } ] }, { - "patternId" : "MEQP1_Strings_StringPosition", - "title" : "Strings: String Position", - "parameters" : [ ] + "patternId" : "PEAR_Functions_FunctionDeclaration", + "title" : "Function Declarations", + "description" : "There should be exactly 1 space after the function keyword and 1 space on each side of the use keyword. Closures should use the Kernighan/Ritchie Brace style and other single-line functions should use the BSD/Allman style. Multi-line function declarations should have the parameter lists indented one level with the closing parenthesis on a newline followed by a single space and the opening brace of the function.", + "parameters" : [ { + "name" : "indent", + "description" : "indent" + } ] }, { - "patternId" : "MEQP1_Templates_XssTemplate", - "title" : "Templates: Xss Template", + "patternId" : "PEAR_Functions_ValidDefaultValue", + "title" : "Default Values in Function Declarations", + "description" : "Arguments with default values go at the end of the argument list.", "parameters" : [ ] }, { - "patternId" : "Magento2Framework_Header_Copyright", - "title" : "Header: Copyright", + "patternId" : "PEAR_NamingConventions_ValidClassName", + "title" : "Class Names", + "description" : "Classes should be given descriptive names. Avoid using abbreviations where possible. Class names should always begin with an uppercase letter. The PEAR class hierarchy is also reflected in the class name, each level of the hierarchy separated with a single underscore.", "parameters" : [ ] }, { - "patternId" : "Magento2Framework_Header_CopyrightAnotherExtensionsFiles", - "title" : "Header: Copyright Another Extensions Files", + "patternId" : "PEAR_NamingConventions_ValidFunctionName", + "title" : "Function and Method Names", + "description" : "Functions and methods should be named using the \"studly caps\" style (also referred to as \"bumpy case\" or \"camel caps\"). Functions should in addition have the package name as a prefix, to avoid name collisions between packages. The initial letter of the name (after the prefix) is lowercase, and each letter that starts a new \"word\" is capitalized.", "parameters" : [ ] }, { - "patternId" : "Magento2Framework_Header_CopyrightGraphQL", - "title" : "Header: Copyright Graph QL", + "patternId" : "PEAR_NamingConventions_ValidVariableName", + "title" : "Variable Names", + "description" : "Private member variable names should be prefixed with an underscore and public/protected variable names should not.", "parameters" : [ ] }, { - "patternId" : "Magento2Framework_Header_License", - "title" : "Header: License", - "parameters" : [ ] + "patternId" : "PEAR_WhiteSpace_ObjectOperatorIndent", + "title" : "Object Operator Indentation", + "description" : "Chained object operators when spread out over multiple lines should be the first thing on the line and be indented by 1 level.", + "parameters" : [ { + "name" : "indent", + "description" : "indent" + }, { + "name" : "multilevel", + "description" : "multilevel" + } ] }, { - "patternId" : "Magento2_Annotation_MethodAnnotationStructure", - "title" : "Annotation: Method Annotation Structure", - "parameters" : [ ] + "patternId" : "PEAR_WhiteSpace_ScopeClosingBrace", + "title" : "Closing Brace Indentation", + "description" : "Closing braces should be indented at the same level as the beginning of the scope.", + "parameters" : [ { + "name" : "indent", + "description" : "indent" + } ] }, { - "patternId" : "Magento2_Annotation_MethodArguments", - "title" : "Annotation: Method Arguments", + "patternId" : "PEAR_WhiteSpace_ScopeIndent", + "title" : "Scope Indentation", + "description" : "Any scope openers except for switch statements should be indented 1 level. This includes classes, functions, and control structures.", "parameters" : [ ] }, { - "patternId" : "Magento2_Classes_AbstractApi", - "title" : "Classes: Abstract Api", + "patternId" : "PHPCompatibility_Attributes_NewAttributes", + "title" : "PHP Compatibility related issue (Attributes): New Attributes", "parameters" : [ ] }, { - "patternId" : "Magento2_Classes_DiscouragedDependencies", - "title" : "Classes: Discouraged Dependencies", + "patternId" : "PHPCompatibility_Classes_ForbiddenClassNameUnderscore", + "title" : "PHP Compatibility related issue (Classes): Forbidden Class Name Underscore", "parameters" : [ ] }, { - "patternId" : "Magento2_CodeAnalysis_EmptyBlock", - "title" : "Code Analysis: Empty Block", + "patternId" : "PHPCompatibility_Classes_ForbiddenExtendingFinalPHPClass", + "title" : "PHP Compatibility related issue (Classes): Forbidden Extending Final PHP Class", "parameters" : [ ] }, { - "patternId" : "Magento2_Commenting_ClassAndInterfacePHPDocFormatting", - "title" : "Commenting: Class And Interface PHP Doc Formatting", + "patternId" : "PHPCompatibility_Classes_NewAbstractProperties", + "title" : "PHP Compatibility related issue (Classes): New Abstract Properties", "parameters" : [ ] }, { - "patternId" : "Magento2_Commenting_ClassPropertyPHPDocFormatting", - "title" : "Commenting: Class Property PHP Doc Formatting", + "patternId" : "PHPCompatibility_Classes_NewAnonymousClasses", + "title" : "PHP Compatibility related issue (Classes): New Anonymous Classes", "parameters" : [ ] }, { - "patternId" : "Magento2_Commenting_ConstantsPHPDocFormatting", - "title" : "Commenting: Constants PHP Doc Formatting", + "patternId" : "PHPCompatibility_Classes_NewClasses", + "title" : "PHP Compatibility related issue (Classes): New Classes", "parameters" : [ ] }, { - "patternId" : "Magento2_Exceptions_DirectThrow", - "title" : "Exceptions: Direct Throw", + "patternId" : "PHPCompatibility_Classes_NewConstVisibility", + "title" : "PHP Compatibility related issue (Classes): New Const Visibility", "parameters" : [ ] }, { - "patternId" : "Magento2_Exceptions_ThrowCatch", - "title" : "Exceptions: Throw Catch", + "patternId" : "PHPCompatibility_Classes_NewConstructorPropertyPromotion", + "title" : "PHP Compatibility related issue (Classes): New Constructor Property Promotion", "parameters" : [ ] }, { - "patternId" : "Magento2_Exceptions_TryProcessSystemResources", - "title" : "Exceptions: Try Process System Resources", + "patternId" : "PHPCompatibility_Classes_NewFinalConstants", + "title" : "PHP Compatibility related issue (Classes): New Final Constants", "parameters" : [ ] }, { - "patternId" : "Magento2_Functions_DiscouragedFunction", - "title" : "Functions: Discouraged Function", - "parameters" : [ { - "name" : "error", - "description" : "error" - } ] -}, { - "patternId" : "Magento2_Functions_FunctionsDeprecatedWithoutArgument", - "title" : "Functions: Functions Deprecated Without Argument", + "patternId" : "PHPCompatibility_Classes_NewFinalProperties", + "title" : "PHP Compatibility related issue (Classes): New Final Properties", "parameters" : [ ] }, { - "patternId" : "Magento2_Functions_StaticFunction", - "title" : "Functions: Static Function", + "patternId" : "PHPCompatibility_Classes_NewLateStaticBinding", + "title" : "PHP Compatibility related issue (Classes): New Late Static Binding", "parameters" : [ ] }, { - "patternId" : "Magento2_GraphQL_AbstractGraphQL", - "title" : "Graph QL: Abstract Graph QL", + "patternId" : "PHPCompatibility_Classes_NewReadonlyClasses", + "title" : "PHP Compatibility related issue (Classes): New Readonly Classes", "parameters" : [ ] }, { - "patternId" : "Magento2_GraphQL_ValidArgumentName", - "title" : "Graph QL: Valid Argument Name", + "patternId" : "PHPCompatibility_Classes_NewReadonlyProperties", + "title" : "PHP Compatibility related issue (Classes): New Readonly Properties", "parameters" : [ ] }, { - "patternId" : "Magento2_GraphQL_ValidEnumValue", - "title" : "Graph QL: Valid Enum Value", + "patternId" : "PHPCompatibility_Classes_NewStaticAvizProperties", + "title" : "PHP Compatibility related issue (Classes): New Static Aviz Properties", "parameters" : [ ] }, { - "patternId" : "Magento2_GraphQL_ValidFieldName", - "title" : "Graph QL: Valid Field Name", + "patternId" : "PHPCompatibility_Classes_NewTypedConstants", + "title" : "PHP Compatibility related issue (Classes): New Typed Constants", "parameters" : [ ] }, { - "patternId" : "Magento2_GraphQL_ValidTopLevelFieldName", - "title" : "Graph QL: Valid Top Level Field Name", + "patternId" : "PHPCompatibility_Classes_NewTypedProperties", + "title" : "PHP Compatibility related issue (Classes): New Typed Properties", "parameters" : [ ] }, { - "patternId" : "Magento2_GraphQL_ValidTypeName", - "title" : "Graph QL: Valid Type Name", + "patternId" : "PHPCompatibility_Classes_RemovedClasses", + "title" : "PHP Compatibility related issue (Classes): Removed Classes", "parameters" : [ ] }, { - "patternId" : "Magento2_Html_HtmlBinding", - "title" : "Html: Html Binding", + "patternId" : "PHPCompatibility_Classes_RemovedOrphanedParent", + "title" : "PHP Compatibility related issue (Classes): Removed Orphaned Parent", "parameters" : [ ] }, { - "patternId" : "Magento2_Html_HtmlClosingVoidTags", - "title" : "Html: Html Closing Void Tags", + "patternId" : "PHPCompatibility_Constants_NewConstants", + "title" : "PHP Compatibility related issue (Constants): New Constants", "parameters" : [ ] }, { - "patternId" : "Magento2_Html_HtmlCollapsibleAttribute", - "title" : "Html: Html Collapsible Attribute", + "patternId" : "PHPCompatibility_Constants_NewConstantsInTraits", + "title" : "PHP Compatibility related issue (Constants): New Constants In Traits", "parameters" : [ ] }, { - "patternId" : "Magento2_Html_HtmlDirective", - "title" : "Html: Html Directive", + "patternId" : "PHPCompatibility_Constants_NewMagicClassConstant", + "title" : "PHP Compatibility related issue (Constants): New Magic Class Constant", "parameters" : [ ] }, { - "patternId" : "Magento2_Html_HtmlSelfClosingTags", - "title" : "Html: Html Self Closing Tags", + "patternId" : "PHPCompatibility_Constants_RemovedConstants", + "title" : "PHP Compatibility related issue (Constants): Removed Constants", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_AbstractBlock", - "title" : "Legacy: Abstract Block", + "patternId" : "PHPCompatibility_ControlStructures_DiscouragedSwitchContinue", + "title" : "PHP Compatibility related issue (Control Structures): Discouraged Switch Continue", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_ClassReferencesInConfigurationFiles", - "title" : "Legacy: Class References In Configuration Files", + "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueOutsideLoop", + "title" : "PHP Compatibility related issue (Control Structures): Forbidden Break Continue Outside Loop", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_DiConfig", - "title" : "Legacy: Di Config", + "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueVariableArguments", + "title" : "PHP Compatibility related issue (Control Structures): Forbidden Break Continue Variable Arguments", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_EmailTemplate", - "title" : "Legacy: Email Template", + "patternId" : "PHPCompatibility_ControlStructures_ForbiddenSwitchWithMultipleDefaultBlocks", + "title" : "PHP Compatibility related issue (Control Structures): Forbidden Switch With Multiple Default Blocks", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_EscapeMethodsOnBlockClass", - "title" : "Legacy: Escape Methods On Block Class", + "patternId" : "PHPCompatibility_ControlStructures_NewExecutionDirectives", + "title" : "PHP Compatibility related issue (Control Structures): New Execution Directives", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_InstallUpgrade", - "title" : "Legacy: Install Upgrade", + "patternId" : "PHPCompatibility_ControlStructures_NewForeachExpressionReferencing", + "title" : "PHP Compatibility related issue (Control Structures): New Foreach Expression Referencing", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_Layout", - "title" : "Legacy: Layout", + "patternId" : "PHPCompatibility_ControlStructures_NewListInForeach", + "title" : "PHP Compatibility related issue (Control Structures): New List In Foreach", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_MageEntity", - "title" : "Legacy: Mage Entity", + "patternId" : "PHPCompatibility_ControlStructures_NewMultiCatch", + "title" : "PHP Compatibility related issue (Control Structures): New Multi Catch", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_ModuleXML", - "title" : "Legacy: Module XML", + "patternId" : "PHPCompatibility_ControlStructures_NewNonCapturingCatch", + "title" : "PHP Compatibility related issue (Control Structures): New Non Capturing Catch", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_ObsoleteAcl", - "title" : "Legacy: Obsolete Acl", + "patternId" : "PHPCompatibility_Extensions_RemovedExtensions", + "title" : "PHP Compatibility related issue (Extensions): Removed Extensions", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_ObsoleteConfigNodes", - "title" : "Legacy: Obsolete Config Nodes", + "patternId" : "PHPCompatibility_FunctionDeclarations_AbstractPrivateMethods", + "title" : "PHP Compatibility related issue (Function Declarations): Abstract Private Methods", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_ObsoleteConnection", - "title" : "Legacy: Obsolete Connection", + "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenFinalPrivateMethods", + "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Final Private Methods", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_ObsoleteMenu", - "title" : "Legacy: Obsolete Menu", + "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals", + "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Parameter Shadow Super Globals", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_ObsoleteSystemConfiguration", - "title" : "Legacy: Obsolete System Configuration", + "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParametersWithSameName", + "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Parameters With Same Name", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_PhtmlTemplate", - "title" : "Legacy: Phtml Template", + "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenToStringParameters", + "title" : "PHP Compatibility related issue (Function Declarations): Forbidden To String Parameters", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_RestrictedCode", - "title" : "Legacy: Restricted Code", + "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenVariableNamesInClosureUse", + "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Variable Names In Closure Use", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_TableName", - "title" : "Legacy: Table Name", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewClosure", + "title" : "PHP Compatibility related issue (Function Declarations): New Closure", "parameters" : [ ] }, { - "patternId" : "Magento2_Legacy_WidgetXML", - "title" : "Legacy: Widget XML", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewExceptionsFromToString", + "title" : "PHP Compatibility related issue (Function Declarations): New Exceptions From To String", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_AvoidId", - "title" : "Less: Avoid Id", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewNullableTypes", + "title" : "PHP Compatibility related issue (Function Declarations): New Nullable Types", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_BracesFormatting", - "title" : "Less: Braces Formatting", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewParamTypeDeclarations", + "title" : "PHP Compatibility related issue (Function Declarations): New Param Type Declarations", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_ClassNaming", - "title" : "Less: Class Naming", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewReturnTypeDeclarations", + "title" : "PHP Compatibility related issue (Function Declarations): New Return Type Declarations", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_ColonSpacing", - "title" : "Less: Colon Spacing", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewTrailingComma", + "title" : "PHP Compatibility related issue (Function Declarations): New Trailing Comma", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_ColourDefinition", - "title" : "Less: Colour Definition", + "patternId" : "PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods", + "title" : "PHP Compatibility related issue (Function Declarations): Non Static Magic Methods", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_CombinatorIndentation", - "title" : "Less: Combinator Indentation", + "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedCallingDestructAfterConstructorExit", + "title" : "PHP Compatibility related issue (Function Declarations): Removed Calling Destruct After Constructor Exit", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_CommentLevels", - "title" : "Less: Comment Levels", + "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedImplicitlyNullableParam", + "title" : "PHP Compatibility related issue (Function Declarations): Removed Implicitly Nullable Param", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_ImportantProperty", - "title" : "Less: Important Property", + "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedOptionalBeforeRequiredParam", + "title" : "PHP Compatibility related issue (Function Declarations): Removed Optional Before Required Param", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_Indentation", - "title" : "Less: Indentation", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - }, { - "name" : "maxIndentLevel", - "description" : "maxIndentLevel" - } ] -}, { - "patternId" : "Magento2_Less_PropertiesLineBreak", - "title" : "Less: Properties Line Break", + "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedReturnByReferenceFromVoid", + "title" : "PHP Compatibility related issue (Function Declarations): Removed Return By Reference From Void", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_PropertiesSorting", - "title" : "Less: Properties Sorting", + "patternId" : "PHPCompatibility_FunctionNameRestrictions_NewMagicMethods", + "title" : "PHP Compatibility related issue (Function Name Restrictions): New Magic Methods", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_Quotes", - "title" : "Less: Quotes", + "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedMagicAutoload", + "title" : "PHP Compatibility related issue (Function Name Restrictions): Removed Magic Autoload", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_SelectorDelimiter", - "title" : "Less: Selector Delimiter", + "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedNamespacedAssert", + "title" : "PHP Compatibility related issue (Function Name Restrictions): Removed Namespaced Assert", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_SemicolonSpacing", - "title" : "Less: Semicolon Spacing", + "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedPHP4StyleConstructors", + "title" : "PHP Compatibility related issue (Function Name Restrictions): Removed PHP4 Style Constructors", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_TypeSelectorConcatenation", - "title" : "Less: Type Selector Concatenation", + "patternId" : "PHPCompatibility_FunctionNameRestrictions_ReservedFunctionNames", + "title" : "PHP Compatibility related issue (Function Name Restrictions): Reserved Function Names", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_TypeSelectors", - "title" : "Less: Type Selectors", - "parameters" : [ ] -}, { - "patternId" : "Magento2_Less_Variables", - "title" : "Less: Variables", + "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsReportCurrentValue", + "title" : "PHP Compatibility related issue (Function Use): Argument Functions Report Current Value", "parameters" : [ ] }, { - "patternId" : "Magento2_Less_ZeroUnits", - "title" : "Less: Zero Units", + "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsUsage", + "title" : "PHP Compatibility related issue (Function Use): Argument Functions Usage", "parameters" : [ ] }, { - "patternId" : "Magento2_Methods_DeprecatedModelMethod", - "title" : "Methods: Deprecated Model Method", + "patternId" : "PHPCompatibility_FunctionUse_NewFunctionParameters", + "title" : "PHP Compatibility related issue (Function Use): New Function Parameters", "parameters" : [ ] }, { - "patternId" : "Magento2_Namespaces_ImportsFromTestNamespace", - "title" : "Namespaces: Imports From Test Namespace", + "patternId" : "PHPCompatibility_FunctionUse_NewFunctions", + "title" : "PHP Compatibility related issue (Function Use): New Functions", "parameters" : [ ] }, { - "patternId" : "Magento2_NamingConvention_InterfaceName", - "title" : "Naming Convention: Interface Name", + "patternId" : "PHPCompatibility_FunctionUse_NewNamedParameters", + "title" : "PHP Compatibility related issue (Function Use): New Named Parameters", "parameters" : [ ] }, { - "patternId" : "Magento2_NamingConvention_ReservedWords", - "title" : "Naming Convention: Reserved Words", + "patternId" : "PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters", + "title" : "PHP Compatibility related issue (Function Use): Optional To Required Function Parameters", "parameters" : [ ] }, { - "patternId" : "Magento2_PHP_ArrayAutovivification", - "title" : "PHP: Array Autovivification", + "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctionParameters", + "title" : "PHP Compatibility related issue (Function Use): Removed Function Parameters", "parameters" : [ ] }, { - "patternId" : "Magento2_PHP_AutogeneratedClassNotInConstructor", - "title" : "PHP: Autogenerated Class Not In Constructor", + "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctions", + "title" : "PHP Compatibility related issue (Function Use): Removed Functions", "parameters" : [ ] }, { - "patternId" : "Magento2_PHP_FinalImplementation", - "title" : "PHP: Final Implementation", + "patternId" : "PHPCompatibility_FunctionUse_RequiredToOptionalFunctionParameters", + "title" : "PHP Compatibility related issue (Function Use): Required To Optional Function Parameters", "parameters" : [ ] }, { - "patternId" : "Magento2_PHP_Goto", - "title" : "PHP: Goto", + "patternId" : "PHPCompatibility_Generators_NewGeneratorReturn", + "title" : "PHP Compatibility related issue (Generators): New Generator Return", "parameters" : [ ] }, { - "patternId" : "Magento2_PHP_LiteralNamespaces", - "title" : "PHP: Literal Namespaces", + "patternId" : "PHPCompatibility_Generators_NewYieldFromComment", + "title" : "PHP Compatibility related issue (Generators): New Yield From Comment", "parameters" : [ ] }, { - "patternId" : "Magento2_PHP_ReturnValueCheck", - "title" : "PHP: Return Value Check", + "patternId" : "PHPCompatibility_IniDirectives_NewIniDirectives", + "title" : "PHP Compatibility related issue (Ini Directives): New Ini Directives", "parameters" : [ ] }, { - "patternId" : "Magento2_PHP_ShortEchoSyntax", - "title" : "PHP: Short Echo Syntax", + "patternId" : "PHPCompatibility_IniDirectives_RemovedIniDirectives", + "title" : "PHP Compatibility related issue (Ini Directives): Removed Ini Directives", "parameters" : [ ] }, { - "patternId" : "Magento2_PHP_Var", - "title" : "PHP: Var", + "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingConst", + "title" : "PHP Compatibility related issue (Initial Value): New Constant Arrays Using Const", "parameters" : [ ] }, { - "patternId" : "Magento2_Performance_ForeachArrayMerge", - "title" : "Performance: Foreach Array Merge", + "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingDefine", + "title" : "PHP Compatibility related issue (Initial Value): New Constant Arrays Using Define", "parameters" : [ ] }, { - "patternId" : "Magento2_SQL_RawQuery", - "title" : "SQL: Raw Query", + "patternId" : "PHPCompatibility_InitialValue_NewConstantScalarExpressions", + "title" : "PHP Compatibility related issue (Initial Value): New Constant Scalar Expressions", "parameters" : [ ] }, { - "patternId" : "Magento2_Security_IncludeFile", - "title" : "Security: Include File", + "patternId" : "PHPCompatibility_InitialValue_NewHeredoc", + "title" : "PHP Compatibility related issue (Initial Value): New Heredoc", "parameters" : [ ] }, { - "patternId" : "Magento2_Security_InsecureFunction", - "title" : "Security: Insecure Function", + "patternId" : "PHPCompatibility_InitialValue_NewNewInDefine", + "title" : "PHP Compatibility related issue (Initial Value): New New In Define", "parameters" : [ ] }, { - "patternId" : "Magento2_Security_LanguageConstruct", - "title" : "Security: Language Construct", + "patternId" : "PHPCompatibility_InitialValue_NewNewInInitializers", + "title" : "PHP Compatibility related issue (Initial Value): New New In Initializers", "parameters" : [ ] }, { - "patternId" : "Magento2_Security_Superglobal", - "title" : "Security: Superglobal", + "patternId" : "PHPCompatibility_Interfaces_InternalInterfaces", + "title" : "PHP Compatibility related issue (Interfaces): Internal Interfaces", "parameters" : [ ] }, { - "patternId" : "Magento2_Security_XssTemplate", - "title" : "Security: Xss Template", + "patternId" : "PHPCompatibility_Interfaces_NewInterfaces", + "title" : "PHP Compatibility related issue (Interfaces): New Interfaces", "parameters" : [ ] }, { - "patternId" : "Magento2_Strings_ExecutableRegEx", - "title" : "Strings: Executable Reg Ex", + "patternId" : "PHPCompatibility_Interfaces_NewPropertiesInInterfaces", + "title" : "PHP Compatibility related issue (Interfaces): New Properties In Interfaces", "parameters" : [ ] }, { - "patternId" : "Magento2_Strings_StringConcat", - "title" : "Strings: String Concat", + "patternId" : "PHPCompatibility_Interfaces_RemovedSerializable", + "title" : "PHP Compatibility related issue (Interfaces): Removed Serializable", "parameters" : [ ] }, { - "patternId" : "Magento2_Templates_ObjectManager", - "title" : "Templates: Object Manager", + "patternId" : "PHPCompatibility_Keywords_CaseSensitiveKeywords", + "title" : "PHP Compatibility related issue (Keywords): Case Sensitive Keywords", "parameters" : [ ] }, { - "patternId" : "Magento2_Templates_ThisInTemplate", - "title" : "Templates: This In Template", + "patternId" : "PHPCompatibility_Keywords_ForbiddenClassAlias", + "title" : "PHP Compatibility related issue (Keywords): Forbidden Class Alias", "parameters" : [ ] }, { - "patternId" : "Magento2_Translation_ConstantUsage", - "title" : "Translation: Constant Usage", + "patternId" : "PHPCompatibility_Keywords_ForbiddenNames", + "title" : "PHP Compatibility related issue (Keywords): Forbidden Names", "parameters" : [ ] }, { - "patternId" : "Magento2_Whitespace_MultipleEmptyLines", - "title" : "Whitespace: Multiple Empty Lines", + "patternId" : "PHPCompatibility_Keywords_NewKeywords", + "title" : "PHP Compatibility related issue (Keywords): New Keywords", "parameters" : [ ] }, { - "patternId" : "MySource_CSS_BrowserSpecificStyles", - "title" : "CSS: Browser Specific Styles", + "patternId" : "PHPCompatibility_LanguageConstructs_NewEmptyNonVariable", + "title" : "PHP Compatibility related issue (Language Constructs): New Empty Non Variable", "parameters" : [ ] }, { - "patternId" : "MySource_Channels_DisallowSelfActions", - "title" : "Channels: Disallow Self Actions", + "patternId" : "PHPCompatibility_LanguageConstructs_NewLanguageConstructs", + "title" : "PHP Compatibility related issue (Language Constructs): New Language Constructs", "parameters" : [ ] }, { - "patternId" : "MySource_Channels_IncludeOwnSystem", - "title" : "Channels: Include Own System", + "patternId" : "PHPCompatibility_LanguageConstructs_RemovedLanguageConstructs", + "title" : "PHP Compatibility related issue (Language Constructs): Removed Language Constructs", "parameters" : [ ] }, { - "patternId" : "MySource_Channels_IncludeSystem", - "title" : "Channels: Include System", + "patternId" : "PHPCompatibility_Lists_AssignmentOrder", + "title" : "PHP Compatibility related issue (Lists): Assignment Order", "parameters" : [ ] }, { - "patternId" : "MySource_Channels_UnusedSystem", - "title" : "Channels: Unused System", + "patternId" : "PHPCompatibility_Lists_ForbiddenEmptyListAssignment", + "title" : "PHP Compatibility related issue (Lists): Forbidden Empty List Assignment", "parameters" : [ ] }, { - "patternId" : "MySource_Commenting_FunctionComment", - "title" : "Commenting: Function Comment", + "patternId" : "PHPCompatibility_Lists_NewKeyedList", + "title" : "PHP Compatibility related issue (Lists): New Keyed List", "parameters" : [ ] }, { - "patternId" : "MySource_Debug_DebugCode", - "title" : "Debug: Debug Code", + "patternId" : "PHPCompatibility_Lists_NewListReferenceAssignment", + "title" : "PHP Compatibility related issue (Lists): New List Reference Assignment", "parameters" : [ ] }, { - "patternId" : "MySource_Debug_FirebugConsole", - "title" : "Debug: Firebug Console", + "patternId" : "PHPCompatibility_Lists_NewShortList", + "title" : "PHP Compatibility related issue (Lists): New Short List", "parameters" : [ ] }, { - "patternId" : "MySource_Objects_AssignThis", - "title" : "Objects: Assign This", + "patternId" : "PHPCompatibility_MethodUse_ForbiddenToStringParameters", + "title" : "PHP Compatibility related issue (Method Use): Forbidden To String Parameters", "parameters" : [ ] }, { - "patternId" : "MySource_Objects_CreateWidgetTypeCallback", - "title" : "Objects: Create Widget Type Callback", + "patternId" : "PHPCompatibility_MethodUse_NewDirectCallsToClone", + "title" : "PHP Compatibility related issue (Method Use): New Direct Calls To Clone", "parameters" : [ ] }, { - "patternId" : "MySource_Objects_DisallowNewWidget", - "title" : "Objects: Disallow New Widget", + "patternId" : "PHPCompatibility_Miscellaneous_NewPHPOpenTagEOF", + "title" : "PHP Compatibility related issue (Miscellaneous): New PHP Open Tag EOF", "parameters" : [ ] }, { - "patternId" : "MySource_PHP_AjaxNullComparison", - "title" : "PHP: Ajax Null Comparison", + "patternId" : "PHPCompatibility_Miscellaneous_RemovedAlternativePHPTags", + "title" : "PHP Compatibility related issue (Miscellaneous): Removed Alternative PHP Tags", "parameters" : [ ] }, { - "patternId" : "MySource_PHP_EvalObjectFactory", - "title" : "PHP: Eval Object Factory", + "patternId" : "PHPCompatibility_Namespaces_ReservedNames", + "title" : "PHP Compatibility related issue (Namespaces): Reserved Names", "parameters" : [ ] }, { - "patternId" : "MySource_PHP_GetRequestData", - "title" : "PHP: Get Request Data", + "patternId" : "PHPCompatibility_Numbers_NewExplicitOctalNotation", + "title" : "PHP Compatibility related issue (Numbers): New Explicit Octal Notation", "parameters" : [ ] }, { - "patternId" : "MySource_PHP_ReturnFunctionValue", - "title" : "PHP: Return Function Value", + "patternId" : "PHPCompatibility_Numbers_NewNumericLiteralSeparator", + "title" : "PHP Compatibility related issue (Numbers): New Numeric Literal Separator", "parameters" : [ ] }, { - "patternId" : "MySource_Strings_JoinStrings", - "title" : "Strings: Join Strings", + "patternId" : "PHPCompatibility_Numbers_RemovedHexadecimalNumericStrings", + "title" : "PHP Compatibility related issue (Numbers): Removed Hexadecimal Numeric Strings", "parameters" : [ ] }, { - "patternId" : "PEAR_Classes_ClassDeclaration", - "title" : "Class Declarations", - "description" : "The opening brace of a class must be on the line after the definition by itself.", + "patternId" : "PHPCompatibility_Numbers_ValidIntegers", + "title" : "PHP Compatibility related issue (Numbers): Valid Integers", "parameters" : [ ] }, { - "patternId" : "PEAR_Commenting_ClassComment", - "title" : "Class Comments", - "description" : "Classes and interfaces must have a non-empty doc comment. The short description must be on the second line of the comment. Each description must have one blank comment line before and after. There must be one blank line before the tags in the comments. A @version tag must be in Release: package_version format.", + "patternId" : "PHPCompatibility_Operators_ChangedConcatOperatorPrecedence", + "title" : "PHP Compatibility related issue (Operators): Changed Concat Operator Precedence", "parameters" : [ ] }, { - "patternId" : "PEAR_Commenting_FileComment", - "title" : "File Comments", - "description" : "Files must have a non-empty doc comment. The short description must be on the second line of the comment. Each description must have one blank comment line before and after. There must be one blank line before the tags in the comments. There must be a category, package, author, license, and link tag. There may only be one category, package, subpackage, license, version, since and deprecated tag", + "patternId" : "PHPCompatibility_Operators_ForbiddenNegativeBitshift", + "title" : "PHP Compatibility related issue (Operators): Forbidden Negative Bitshift", "parameters" : [ ] }, { - "patternId" : "PEAR_Commenting_FunctionComment", - "title" : "Function Comments", - "description" : "Functions must have a non-empty doc comment. The short description must be on the second line of the comment. Each description must have one blank comment line before and after. There must be one blank line before the tags in the comments. There must be a tag for each of the parameters in the right order with the right variable names with a comment. There must be a return tag. Any throw tag must have an exception class.", - "parameters" : [ { - "name" : "minimumVisibility", - "description" : "minimumVisibility" - } ] -}, { - "patternId" : "PEAR_Commenting_InlineComment", - "title" : "Inline Comments", - "description" : "Perl-style # comments are not allowed.", + "patternId" : "PHPCompatibility_Operators_NewOperators", + "title" : "PHP Compatibility related issue (Operators): New Operators", "parameters" : [ ] }, { - "patternId" : "PEAR_ControlStructures_ControlSignature", - "title" : "Control Structure Signatures", - "description" : "Control structures should use one space around the parentheses in conditions. The opening brace should be preceded by one space and should be at the end of the line.", - "parameters" : [ { - "name" : "ignoreComments", - "description" : "ignoreComments" - } ] -}, { - "patternId" : "PEAR_ControlStructures_MultiLineCondition", - "title" : "Multi-line If Conditions", - "description" : "Multi-line if conditions should be indented one level and each line should begin with a boolean operator. The end parenthesis should be on a new line.", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - } ] -}, { - "patternId" : "PEAR_Files_IncludingFile", - "title" : "Including Code", - "description" : "Anywhere you are unconditionally including a class file, use require_once. Anywhere you are conditionally including a class file (for example, factory methods), use include_once. Either of these will ensure that class files are included only once. They share the same file list, so you don't need to worry about mixing them - a file included with require_once will not be included again by include_once.", + "patternId" : "PHPCompatibility_Operators_NewShortTernary", + "title" : "PHP Compatibility related issue (Operators): New Short Ternary", "parameters" : [ ] }, { - "patternId" : "PEAR_Formatting_MultiLineAssignment", - "title" : "Multi-Line Assignment", - "description" : "Multi-line assignment should have the equals sign be the first item on the second line indented correctly.", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - } ] -}, { - "patternId" : "PEAR_Functions_FunctionCallSignature", - "title" : "Function Calls", - "description" : "Functions should be called with no spaces between the function name, the opening parenthesis, and the first parameter; and no space between the last parameter, the closing parenthesis, and the semicolon.", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - }, { - "name" : "allowMultipleArguments", - "description" : "allowMultipleArguments" - }, { - "name" : "requiredSpacesAfterOpen", - "description" : "requiredSpacesAfterOpen" - }, { - "name" : "requiredSpacesBeforeClose", - "description" : "requiredSpacesBeforeClose" - } ] -}, { - "patternId" : "PEAR_Functions_FunctionDeclaration", - "title" : "Function Declarations", - "description" : "There should be exactly 1 space after the function keyword and 1 space on each side of the use keyword. Closures should use the Kernighan/Ritchie Brace style and other single-line functions should use the BSD/Allman style. Multi-line function declarations should have the parameter lists indented one level with the closing parenthesis on a newline followed by a single space and the opening brace of the function.", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - } ] -}, { - "patternId" : "PEAR_Functions_ValidDefaultValue", - "title" : "Default Values in Function Declarations", - "description" : "Arguments with default values go at the end of the argument list.", + "patternId" : "PHPCompatibility_Operators_RemovedTernaryAssociativity", + "title" : "PHP Compatibility related issue (Operators): Removed Ternary Associativity", "parameters" : [ ] }, { - "patternId" : "PEAR_NamingConventions_ValidClassName", - "title" : "Class Names", - "description" : "Classes should be given descriptive names. Avoid using abbreviations where possible. Class names should always begin with an uppercase letter. The PEAR class hierarchy is also reflected in the class name, each level of the hierarchy separated with a single underscore.", + "patternId" : "PHPCompatibility_ParameterValues_ChangedIntToBoolParamType", + "title" : "PHP Compatibility related issue (Parameter Values): Changed Int To Bool Param Type", "parameters" : [ ] }, { - "patternId" : "PEAR_NamingConventions_ValidFunctionName", - "title" : "Function and Method Names", - "description" : "Functions and methods should be named using the \"studly caps\" style (also referred to as \"bumpy case\" or \"camel caps\"). Functions should in addition have the package name as a prefix, to avoid name collisions between packages. The initial letter of the name (after the prefix) is lowercase, and each letter that starts a new \"word\" is capitalized.", + "patternId" : "PHPCompatibility_ParameterValues_ChangedObStartEraseFlags", + "title" : "PHP Compatibility related issue (Parameter Values): Changed Ob Start Erase Flags", "parameters" : [ ] }, { - "patternId" : "PEAR_NamingConventions_ValidVariableName", - "title" : "Variable Names", - "description" : "Private member variable names should be prefixed with an underscore and public/protected variable names should not.", + "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNoArgsOutsideOO", + "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Get Class No Args Outside OO", "parameters" : [ ] }, { - "patternId" : "PEAR_WhiteSpace_ObjectOperatorIndent", - "title" : "Object Operator Indentation", - "description" : "Chained object operators when spread out over multiple lines should be the first thing on the line and be indented by 1 level.", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - }, { - "name" : "multilevel", - "description" : "multilevel" - } ] -}, { - "patternId" : "PEAR_WhiteSpace_ScopeClosingBrace", - "title" : "Closing Brace Indentation", - "description" : "Closing braces should be indented at the same level as the beginning of the scope.", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - } ] + "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNull", + "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Get Class Null", + "parameters" : [ ] }, { - "patternId" : "PEAR_WhiteSpace_ScopeIndent", - "title" : "Scope Indentation", - "description" : "Any scope openers except for switch statements should be indented 1 level. This includes classes, functions, and control structures.", + "patternId" : "PHPCompatibility_ParameterValues_ForbiddenSessionModuleNameUser", + "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Session Module Name User", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods", - "title" : "PHP Compatibility related issue (Classes): Forbidden Abstract Private Methods", + "patternId" : "PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML", + "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Strip Tags Self Closing XHTML", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Classes_NewAnonymousClasses", - "title" : "PHP Compatibility related issue (Classes): New Anonymous Classes", + "patternId" : "PHPCompatibility_ParameterValues_NewArrayMergeRecursiveWithGlobalsVar", + "title" : "PHP Compatibility related issue (Parameter Values): New Array Merge Recursive With Globals Var", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Classes_NewClasses", - "title" : "PHP Compatibility related issue (Classes): New Classes", + "patternId" : "PHPCompatibility_ParameterValues_NewArrayReduceInitialType", + "title" : "PHP Compatibility related issue (Parameter Values): New Array Reduce Initial Type", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Classes_NewConstVisibility", - "title" : "PHP Compatibility related issue (Classes): New Const Visibility", + "patternId" : "PHPCompatibility_ParameterValues_NewAssertCustomException", + "title" : "PHP Compatibility related issue (Parameter Values): New Assert Custom Exception", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Classes_NewLateStaticBinding", - "title" : "PHP Compatibility related issue (Classes): New Late Static Binding", + "patternId" : "PHPCompatibility_ParameterValues_NewClassAliasInternalClass", + "title" : "PHP Compatibility related issue (Parameter Values): New Class Alias Internal Class", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Classes_NewTypedProperties", - "title" : "PHP Compatibility related issue (Classes): New Typed Properties", + "patternId" : "PHPCompatibility_ParameterValues_NewExitAsFunctionCall", + "title" : "PHP Compatibility related issue (Parameter Values): New Exit As Function Call", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Classes_RemovedOrphanedParent", - "title" : "PHP Compatibility related issue (Classes): Removed Orphaned Parent", + "patternId" : "PHPCompatibility_ParameterValues_NewFopenModes", + "title" : "PHP Compatibility related issue (Parameter Values): New Fopen Modes", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Constants_NewConstants", - "title" : "PHP Compatibility related issue (Constants): New Constants", + "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesEncodingDefault", + "title" : "PHP Compatibility related issue (Parameter Values): New HTML Entities Encoding Default", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Constants_NewMagicClassConstant", - "title" : "PHP Compatibility related issue (Constants): New Magic Class Constant", + "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesFlagsDefault", + "title" : "PHP Compatibility related issue (Parameter Values): New HTML Entities Flags Default", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Constants_RemovedConstants", - "title" : "PHP Compatibility related issue (Constants): Removed Constants", + "patternId" : "PHPCompatibility_ParameterValues_NewHashAlgorithms", + "title" : "PHP Compatibility related issue (Parameter Values): New Hash Algorithms", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ControlStructures_DiscouragedSwitchContinue", - "title" : "PHP Compatibility related issue (Control Structures): Discouraged Switch Continue", + "patternId" : "PHPCompatibility_ParameterValues_NewIDNVariantDefault", + "title" : "PHP Compatibility related issue (Parameter Values): New IDN Variant Default", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueOutsideLoop", - "title" : "PHP Compatibility related issue (Control Structures): Forbidden Break Continue Outside Loop", + "patternId" : "PHPCompatibility_ParameterValues_NewIconvMbstringCharsetDefault", + "title" : "PHP Compatibility related issue (Parameter Values): New Iconv Mbstring Charset Default", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueVariableArguments", - "title" : "PHP Compatibility related issue (Control Structures): Forbidden Break Continue Variable Arguments", + "patternId" : "PHPCompatibility_ParameterValues_NewNegativeStringOffset", + "title" : "PHP Compatibility related issue (Parameter Values): New Negative String Offset", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenSwitchWithMultipleDefaultBlocks", - "title" : "PHP Compatibility related issue (Control Structures): Forbidden Switch With Multiple Default Blocks", + "patternId" : "PHPCompatibility_ParameterValues_NewNumberFormatMultibyteSeparators", + "title" : "PHP Compatibility related issue (Parameter Values): New Number Format Multibyte Separators", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ControlStructures_NewExecutionDirectives", - "title" : "PHP Compatibility related issue (Control Structures): New Execution Directives", + "patternId" : "PHPCompatibility_ParameterValues_NewPCREModifiers", + "title" : "PHP Compatibility related issue (Parameter Values): New PCRE Modifiers", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ControlStructures_NewForeachExpressionReferencing", - "title" : "PHP Compatibility related issue (Control Structures): New Foreach Expression Referencing", + "patternId" : "PHPCompatibility_ParameterValues_NewPackFormat", + "title" : "PHP Compatibility related issue (Parameter Values): New Pack Format", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ControlStructures_NewListInForeach", - "title" : "PHP Compatibility related issue (Control Structures): New List In Foreach", + "patternId" : "PHPCompatibility_ParameterValues_NewPasswordAlgoConstantValues", + "title" : "PHP Compatibility related issue (Parameter Values): New Password Algo Constant Values", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ControlStructures_NewMultiCatch", - "title" : "PHP Compatibility related issue (Control Structures): New Multi Catch", + "patternId" : "PHPCompatibility_ParameterValues_NewProcOpenCmdArray", + "title" : "PHP Compatibility related issue (Parameter Values): New Proc Open Cmd Array", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Extensions_RemovedExtensions", - "title" : "PHP Compatibility related issue (Extensions): Removed Extensions", + "patternId" : "PHPCompatibility_ParameterValues_NewStripTagsAllowableTagsArray", + "title" : "PHP Compatibility related issue (Parameter Values): New Strip Tags Allowable Tags Array", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals", - "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Parameter Shadow Super Globals", + "patternId" : "PHPCompatibility_ParameterValues_RemovedAssertStringAssertion", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Assert String Assertion", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParametersWithSameName", - "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Parameters With Same Name", + "patternId" : "PHPCompatibility_ParameterValues_RemovedDbaKeySplitNullFalse", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Dba Key Split Null False", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenToStringParameters", - "title" : "PHP Compatibility related issue (Function Declarations): Forbidden To String Parameters", + "patternId" : "PHPCompatibility_ParameterValues_RemovedGetClassNoArgs", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Get Class No Args", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenVariableNamesInClosureUse", - "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Variable Names In Closure Use", + "patternId" : "PHPCompatibility_ParameterValues_RemovedGetDefinedFunctionsExcludeDisabledFalse", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Get Defined Functions Exclude Disabled False", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewClosure", - "title" : "PHP Compatibility related issue (Function Declarations): New Closure", + "patternId" : "PHPCompatibility_ParameterValues_RemovedHashAlgorithms", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Hash Algorithms", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewExceptionsFromToString", - "title" : "PHP Compatibility related issue (Function Declarations): New Exceptions From To String", + "patternId" : "PHPCompatibility_ParameterValues_RemovedIconvEncoding", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Iconv Encoding", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewNullableTypes", - "title" : "PHP Compatibility related issue (Function Declarations): New Nullable Types", + "patternId" : "PHPCompatibility_ParameterValues_RemovedImplodeFlexibleParamOrder", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Implode Flexible Param Order", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewParamTypeDeclarations", - "title" : "PHP Compatibility related issue (Function Declarations): New Param Type Declarations", + "patternId" : "PHPCompatibility_ParameterValues_RemovedLdapConnectSignatures", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Ldap Connect Signatures", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewReturnTypeDeclarations", - "title" : "PHP Compatibility related issue (Function Declarations): New Return Type Declarations", + "patternId" : "PHPCompatibility_ParameterValues_RemovedMbCheckEncodingNoArgs", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Mb Check Encoding No Args", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods", - "title" : "PHP Compatibility related issue (Function Declarations): Non Static Magic Methods", + "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrimWidthNegativeWidth", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Mb Strim Width Negative Width", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_NewMagicMethods", - "title" : "PHP Compatibility related issue (Function Name Restrictions): New Magic Methods", + "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrrposEncodingThirdParam", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Mb Strrpos Encoding Third Param", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedMagicAutoload", - "title" : "PHP Compatibility related issue (Function Name Restrictions): Removed Magic Autoload", + "patternId" : "PHPCompatibility_ParameterValues_RemovedMbstringModifiers", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Mbstring Modifiers", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedNamespacedAssert", - "title" : "PHP Compatibility related issue (Function Name Restrictions): Removed Namespaced Assert", + "patternId" : "PHPCompatibility_ParameterValues_RemovedNonCryptoHash", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Non Crypto Hash", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedPHP4StyleConstructors", - "title" : "PHP Compatibility related issue (Function Name Restrictions): Removed PHP4 Style Constructors", + "patternId" : "PHPCompatibility_ParameterValues_RemovedPCREModifiers", + "title" : "PHP Compatibility related issue (Parameter Values): Removed PCRE Modifiers", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_ReservedFunctionNames", - "title" : "PHP Compatibility related issue (Function Name Restrictions): Reserved Function Names", + "patternId" : "PHPCompatibility_ParameterValues_RemovedProprietaryCSVEscaping", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Proprietary CSV Escaping", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsReportCurrentValue", - "title" : "PHP Compatibility related issue (Function Use): Argument Functions Report Current Value", + "patternId" : "PHPCompatibility_ParameterValues_RemovedSetlocaleString", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Setlocale String", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsUsage", - "title" : "PHP Compatibility related issue (Function Use): Argument Functions Usage", + "patternId" : "PHPCompatibility_ParameterValues_RemovedSplAutoloadRegisterThrowFalse", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Spl Autoload Register Throw False", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionUse_NewFunctionParameters", - "title" : "PHP Compatibility related issue (Function Use): New Function Parameters", + "patternId" : "PHPCompatibility_ParameterValues_RemovedTriggerErrorLevel", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Trigger Error Level", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionUse_NewFunctions", - "title" : "PHP Compatibility related issue (Function Use): New Functions", + "patternId" : "PHPCompatibility_ParameterValues_RemovedVersionCompareOperators", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Version Compare Operators", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters", - "title" : "PHP Compatibility related issue (Function Use): Optional To Required Function Parameters", + "patternId" : "PHPCompatibility_ParameterValues_RemovedXmlSetHandlerCallbackUnset", + "title" : "PHP Compatibility related issue (Parameter Values): Removed Xml Set Handler Callback Unset", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctionParameters", - "title" : "PHP Compatibility related issue (Function Use): Removed Function Parameters", + "patternId" : "PHPCompatibility_Syntax_ForbiddenCallTimePassByReference", + "title" : "PHP Compatibility related issue (Syntax): Forbidden Call Time Pass By Reference", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctions", - "title" : "PHP Compatibility related issue (Function Use): Removed Functions", + "patternId" : "PHPCompatibility_Syntax_NewArrayStringDereferencing", + "title" : "PHP Compatibility related issue (Syntax): New Array String Dereferencing", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_FunctionUse_RequiredToOptionalFunctionParameters", - "title" : "PHP Compatibility related issue (Function Use): Required To Optional Function Parameters", + "patternId" : "PHPCompatibility_Syntax_NewArrayUnpacking", + "title" : "PHP Compatibility related issue (Syntax): New Array Unpacking", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Generators_NewGeneratorReturn", - "title" : "PHP Compatibility related issue (Generators): New Generator Return", + "patternId" : "PHPCompatibility_Syntax_NewClassMemberAccess", + "title" : "PHP Compatibility related issue (Syntax): New Class Member Access", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_IniDirectives_NewIniDirectives", - "title" : "PHP Compatibility related issue (Ini Directives): New Ini Directives", + "patternId" : "PHPCompatibility_Syntax_NewClassMemberAccessWithoutParentheses", + "title" : "PHP Compatibility related issue (Syntax): New Class Member Access Without Parentheses", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_IniDirectives_RemovedIniDirectives", - "title" : "PHP Compatibility related issue (Ini Directives): Removed Ini Directives", + "patternId" : "PHPCompatibility_Syntax_NewDynamicAccessToStatic", + "title" : "PHP Compatibility related issue (Syntax): New Dynamic Access To Static", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingConst", - "title" : "PHP Compatibility related issue (Initial Value): New Constant Arrays Using Const", + "patternId" : "PHPCompatibility_Syntax_NewDynamicClassConstantFetch", + "title" : "PHP Compatibility related issue (Syntax): New Dynamic Class Constant Fetch", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingDefine", - "title" : "PHP Compatibility related issue (Initial Value): New Constant Arrays Using Define", + "patternId" : "PHPCompatibility_Syntax_NewFirstClassCallables", + "title" : "PHP Compatibility related issue (Syntax): New First Class Callables", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantScalarExpressions", - "title" : "PHP Compatibility related issue (Initial Value): New Constant Scalar Expressions", + "patternId" : "PHPCompatibility_Syntax_NewFlexibleHeredocNowdoc", + "title" : "PHP Compatibility related issue (Syntax): New Flexible Heredoc Nowdoc", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_InitialValue_NewHeredoc", - "title" : "PHP Compatibility related issue (Initial Value): New Heredoc", + "patternId" : "PHPCompatibility_Syntax_NewFunctionArrayDereferencing", + "title" : "PHP Compatibility related issue (Syntax): New Function Array Dereferencing", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Interfaces_InternalInterfaces", - "title" : "PHP Compatibility related issue (Interfaces): Internal Interfaces", + "patternId" : "PHPCompatibility_Syntax_NewFunctionCallTrailingComma", + "title" : "PHP Compatibility related issue (Syntax): New Function Call Trailing Comma", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Interfaces_NewInterfaces", - "title" : "PHP Compatibility related issue (Interfaces): New Interfaces", + "patternId" : "PHPCompatibility_Syntax_NewInterpolatedStringDereferencing", + "title" : "PHP Compatibility related issue (Syntax): New Interpolated String Dereferencing", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Keywords_CaseSensitiveKeywords", - "title" : "PHP Compatibility related issue (Keywords): Case Sensitive Keywords", + "patternId" : "PHPCompatibility_Syntax_NewMagicConstantDereferencing", + "title" : "PHP Compatibility related issue (Syntax): New Magic Constant Dereferencing", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenNames", - "title" : "PHP Compatibility related issue (Keywords): Forbidden Names", + "patternId" : "PHPCompatibility_Syntax_NewNestedStaticAccess", + "title" : "PHP Compatibility related issue (Syntax): New Nested Static Access", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenNamesAsDeclared", - "title" : "PHP Compatibility related issue (Keywords): Forbidden Names As Declared", + "patternId" : "PHPCompatibility_Syntax_NewShortArray", + "title" : "PHP Compatibility related issue (Syntax): New Short Array", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions", - "title" : "PHP Compatibility related issue (Keywords): Forbidden Names As Invoked Functions", + "patternId" : "PHPCompatibility_Syntax_RemovedCurlyBraceArrayAccess", + "title" : "PHP Compatibility related issue (Syntax): Removed Curly Brace Array Access", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Keywords_NewKeywords", - "title" : "PHP Compatibility related issue (Keywords): New Keywords", + "patternId" : "PHPCompatibility_Syntax_RemovedNewReference", + "title" : "PHP Compatibility related issue (Syntax): Removed New Reference", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_LanguageConstructs_NewEmptyNonVariable", - "title" : "PHP Compatibility related issue (Language Constructs): New Empty Non Variable", + "patternId" : "PHPCompatibility_TextStrings_NewUnicodeEscapeSequence", + "title" : "PHP Compatibility related issue (Text Strings): New Unicode Escape Sequence", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_LanguageConstructs_NewLanguageConstructs", - "title" : "PHP Compatibility related issue (Language Constructs): New Language Constructs", + "patternId" : "PHPCompatibility_TextStrings_RemovedDollarBraceStringEmbeds", + "title" : "PHP Compatibility related issue (Text Strings): Removed Dollar Brace String Embeds", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Lists_AssignmentOrder", - "title" : "PHP Compatibility related issue (Lists): Assignment Order", + "patternId" : "PHPCompatibility_TypeCasts_NewTypeCasts", + "title" : "PHP Compatibility related issue (Type Casts): New Type Casts", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Lists_ForbiddenEmptyListAssignment", - "title" : "PHP Compatibility related issue (Lists): Forbidden Empty List Assignment", + "patternId" : "PHPCompatibility_TypeCasts_RemovedTypeCasts", + "title" : "PHP Compatibility related issue (Type Casts): Removed Type Casts", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Lists_NewKeyedList", - "title" : "PHP Compatibility related issue (Lists): New Keyed List", + "patternId" : "PHPCompatibility_Upgrade_LowPHP", + "title" : "PHP Compatibility related issue (Upgrade): Low PHP", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Lists_NewListReferenceAssignment", - "title" : "PHP Compatibility related issue (Lists): New List Reference Assignment", + "patternId" : "PHPCompatibility_UseDeclarations_NewGroupUseDeclarations", + "title" : "PHP Compatibility related issue (Use Declarations): New Group Use Declarations", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Lists_NewShortList", - "title" : "PHP Compatibility related issue (Lists): New Short List", + "patternId" : "PHPCompatibility_UseDeclarations_NewUseConstFunction", + "title" : "PHP Compatibility related issue (Use Declarations): New Use Const Function", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_MethodUse_ForbiddenToStringParameters", - "title" : "PHP Compatibility related issue (Method Use): Forbidden To String Parameters", + "patternId" : "PHPCompatibility_Variables_ForbiddenGlobalVariableVariable", + "title" : "PHP Compatibility related issue (Variables): Forbidden Global Variable Variable", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_MethodUse_NewDirectCallsToClone", - "title" : "PHP Compatibility related issue (Method Use): New Direct Calls To Clone", + "patternId" : "PHPCompatibility_Variables_ForbiddenThisUseContexts", + "title" : "PHP Compatibility related issue (Variables): Forbidden This Use Contexts", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Miscellaneous_NewPHPOpenTagEOF", - "title" : "PHP Compatibility related issue (Miscellaneous): New PHP Open Tag EOF", + "patternId" : "PHPCompatibility_Variables_NewUniformVariableSyntax", + "title" : "PHP Compatibility related issue (Variables): New Uniform Variable Syntax", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Miscellaneous_RemovedAlternativePHPTags", - "title" : "PHP Compatibility related issue (Miscellaneous): Removed Alternative PHP Tags", + "patternId" : "PHPCompatibility_Variables_RemovedIndirectModificationOfGlobals", + "title" : "PHP Compatibility related issue (Variables): Removed Indirect Modification Of Globals", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Miscellaneous_ValidIntegers", - "title" : "PHP Compatibility related issue (Miscellaneous): Valid Integers", + "patternId" : "PHPCompatibility_Variables_RemovedPredefinedGlobalVariables", + "title" : "PHP Compatibility related issue (Variables): Removed Predefined Global Variables", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Operators_ChangedConcatOperatorPrecedence", - "title" : "PHP Compatibility related issue (Operators): Changed Concat Operator Precedence", + "patternId" : "PSR12_Classes_AnonClassDeclaration", + "title" : "Classes: Anon Class Declaration", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Operators_ForbiddenNegativeBitshift", - "title" : "PHP Compatibility related issue (Operators): Forbidden Negative Bitshift", + "patternId" : "PSR12_Classes_ClassInstantiation", + "title" : "Class Instantiation", + "description" : "When instantiating a new class, parenthesis MUST always be present even when there are no arguments passed to the constructor.", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Operators_NewOperators", - "title" : "PHP Compatibility related issue (Operators): New Operators", + "patternId" : "PSR12_Classes_ClosingBrace", + "title" : "Classes: Closing Brace", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Operators_NewShortTernary", - "title" : "PHP Compatibility related issue (Operators): New Short Ternary", + "patternId" : "PSR12_Classes_OpeningBraceSpace", + "title" : "Classes: Opening Brace Space", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_Operators_RemovedTernaryAssociativity", - "title" : "PHP Compatibility related issue (Operators): Removed Ternary Associativity", - "parameters" : [ ] + "patternId" : "PSR12_ControlStructures_BooleanOperatorPlacement", + "title" : "Control Structures: Boolean Operator Placement", + "parameters" : [ { + "name" : "allowOnly", + "description" : "allowOnly" + } ] }, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNull", - "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Get Class Null", - "parameters" : [ ] + "patternId" : "PSR12_ControlStructures_ControlStructureSpacing", + "title" : "Control Structures: Control Structure Spacing", + "parameters" : [ { + "name" : "indent", + "description" : "indent" + } ] }, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML", - "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Strip Tags Self Closing XHTML", + "patternId" : "PSR12_Files_DeclareStatement", + "title" : "Files: Declare Statement", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ParameterValues_NewArrayReduceInitialType", - "title" : "PHP Compatibility related issue (Parameter Values): New Array Reduce Initial Type", + "patternId" : "PSR12_Files_FileHeader", + "title" : "Files: File Header", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ParameterValues_NewFopenModes", - "title" : "PHP Compatibility related issue (Parameter Values): New Fopen Modes", + "patternId" : "PSR12_Files_ImportStatement", + "title" : "Files: Import Statement", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesEncodingDefault", - "title" : "PHP Compatibility related issue (Parameter Values): New HTML Entities Encoding Default", + "patternId" : "PSR12_Files_OpenTag", + "title" : "Files: Open Tag", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ParameterValues_NewHashAlgorithms", - "title" : "PHP Compatibility related issue (Parameter Values): New Hash Algorithms", + "patternId" : "PSR12_Functions_NullableTypeDeclaration", + "title" : "Nullable Type Declarations Functions", + "description" : "In nullable type declarations there MUST NOT be a space between the question mark and the type.", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ParameterValues_NewIDNVariantDefault", - "title" : "PHP Compatibility related issue (Parameter Values): New IDN Variant Default", + "patternId" : "PSR12_Functions_ReturnTypeDeclaration", + "title" : "Functions: Return Type Declaration", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ParameterValues_NewIconvMbstringCharsetDefault", - "title" : "PHP Compatibility related issue (Parameter Values): New Iconv Mbstring Charset Default", + "patternId" : "PSR12_Keywords_ShortFormTypeKeywords", + "title" : "Short Form Type Keywords", + "description" : "Short form of type keywords MUST be used i.e. bool instead of boolean, int instead of integer etc.", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ParameterValues_NewNegativeStringOffset", - "title" : "PHP Compatibility related issue (Parameter Values): New Negative String Offset", + "patternId" : "PSR12_Namespaces_CompoundNamespaceDepth", + "title" : "Compound Namespace Depth", + "description" : "Compound namespaces with a depth of more than two MUST NOT be used.", + "parameters" : [ { + "name" : "maxDepth", + "description" : "maxDepth" + } ] +}, { + "patternId" : "PSR12_Operators_OperatorSpacing", + "title" : "Operator Spacing", + "description" : "All binary and ternary (but not unary) operators MUST be preceded and followed by at least one space. This includes all arithmetic, comparison, assignment, bitwise, logical (excluding ! which is unary), string concatenation, type operators, trait operators (insteadof and as), and the single pipe operator (e.g. ExceptionType1 | ExceptionType2 $e).", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ParameterValues_NewPCREModifiers", - "title" : "PHP Compatibility related issue (Parameter Values): New PCRE Modifiers", + "patternId" : "PSR12_Properties_ConstantVisibility", + "title" : "Properties: Constant Visibility", "parameters" : [ ] }, { - "patternId" : "PHPCompatibility_ParameterValues_NewPackFormat", - "title" : "PHP Compatibility related issue (Parameter Values): New Pack Format", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewPasswordAlgoConstantValues", - "title" : "PHP Compatibility related issue (Parameter Values): New Password Algo Constant Values", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewProcOpenCmdArray", - "title" : "PHP Compatibility related issue (Parameter Values): New Proc Open Cmd Array", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewStripTagsAllowableTagsArray", - "title" : "PHP Compatibility related issue (Parameter Values): New Strip Tags Allowable Tags Array", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedHashAlgorithms", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Hash Algorithms", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedIconvEncoding", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Iconv Encoding", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedImplodeFlexibleParamOrder", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Implode Flexible Param Order", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrrposEncodingThirdParam", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Mb Strrpos Encoding Third Param", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbstringModifiers", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Mbstring Modifiers", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedNonCryptoHash", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Non Crypto Hash", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedPCREModifiers", - "title" : "PHP Compatibility related issue (Parameter Values): Removed PCRE Modifiers", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedSetlocaleString", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Setlocale String", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_ForbiddenCallTimePassByReference", - "title" : "PHP Compatibility related issue (Syntax): Forbidden Call Time Pass By Reference", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewArrayStringDereferencing", - "title" : "PHP Compatibility related issue (Syntax): New Array String Dereferencing", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewArrayUnpacking", - "title" : "PHP Compatibility related issue (Syntax): New Array Unpacking", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewClassMemberAccess", - "title" : "PHP Compatibility related issue (Syntax): New Class Member Access", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewDynamicAccessToStatic", - "title" : "PHP Compatibility related issue (Syntax): New Dynamic Access To Static", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewFlexibleHeredocNowdoc", - "title" : "PHP Compatibility related issue (Syntax): New Flexible Heredoc Nowdoc", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewFunctionArrayDereferencing", - "title" : "PHP Compatibility related issue (Syntax): New Function Array Dereferencing", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewFunctionCallTrailingComma", - "title" : "PHP Compatibility related issue (Syntax): New Function Call Trailing Comma", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewShortArray", - "title" : "PHP Compatibility related issue (Syntax): New Short Array", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_RemovedCurlyBraceArrayAccess", - "title" : "PHP Compatibility related issue (Syntax): Removed Curly Brace Array Access", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_RemovedNewReference", - "title" : "PHP Compatibility related issue (Syntax): Removed New Reference", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_TextStrings_NewUnicodeEscapeSequence", - "title" : "PHP Compatibility related issue (Text Strings): New Unicode Escape Sequence", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_TypeCasts_NewTypeCasts", - "title" : "PHP Compatibility related issue (Type Casts): New Type Casts", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_TypeCasts_RemovedTypeCasts", - "title" : "PHP Compatibility related issue (Type Casts): Removed Type Casts", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Upgrade_LowPHP", - "title" : "PHP Compatibility related issue (Upgrade): Low PHP", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Upgrade_LowPHPCS", - "title" : "PHP Compatibility related issue (Upgrade): Low PHPCS", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_UseDeclarations_NewGroupUseDeclarations", - "title" : "PHP Compatibility related issue (Use Declarations): New Group Use Declarations", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_UseDeclarations_NewUseConstFunction", - "title" : "PHP Compatibility related issue (Use Declarations): New Use Const Function", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Variables_ForbiddenGlobalVariableVariable", - "title" : "PHP Compatibility related issue (Variables): Forbidden Global Variable Variable", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Variables_ForbiddenThisUseContexts", - "title" : "PHP Compatibility related issue (Variables): Forbidden This Use Contexts", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Variables_NewUniformVariableSyntax", - "title" : "PHP Compatibility related issue (Variables): New Uniform Variable Syntax", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Variables_RemovedPredefinedGlobalVariables", - "title" : "PHP Compatibility related issue (Variables): Removed Predefined Global Variables", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Classes_AnonClassDeclaration", - "title" : "Classes: Anon Class Declaration", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Classes_ClassInstantiation", - "title" : "Class Instantiation", - "description" : "When instantiating a new class, parenthesis MUST always be present even when there are no arguments passed to the constructor.", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Classes_ClosingBrace", - "title" : "Classes: Closing Brace", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Classes_OpeningBraceSpace", - "title" : "Classes: Opening Brace Space", - "parameters" : [ ] -}, { - "patternId" : "PSR12_ControlStructures_BooleanOperatorPlacement", - "title" : "Control Structures: Boolean Operator Placement", - "parameters" : [ { - "name" : "allowOnly", - "description" : "allowOnly" - } ] -}, { - "patternId" : "PSR12_ControlStructures_ControlStructureSpacing", - "title" : "Control Structures: Control Structure Spacing", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - } ] -}, { - "patternId" : "PSR12_Files_DeclareStatement", - "title" : "Files: Declare Statement", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Files_FileHeader", - "title" : "Files: File Header", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Files_ImportStatement", - "title" : "Files: Import Statement", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Files_OpenTag", - "title" : "Files: Open Tag", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Functions_NullableTypeDeclaration", - "title" : "Nullable Type Declarations Functions", - "description" : "In nullable type declarations there MUST NOT be a space between the question mark and the type.", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Functions_ReturnTypeDeclaration", - "title" : "Functions: Return Type Declaration", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Keywords_ShortFormTypeKeywords", - "title" : "Short Form Type Keywords", - "description" : "Short form of type keywords MUST be used i.e. bool instead of boolean, int instead of integer etc.", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Namespaces_CompoundNamespaceDepth", - "title" : "Compound Namespace Depth", - "description" : "Compound namespaces with a depth of more than two MUST NOT be used.", - "parameters" : [ { - "name" : "maxDepth", - "description" : "maxDepth" - } ] -}, { - "patternId" : "PSR12_Operators_OperatorSpacing", - "title" : "Operator Spacing", - "description" : "All binary and ternary (but not unary) operators MUST be preceded and followed by at least one space. This includes all arithmetic, comparison, assignment, bitwise, logical (excluding ! which is unary), string concatenation, type operators, trait operators (insteadof and as), and the single pipe operator (e.g. ExceptionType1 | ExceptionType2 $e).", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Properties_ConstantVisibility", - "title" : "Properties: Constant Visibility", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Traits_UseDeclaration", - "title" : "Traits: Use Declaration", + "patternId" : "PSR12_Traits_UseDeclaration", + "title" : "Traits: Use Declaration", "parameters" : [ ] }, { "patternId" : "PSR1_Classes_ClassDeclaration", @@ -2234,206 +1940,66 @@ "description" : "Each use declaration must contain only one namespace and must come after the first namespace declaration. There should be one blank line after the final use statement.", "parameters" : [ ] }, { - "patternId" : "Security_BadFunctions_Asserts", - "title" : "Security Bad Functions related issue: Asserts", + "patternId" : "SlevomatCodingStandard_Arrays_AlphabeticallySortedByKeys", + "title" : "Arrays: Alphabetically Sorted By Keys", "parameters" : [ ] }, { - "patternId" : "Security_BadFunctions_Backticks", - "title" : "Security Bad Functions related issue: Backticks", + "patternId" : "SlevomatCodingStandard_Arrays_ArrayAccess", + "title" : "Arrays: Array Access", "parameters" : [ ] }, { - "patternId" : "Security_BadFunctions_CallbackFunctions", - "title" : "Security Bad Functions related issue: Callback Functions", + "patternId" : "SlevomatCodingStandard_Arrays_DisallowImplicitArrayCreation", + "title" : "Arrays: Disallow Implicit Array Creation", "parameters" : [ ] }, { - "patternId" : "Security_BadFunctions_CryptoFunctions", - "title" : "Security Bad Functions related issue: Crypto Functions", + "patternId" : "SlevomatCodingStandard_Arrays_DisallowPartiallyKeyed", + "title" : "Arrays: Disallow Partially Keyed", "parameters" : [ ] }, { - "patternId" : "Security_BadFunctions_EasyRFI", - "title" : "Security Bad Functions related issue: Easy RFI", + "patternId" : "SlevomatCodingStandard_Arrays_MultiLineArrayEndBracketPlacement", + "title" : "Arrays: Multi Line Array End Bracket Placement", "parameters" : [ ] }, { - "patternId" : "Security_BadFunctions_EasyXSS", - "title" : "Security Bad Functions related issue: Easy XSS", + "patternId" : "SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace", + "title" : "Arrays: Single Line Array Whitespace", "parameters" : [ { - "name" : "forceParanoia", - "description" : "forceParanoia" + "name" : "spacesAroundBrackets", + "description" : "spacesAroundBrackets" + }, { + "name" : "enableEmptyArrayCheck", + "description" : "enableEmptyArrayCheck" } ] }, { - "patternId" : "Security_BadFunctions_ErrorHandling", - "title" : "Security Bad Functions related issue: Error Handling", - "parameters" : [ ] + "patternId" : "SlevomatCodingStandard_Arrays_TrailingArrayComma", + "title" : "Arrays: Trailing Array Comma", + "parameters" : [ { + "name" : "enableAfterHeredoc", + "description" : "enableAfterHeredoc" + } ] }, { - "patternId" : "Security_BadFunctions_FilesystemFunctions", - "title" : "Security Bad Functions related issue: Filesystem Functions", - "parameters" : [ ] + "patternId" : "SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing", + "title" : "Attributes: Attribute And Target Spacing", + "parameters" : [ { + "name" : "linesCount", + "description" : "linesCount" + }, { + "name" : "allowOnSameLine", + "description" : "allowOnSameLine" + } ] }, { - "patternId" : "Security_BadFunctions_FringeFunctions", - "title" : "Security Bad Functions related issue: Fringe Functions", - "parameters" : [ ] + "patternId" : "SlevomatCodingStandard_Attributes_AttributesOrder", + "title" : "Attributes: Attributes Order", + "parameters" : [ { + "name" : "orderAlphabetically", + "description" : "orderAlphabetically" + } ] }, { - "patternId" : "Security_BadFunctions_FunctionHandlingFunctions", - "title" : "Security Bad Functions related issue: Function Handling Functions", + "patternId" : "SlevomatCodingStandard_Attributes_DisallowAttributesJoining", + "title" : "Attributes: Disallow Attributes Joining", "parameters" : [ ] }, { - "patternId" : "Security_BadFunctions_Mysqli", - "title" : "Security Bad Functions related issue: Mysqli", - "parameters" : [ ] -}, { - "patternId" : "Security_BadFunctions_NoEvals", - "title" : "Security Bad Functions related issue: No Evals", - "parameters" : [ ] -}, { - "patternId" : "Security_BadFunctions_Phpinfos", - "title" : "Security Bad Functions related issue: Phpinfos", - "parameters" : [ ] -}, { - "patternId" : "Security_BadFunctions_PregReplace", - "title" : "Security Bad Functions related issue: Preg Replace", - "parameters" : [ ] -}, { - "patternId" : "Security_BadFunctions_SQLFunctions", - "title" : "Security Bad Functions related issue: SQL Functions", - "parameters" : [ ] -}, { - "patternId" : "Security_BadFunctions_SystemExecFunctions", - "title" : "Security Bad Functions related issue: System Exec Functions", - "parameters" : [ ] -}, { - "patternId" : "Security_CVE_20132110", - "title" : "Security CVE related issue: 20132110", - "parameters" : [ ] -}, { - "patternId" : "Security_CVE_20134113", - "title" : "Security CVE related issue: 20134113", - "parameters" : [ ] -}, { - "patternId" : "Security_Drupal7_AESModule", - "title" : "Security Drupal7 related issue: AES Module", - "parameters" : [ ] -}, { - "patternId" : "Security_Drupal7_AdvisoriesContrib", - "title" : "Security Drupal7 related issue: Advisories Contrib", - "parameters" : [ ] -}, { - "patternId" : "Security_Drupal7_AdvisoriesCore", - "title" : "Security Drupal7 related issue: Advisories Core", - "parameters" : [ ] -}, { - "patternId" : "Security_Drupal7_Cachei", - "title" : "Security Drupal7 related issue: Cachei", - "parameters" : [ ] -}, { - "patternId" : "Security_Drupal7_DbQueryAC", - "title" : "Security Drupal7 related issue: Db Query AC", - "parameters" : [ { - "name" : "forceParanoia", - "description" : "forceParanoia" - } ] -}, { - "patternId" : "Security_Drupal7_DynQueries", - "title" : "Security Drupal7 related issue: Dyn Queries", - "parameters" : [ ] -}, { - "patternId" : "Security_Drupal7_HttpRequest", - "title" : "Security Drupal7 related issue: Http Request", - "parameters" : [ ] -}, { - "patternId" : "Security_Drupal7_SQLi", - "title" : "Security Drupal7 related issue: SQ Li", - "parameters" : [ ] -}, { - "patternId" : "Security_Drupal7_UserInputWatch", - "title" : "Security Drupal7 related issue: User Input Watch", - "parameters" : [ { - "name" : "FormThreshold", - "description" : "FormThreshold" - }, { - "name" : "FormStateThreshold", - "description" : "FormStateThreshold" - } ] -}, { - "patternId" : "Security_Drupal7_XSSFormValue", - "title" : "Security Drupal7 related issue: XSS Form Value", - "parameters" : [ ] -}, { - "patternId" : "Security_Drupal7_XSSHTMLConstruct", - "title" : "Security Drupal7 related issue: XSSHTML Construct", - "parameters" : [ ] -}, { - "patternId" : "Security_Drupal7_XSSPTheme", - "title" : "Security Drupal7 related issue: XSSP Theme", - "parameters" : [ ] -}, { - "patternId" : "Security_Misc_BadCorsHeader", - "title" : "Security Misc related issue: Bad Cors Header", - "parameters" : [ ] -}, { - "patternId" : "Security_Misc_IncludeMismatch", - "title" : "Security Misc related issue: Include Mismatch", - "parameters" : [ ] -}, { - "patternId" : "SlevomatCodingStandard_Arrays_AlphabeticallySortedByKeys", - "title" : "Arrays: Alphabetically Sorted By Keys", - "parameters" : [ ] -}, { - "patternId" : "SlevomatCodingStandard_Arrays_ArrayAccess", - "title" : "Arrays: Array Access", - "parameters" : [ ] -}, { - "patternId" : "SlevomatCodingStandard_Arrays_DisallowImplicitArrayCreation", - "title" : "Arrays: Disallow Implicit Array Creation", - "parameters" : [ ] -}, { - "patternId" : "SlevomatCodingStandard_Arrays_DisallowPartiallyKeyed", - "title" : "Arrays: Disallow Partially Keyed", - "parameters" : [ ] -}, { - "patternId" : "SlevomatCodingStandard_Arrays_MultiLineArrayEndBracketPlacement", - "title" : "Arrays: Multi Line Array End Bracket Placement", - "parameters" : [ ] -}, { - "patternId" : "SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace", - "title" : "Arrays: Single Line Array Whitespace", - "parameters" : [ { - "name" : "spacesAroundBrackets", - "description" : "spacesAroundBrackets" - }, { - "name" : "enableEmptyArrayCheck", - "description" : "enableEmptyArrayCheck" - } ] -}, { - "patternId" : "SlevomatCodingStandard_Arrays_TrailingArrayComma", - "title" : "Arrays: Trailing Array Comma", - "parameters" : [ { - "name" : "enableAfterHeredoc", - "description" : "enableAfterHeredoc" - } ] -}, { - "patternId" : "SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing", - "title" : "Attributes: Attribute And Target Spacing", - "parameters" : [ { - "name" : "linesCount", - "description" : "linesCount" - }, { - "name" : "allowOnSameLine", - "description" : "allowOnSameLine" - } ] -}, { - "patternId" : "SlevomatCodingStandard_Attributes_AttributesOrder", - "title" : "Attributes: Attributes Order", - "parameters" : [ { - "name" : "orderAlphabetically", - "description" : "orderAlphabetically" - } ] -}, { - "patternId" : "SlevomatCodingStandard_Attributes_DisallowAttributesJoining", - "title" : "Attributes: Disallow Attributes Joining", - "parameters" : [ ] -}, { - "patternId" : "SlevomatCodingStandard_Attributes_DisallowMultipleAttributesPerLine", - "title" : "Attributes: Disallow Multiple Attributes Per Line", + "patternId" : "SlevomatCodingStandard_Attributes_DisallowMultipleAttributesPerLine", + "title" : "Attributes: Disallow Multiple Attributes Per Line", "parameters" : [ ] }, { "patternId" : "SlevomatCodingStandard_Attributes_RequireAttributeAfterDocComment", @@ -2456,6 +2022,10 @@ "name" : "fixable", "description" : "fixable" } ] +}, { + "patternId" : "SlevomatCodingStandard_Classes_ClassKeywordOrder", + "title" : "Classes: Class Keyword Order", + "parameters" : [ ] }, { "patternId" : "SlevomatCodingStandard_Classes_ClassLength", "title" : "Classes: Class Length", @@ -2522,6 +2092,12 @@ "patternId" : "SlevomatCodingStandard_Classes_ForbiddenPublicProperty", "title" : "Classes: Forbidden Public Property", "parameters" : [ { + "name" : "allowReadonly", + "description" : "allowReadonly" + }, { + "name" : "allowNonPublicSet", + "description" : "allowNonPublicSet" + }, { "name" : "checkPromoted", "description" : "checkPromoted" } ] @@ -2572,6 +2148,13 @@ "patternId" : "SlevomatCodingStandard_Classes_PropertySpacing", "title" : "Classes: Property Spacing", "parameters" : [ ] +}, { + "patternId" : "SlevomatCodingStandard_Classes_ReadonlyClass", + "title" : "Classes: Readonly Class", + "parameters" : [ { + "name" : "enable", + "description" : "enable" + } ] }, { "patternId" : "SlevomatCodingStandard_Classes_RequireAbstractOrFinal", "title" : "Classes: Require Abstract Or Final", @@ -2587,11 +2170,23 @@ "patternId" : "SlevomatCodingStandard_Classes_RequireMultiLineMethodSignature", "title" : "Classes: Require Multi Line Method Signature", "parameters" : [ { - "name" : "minLineLength", - "description" : "minLineLength" + "name" : "withPromotedProperties", + "description" : "withPromotedProperties" + }, { + "name" : "includedMethodNormalizedPatterns", + "description" : "includedMethodNormalizedPatterns" + }, { + "name" : "excludedMethodNormalizedPatterns", + "description" : "excludedMethodNormalizedPatterns" }, { "name" : "minParametersCount", "description" : "minParametersCount" + }, { + "name" : "minLineLength", + "description" : "minLineLength" + }, { + "name" : "withParametersWithAttributes", + "description" : "withParametersWithAttributes" } ] }, { "patternId" : "SlevomatCodingStandard_Classes_RequireSelfReference", @@ -2603,6 +2198,12 @@ "parameters" : [ { "name" : "maxLineLength", "description" : "maxLineLength" + }, { + "name" : "includedMethodNormalizedPatterns", + "description" : "includedMethodNormalizedPatterns" + }, { + "name" : "excludedMethodNormalizedPatterns", + "description" : "excludedMethodNormalizedPatterns" } ] }, { "patternId" : "SlevomatCodingStandard_Classes_SuperfluousAbstractClassNaming", @@ -2628,6 +2229,13 @@ "patternId" : "SlevomatCodingStandard_Classes_TraitUseDeclaration", "title" : "Classes: Trait Use Declaration", "parameters" : [ ] +}, { + "patternId" : "SlevomatCodingStandard_Classes_TraitUseOrder", + "title" : "Classes: Trait Use Order", + "parameters" : [ { + "name" : "caseSensitive", + "description" : "caseSensitive" + } ] }, { "patternId" : "SlevomatCodingStandard_Classes_TraitUseSpacing", "title" : "Classes: Trait Use Spacing", @@ -2654,7 +2262,10 @@ }, { "patternId" : "SlevomatCodingStandard_Commenting_AnnotationName", "title" : "Commenting: Annotation Name", - "parameters" : [ ] + "parameters" : [ { + "name" : "annotations", + "description" : "annotations" + } ] }, { "patternId" : "SlevomatCodingStandard_Commenting_DeprecatedAnnotationDeclaration", "title" : "Commenting: Deprecated Annotation Declaration", @@ -2708,6 +2319,10 @@ "name" : "allowAboveNonAssignment", "description" : "allowAboveNonAssignment" } ] +}, { + "patternId" : "SlevomatCodingStandard_Commenting_RequireOneDocComment", + "title" : "Commenting: Require One Doc Comment", + "parameters" : [ ] }, { "patternId" : "SlevomatCodingStandard_Commenting_RequireOneLineDocComment", "title" : "Commenting: Require One Line Doc Comment", @@ -2716,6 +2331,13 @@ "patternId" : "SlevomatCodingStandard_Commenting_RequireOneLinePropertyDocComment", "title" : "Commenting: Require One Line Property Doc Comment", "parameters" : [ ] +}, { + "patternId" : "SlevomatCodingStandard_Commenting_ThrowsAnnotationsOrder", + "title" : "Commenting: Throws Annotations Order", + "parameters" : [ { + "name" : "caseSensitive", + "description" : "caseSensitive" + } ] }, { "patternId" : "SlevomatCodingStandard_Commenting_UselessFunctionDocComment", "title" : "Commenting: Useless Function Doc Comment", @@ -2869,6 +2491,9 @@ "parameters" : [ { "name" : "enable", "description" : "enable" + }, { + "name" : "checkIfConditions", + "description" : "checkIfConditions" } ] }, { "patternId" : "SlevomatCodingStandard_ControlStructures_RequireNullCoalesceOperator", @@ -2923,6 +2548,13 @@ "name" : "assumeAllConditionExpressionsAreAlreadyBoolean", "description" : "assumeAllConditionExpressionsAreAlreadyBoolean" } ] +}, { + "patternId" : "SlevomatCodingStandard_Exceptions_CatchExceptionsOrder", + "title" : "Exceptions: Catch Exceptions Order", + "parameters" : [ { + "name" : "caseSensitive", + "description" : "caseSensitive" + } ] }, { "patternId" : "SlevomatCodingStandard_Exceptions_DeadCatch", "title" : "Exceptions: Dead Catch", @@ -3054,6 +2686,12 @@ "parameters" : [ { "name" : "minLineLength", "description" : "minLineLength" + }, { + "name" : "minParametersCount", + "description" : "minParametersCount" + }, { + "name" : "excludedCallNormalizedPatterns", + "description" : "excludedCallNormalizedPatterns" } ] }, { "patternId" : "SlevomatCodingStandard_Functions_RequireSingleLineCall", @@ -3178,9 +2816,6 @@ }, { "name" : "allowFullyQualifiedGlobalClasses", "description" : "allowFullyQualifiedGlobalClasses" - }, { - "name" : "allowFallbackGlobalConstants", - "description" : "allowFallbackGlobalConstants" }, { "name" : "allowFullyQualifiedGlobalConstants", "description" : "allowFullyQualifiedGlobalConstants" @@ -3193,6 +2828,12 @@ }, { "name" : "allowPartialUses", "description" : "allowPartialUses" + }, { + "name" : "allowFallbackGlobalConstants", + "description" : "allowFallbackGlobalConstants" + }, { + "name" : "allowWhenNoNamespace", + "description" : "allowWhenNoNamespace" } ] }, { "patternId" : "SlevomatCodingStandard_Namespaces_RequireOneNamespaceInFile", @@ -3338,6 +2979,9 @@ "parameters" : [ { "name" : "ignoreComplexTernaryConditions", "description" : "ignoreComplexTernaryConditions" + }, { + "name" : "enableCheckAroundNew", + "description" : "enableCheckAroundNew" } ] }, { "patternId" : "SlevomatCodingStandard_PHP_UselessSemicolon", @@ -3356,6 +3000,38 @@ "name" : "disallowSimpleSyntax", "description" : "disallowSimpleSyntax" } ] +}, { + "patternId" : "SlevomatCodingStandard_TypeHints_ClassConstantTypeHint", + "title" : "Type Hints: Class Constant Type Hint", + "parameters" : [ { + "name" : "enableNativeTypeHint", + "description" : "enableNativeTypeHint" + }, { + "name" : "fixableNativeTypeHint", + "description" : "fixableNativeTypeHint" + } ] +}, { + "patternId" : "SlevomatCodingStandard_TypeHints_DNFTypeHintFormat", + "title" : "Type Hints: DNF Type Hint Format", + "parameters" : [ { + "name" : "nullPosition", + "description" : "nullPosition" + }, { + "name" : "withSpacesInsideParentheses", + "description" : "withSpacesInsideParentheses" + }, { + "name" : "shortNullable", + "description" : "shortNullable" + }, { + "name" : "enableForDocComments", + "description" : "enableForDocComments" + }, { + "name" : "withSpacesAroundOperators", + "description" : "withSpacesAroundOperators" + }, { + "name" : "enable", + "description" : "enable" + } ] }, { "patternId" : "SlevomatCodingStandard_TypeHints_DeclareStrictTypes", "title" : "Type Hints: Declare Strict Types", @@ -3777,965 +3453,351 @@ "patternId" : "Squiz_Functions_FunctionDeclarationArgumentSpacing", "title" : "Functions: Function Declaration Argument Spacing", "parameters" : [ { - "name" : "equalsSpacing", - "description" : "equalsSpacing" - }, { - "name" : "requiredSpacesAfterOpen", - "description" : "requiredSpacesAfterOpen" - }, { - "name" : "requiredSpacesBeforeClose", - "description" : "requiredSpacesBeforeClose" - } ] -}, { - "patternId" : "Squiz_Functions_FunctionDuplicateArgument", - "title" : "Lowercase Built-In functions", - "description" : "All PHP built-in functions should be lowercased when called.", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Functions_GlobalFunction", - "title" : "Functions: Global Function", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Functions_LowercaseFunctionKeywords", - "title" : "Lowercase Function Keywords", - "description" : "The php keywords function, public, private, protected, and static should be lowercase.", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Functions_MultiLineFunctionDeclaration", - "title" : "Functions: Multi Line Function Declaration", - "parameters" : [ ] -}, { - "patternId" : "Squiz_NamingConventions_ValidFunctionName", - "title" : "Naming Conventions: Valid Function Name", - "parameters" : [ ] -}, { - "patternId" : "Squiz_NamingConventions_ValidVariableName", - "title" : "Naming Conventions: Valid Variable Name", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Objects_DisallowObjectStringIndex", - "title" : "Objects: Disallow Object String Index", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Objects_ObjectInstantiation", - "title" : "Objects: Object Instantiation", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Objects_ObjectMemberComma", - "title" : "Objects: Object Member Comma", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Operators_ComparisonOperatorUsage", - "title" : "Operators: Comparison Operator Usage", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Operators_IncrementDecrementUsage", - "title" : "Operators: Increment Decrement Usage", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Operators_ValidLogicalOperators", - "title" : "Operators: Valid Logical Operators", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_CommentedOutCode", - "title" : "PHP: Commented Out Code", - "parameters" : [ { - "name" : "maxPercentage", - "description" : "maxPercentage" - } ] -}, { - "patternId" : "Squiz_PHP_DisallowBooleanStatement", - "title" : "PHP: Disallow Boolean Statement", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_DisallowComparisonAssignment", - "title" : "PHP: Disallow Comparison Assignment", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_DisallowInlineIf", - "title" : "PHP: Disallow Inline If", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_DisallowMultipleAssignments", - "title" : "PHP: Disallow Multiple Assignments", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_DisallowSizeFunctionsInLoops", - "title" : "PHP: Disallow Size Functions In Loops", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_DiscouragedFunctions", - "title" : "PHP: Discouraged Functions", - "parameters" : [ { - "name" : "error", - "description" : "error" - } ] -}, { - "patternId" : "Squiz_PHP_EmbeddedPhp", - "title" : "PHP: Embedded Php", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_Eval", - "title" : "PHP: Eval", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_GlobalKeyword", - "title" : "PHP: Global Keyword", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_Heredoc", - "title" : "PHP: Heredoc", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_InnerFunctions", - "title" : "PHP: Inner Functions", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_LowercasePHPFunctions", - "title" : "PHP: Lowercase PHP Functions", - "parameters" : [ ] -}, { - "patternId" : "Squiz_PHP_NonExecutableCode", - "title" : "PHP: Non Executable Code", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Scope_MemberVarScope", - "title" : "Scope: Member Var Scope", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Scope_MethodScope", - "title" : "Scope: Method Scope", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Scope_StaticThisUsage", - "title" : "Static This Usage", - "description" : "Static methods should not use $this.", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Strings_ConcatenationSpacing", - "title" : "Strings: Concatenation Spacing", - "parameters" : [ { - "name" : "spacing", - "description" : "spacing" - }, { - "name" : "ignoreNewlines", - "description" : "ignoreNewlines" - } ] -}, { - "patternId" : "Squiz_Strings_DoubleQuoteUsage", - "title" : "Strings: Double Quote Usage", - "parameters" : [ ] -}, { - "patternId" : "Squiz_Strings_EchoedStrings", - "title" : "Echoed Strings", - "description" : "Simple strings should not be enclosed in parentheses when being echoed.", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_CastSpacing", - "title" : "Cast Whitespace", - "description" : "Casts should not have whitespace inside the parentheses.", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_ControlStructureSpacing", - "title" : "White Space: Control Structure Spacing", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_FunctionClosingBraceSpace", - "title" : "White Space: Function Closing Brace Space", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_FunctionOpeningBraceSpace", - "title" : "White Space: Function Opening Brace Space", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_FunctionSpacing", - "title" : "White Space: Function Spacing", - "parameters" : [ { - "name" : "spacing", - "description" : "spacing" - }, { - "name" : "spacingBeforeFirst", - "description" : "spacingBeforeFirst" - }, { - "name" : "spacingAfterLast", - "description" : "spacingAfterLast" - } ] -}, { - "patternId" : "Squiz_WhiteSpace_LanguageConstructSpacing", - "title" : "Language Construct Whitespace", - "description" : "The php constructs echo, print, return, include, include_once, require, require_once, and new should have one space after them.", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_LogicalOperatorSpacing", - "title" : "White Space: Logical Operator Spacing", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_MemberVarSpacing", - "title" : "White Space: Member Var Spacing", - "parameters" : [ { - "name" : "spacing", - "description" : "spacing" - }, { - "name" : "spacingBeforeFirst", - "description" : "spacingBeforeFirst" - } ] -}, { - "patternId" : "Squiz_WhiteSpace_ObjectOperatorSpacing", - "title" : "Object Operator Spacing", - "description" : "The object operator (->) should not have any space around it.", - "parameters" : [ { - "name" : "ignoreNewlines", - "description" : "ignoreNewlines" - } ] -}, { - "patternId" : "Squiz_WhiteSpace_OperatorSpacing", - "title" : "White Space: Operator Spacing", - "parameters" : [ { - "name" : "ignoreNewlines", - "description" : "ignoreNewlines" - }, { - "name" : "ignoreSpacingBeforeAssignments", - "description" : "ignoreSpacingBeforeAssignments" - } ] -}, { - "patternId" : "Squiz_WhiteSpace_PropertyLabelSpacing", - "title" : "White Space: Property Label Spacing", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_ScopeClosingBrace", - "title" : "White Space: Scope Closing Brace", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_ScopeKeywordSpacing", - "title" : "Scope Keyword Spacing", - "description" : "The php keywords static, public, private, and protected should have one space after them.", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_SemicolonSpacing", - "title" : "Semicolon Spacing", - "description" : "Semicolons should not have spaces before them.", - "parameters" : [ ] -}, { - "patternId" : "Squiz_WhiteSpace_SuperfluousWhitespace", - "title" : "White Space: Superfluous Whitespace", - "parameters" : [ { - "name" : "ignoreBlankLines", - "description" : "ignoreBlankLines" - } ] -}, { - "patternId" : "Symfony_Arrays_MultiLineArrayComma", - "title" : "Arrays: Multi Line Array Comma", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Classes_MultipleClassesOneFile", - "title" : "Classes: Multiple Classes One File", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Classes_PropertyDeclaration", - "title" : "Classes: Property Declaration", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Commenting_Annotations", - "title" : "Commenting: Annotations", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Commenting_ClassComment", - "title" : "Commenting: Class Comment", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Commenting_FunctionComment", - "title" : "Commenting: Function Comment", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Commenting_License", - "title" : "Commenting: License", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Commenting_TypeHinting", - "title" : "Commenting: Type Hinting", - "parameters" : [ ] -}, { - "patternId" : "Symfony_ControlStructure_IdenticalComparison", - "title" : "Control Structure: Identical Comparison", - "parameters" : [ ] -}, { - "patternId" : "Symfony_ControlStructure_UnaryOperators", - "title" : "Control Structure: Unary Operators", - "parameters" : [ ] -}, { - "patternId" : "Symfony_ControlStructure_YodaConditions", - "title" : "Control Structure: Yoda Conditions", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Errors_ExceptionMessage", - "title" : "Errors: Exception Message", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Errors_UserDeprecated", - "title" : "Errors: User Deprecated", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Files_AlphanumericFilename", - "title" : "Files: Alphanumeric Filename", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Formatting_BlankLineBeforeReturn", - "title" : "Formatting: Blank Line Before Return", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Formatting_ReturnOrThrow", - "title" : "Formatting: Return Or Throw", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Functions_Arguments", - "title" : "Functions: Arguments", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Functions_ReturnType", - "title" : "Functions: Return Type", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Functions_ScopeOrder", - "title" : "Functions: Scope Order", - "parameters" : [ ] -}, { - "patternId" : "Symfony_NamingConventions_ValidClassName", - "title" : "Naming Conventions: Valid Class Name", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Objects_ObjectInstantiation", - "title" : "Objects: Object Instantiation", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Whitespace_AssignmentSpacing", - "title" : "Whitespace: Assignment Spacing", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Whitespace_BinaryOperatorSpacing", - "title" : "Whitespace: Binary Operator Spacing", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Whitespace_CommaSpacing", - "title" : "Whitespace: Comma Spacing", - "parameters" : [ ] -}, { - "patternId" : "Symfony_Whitespace_DiscourageFitzinator", - "title" : "Whitespace: Discourage Fitzinator", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_Classes_ConstantDeclarationOrder", - "title" : "Classes: Constant Declaration Order", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_Classes_ObjectInstantiation", - "title" : "Classes: Object Instantiation", - "parameters" : [ { - "name" : "allowNamedConstructors", - "description" : "allowNamedConstructors" - }, { - "name" : "allowInstantiateFinalClasses", - "description" : "allowInstantiateFinalClasses" - }, { - "name" : "reportReflectionError", - "description" : "reportReflectionError" - }, { - "name" : "considerFinalInstantiationOnReflectionError", - "description" : "considerFinalInstantiationOnReflectionError" - }, { - "name" : "allowAnonymousClasses", - "description" : "allowAnonymousClasses" - } ] -}, { - "patternId" : "Vaimo_Classes_PropertyUnderscore", - "title" : "Classes: Property Underscore", - "parameters" : [ { - "name" : "allowInherited", - "description" : "allowInherited" - }, { - "name" : "skipOnReflectionError", - "description" : "skipOnReflectionError" - } ] -}, { - "patternId" : "Vaimo_Classes_ProtectedMember", - "title" : "Classes: Protected Member", - "parameters" : [ { - "name" : "considerInheritedOnReflectionError", - "description" : "considerInheritedOnReflectionError" - }, { - "name" : "allowAbstract", - "description" : "allowAbstract" - }, { - "name" : "allowProtectedPropertyInAbstractClass", - "description" : "allowProtectedPropertyInAbstractClass" - }, { - "name" : "allowProtectedFunctionInAbstractClass", - "description" : "allowProtectedFunctionInAbstractClass" - }, { - "name" : "allowInherited", - "description" : "allowInherited" - } ] -}, { - "patternId" : "Vaimo_Classes_UndefinedProperty", - "title" : "Classes: Undefined Property", - "parameters" : [ { - "name" : "skipOnReflectionError", - "description" : "skipOnReflectionError" - } ] -}, { - "patternId" : "Vaimo_CodeAnalysis_Copyright", - "title" : "Code Analysis: Copyright", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_CodeAnalysis_UnusedFunctionParameter", - "title" : "Code Analysis: Unused Function Parameter", - "parameters" : [ { - "name" : "allowUnusedInheritedParameters", - "description" : "allowUnusedInheritedParameters" - }, { - "name" : "considerInheritedOnReflectionError", - "description" : "considerInheritedOnReflectionError" - } ] -}, { - "patternId" : "Vaimo_Comments_DeprecationNotice", - "title" : "Comments: Deprecation Notice", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_ControlStructures_NestedIf", - "title" : "Control Structures: Nested If", - "parameters" : [ { - "name" : "maxAllowedNesting", - "description" : "maxAllowedNesting" - } ] -}, { - "patternId" : "Vaimo_ControlStructures_TernaryOperator", - "title" : "Control Structures: Ternary Operator", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_ControlStructures_TernaryOperatorPlacement", - "title" : "Control Structures: Ternary Operator Placement", - "parameters" : [ { - "name" : "allowOnly", - "description" : "allowOnly" - } ] -}, { - "patternId" : "Vaimo_Custom_ArrayAccess", - "title" : "Custom: Array Access", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_Custom_FixMultilineIf", - "title" : "Custom: Fix Multiline If", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_Custom_LegacyDocblockTags", - "title" : "Custom: Legacy Docblock Tags", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_Custom_NoPhpCsDisable", - "title" : "Custom: No Php Cs Disable", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_Exceptions_TryProcessSystemResources", - "title" : "Exceptions: Try Process System Resources", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_NamingConventions_AndOrInClassName", - "title" : "Naming Conventions: And Or In Class Name", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_NamingConventions_AndOrInMethodName", - "title" : "Naming Conventions: And Or In Method Name", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_NamingConventions_AndOrInVariableName", - "title" : "Naming Conventions: And Or In Variable Name", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_NamingConventions_IllegalWordInClassName", - "title" : "Naming Conventions: Illegal Word In Class Name", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_NamingConventions_IllegalWordInMethodName", - "title" : "Naming Conventions: Illegal Word In Method Name", - "parameters" : [ { - "name" : "allowInheritedMethods", - "description" : "allowInheritedMethods" - }, { - "name" : "considerInheritedOnReflectionError", - "description" : "considerInheritedOnReflectionError" - } ] -}, { - "patternId" : "Vaimo_NamingConventions_IllegalWordInVariableName", - "title" : "Naming Conventions: Illegal Word In Variable Name", - "parameters" : [ { - "name" : "allowInheritedProperties", - "description" : "allowInheritedProperties" - }, { - "name" : "considerInheritedOnReflectionError", - "description" : "considerInheritedOnReflectionError" - } ] -}, { - "patternId" : "Vaimo_NamingConventions_VariablesCamelCase", - "title" : "Naming Conventions: Variables Camel Case", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_PHP_NoSilencedErrors", - "title" : "PHP: No Silenced Errors", - "parameters" : [ ] -}, { - "patternId" : "Vaimo_TypeHints_IllegalReturnTypeAnnotation", - "title" : "Type Hints: Illegal Return Type Annotation", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Classes_DeclarationCompatibility", - "title" : "Classes: Declaration Compatibility", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Classes_RestrictedExtendClasses", - "title" : "Classes: Restricted Extend Classes", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Constants_ConstantString", - "title" : "Constants: Constant String", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Constants_RestrictedConstants", - "title" : "Constants: Restricted Constants", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Files_IncludingFile", - "title" : "Files: Including File", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Files_IncludingNonPHPFile", - "title" : "Files: Including Non PHP File", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Functions_CheckReturnValue", - "title" : "Functions: Check Return Value", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Functions_DynamicCalls", - "title" : "Functions: Dynamic Calls", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Functions_RestrictedFunctions", - "title" : "Functions: Restricted Functions", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Functions_StripTags", - "title" : "Functions: Strip Tags", - "parameters" : [ ] -}, { - "patternId" : "WordPressVIPMinimum_Hooks_AlwaysReturnInFilter", - "title" : "Hooks: Always Return In Filter", - "parameters" : [ ] + "name" : "equalsSpacing", + "description" : "equalsSpacing" + }, { + "name" : "requiredSpacesAfterOpen", + "description" : "requiredSpacesAfterOpen" + }, { + "name" : "requiredSpacesBeforeClose", + "description" : "requiredSpacesBeforeClose" + } ] }, { - "patternId" : "WordPressVIPMinimum_Hooks_PreGetPosts", - "title" : "Hooks: Pre Get Posts", + "patternId" : "Squiz_Functions_FunctionDuplicateArgument", + "title" : "Lowercase Built-In functions", + "description" : "All PHP built-in functions should be lowercased when called.", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Hooks_RestrictedHooks", - "title" : "Hooks: Restricted Hooks", + "patternId" : "Squiz_Functions_GlobalFunction", + "title" : "Functions: Global Function", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_JS_DangerouslySetInnerHTML", - "title" : "JS: Dangerously Set Inner HTML", + "patternId" : "Squiz_Functions_LowercaseFunctionKeywords", + "title" : "Lowercase Function Keywords", + "description" : "The php keywords function, public, private, protected, and static should be lowercase.", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_JS_HTMLExecutingFunctions", - "title" : "JS: HTML Executing Functions", + "patternId" : "Squiz_Functions_MultiLineFunctionDeclaration", + "title" : "Functions: Multi Line Function Declaration", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_JS_InnerHTML", - "title" : "JS: Inner HTML", + "patternId" : "Squiz_NamingConventions_ValidFunctionName", + "title" : "Naming Conventions: Valid Function Name", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_JS_StringConcat", - "title" : "JS: String Concat", + "patternId" : "Squiz_NamingConventions_ValidVariableName", + "title" : "Naming Conventions: Valid Variable Name", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_JS_StrippingTags", - "title" : "JS: Stripping Tags", + "patternId" : "Squiz_Objects_DisallowObjectStringIndex", + "title" : "Objects: Disallow Object String Index", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_JS_Window", - "title" : "JS: Window", + "patternId" : "Squiz_Objects_ObjectInstantiation", + "title" : "Objects: Object Instantiation", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Performance_CacheValueOverride", - "title" : "Performance: Cache Value Override", + "patternId" : "Squiz_Objects_ObjectMemberComma", + "title" : "Objects: Object Member Comma", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Performance_FetchingRemoteData", - "title" : "Performance: Fetching Remote Data", + "patternId" : "Squiz_Operators_ComparisonOperatorUsage", + "title" : "Operators: Comparison Operator Usage", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Performance_LowExpiryCacheTime", - "title" : "Performance: Low Expiry Cache Time", + "patternId" : "Squiz_Operators_IncrementDecrementUsage", + "title" : "Operators: Increment Decrement Usage", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Performance_NoPaging", - "title" : "Performance: No Paging", + "patternId" : "Squiz_Operators_ValidLogicalOperators", + "title" : "Operators: Valid Logical Operators", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Performance_OrderByRand", - "title" : "Performance: Order By Rand", - "parameters" : [ ] + "patternId" : "Squiz_PHP_CommentedOutCode", + "title" : "PHP: Commented Out Code", + "parameters" : [ { + "name" : "maxPercentage", + "description" : "maxPercentage" + } ] }, { - "patternId" : "WordPressVIPMinimum_Performance_RegexpCompare", - "title" : "Performance: Regexp Compare", + "patternId" : "Squiz_PHP_DisallowBooleanStatement", + "title" : "PHP: Disallow Boolean Statement", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Performance_RemoteRequestTimeout", - "title" : "Performance: Remote Request Timeout", + "patternId" : "Squiz_PHP_DisallowComparisonAssignment", + "title" : "PHP: Disallow Comparison Assignment", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Performance_TaxonomyMetaInOptions", - "title" : "Performance: Taxonomy Meta In Options", + "patternId" : "Squiz_PHP_DisallowInlineIf", + "title" : "PHP: Disallow Inline If", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Performance_WPQueryParams", - "title" : "Performance: WP Query Params", + "patternId" : "Squiz_PHP_DisallowMultipleAssignments", + "title" : "PHP: Disallow Multiple Assignments", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Security_EscapingVoidReturnFunctions", - "title" : "Security: Escaping Void Return Functions", + "patternId" : "Squiz_PHP_DisallowSizeFunctionsInLoops", + "title" : "PHP: Disallow Size Functions In Loops", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Security_ExitAfterRedirect", - "title" : "Security: Exit After Redirect", - "parameters" : [ ] + "patternId" : "Squiz_PHP_DiscouragedFunctions", + "title" : "PHP: Discouraged Functions", + "parameters" : [ { + "name" : "error", + "description" : "error" + } ] }, { - "patternId" : "WordPressVIPMinimum_Security_Mustache", - "title" : "Security: Mustache", + "patternId" : "Squiz_PHP_EmbeddedPhp", + "title" : "PHP: Embedded Php", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Security_PHPFilterFunctions", - "title" : "Security: PHP Filter Functions", + "patternId" : "Squiz_PHP_Eval", + "title" : "PHP: Eval", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Security_ProperEscapingFunction", - "title" : "Security: Proper Escaping Function", + "patternId" : "Squiz_PHP_GlobalKeyword", + "title" : "PHP: Global Keyword", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Security_StaticStrreplace", - "title" : "Security: Static Strreplace", + "patternId" : "Squiz_PHP_Heredoc", + "title" : "PHP: Heredoc", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Security_Twig", - "title" : "Security: Twig", + "patternId" : "Squiz_PHP_InnerFunctions", + "title" : "PHP: Inner Functions", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Security_Underscorejs", - "title" : "Security: Underscorejs", + "patternId" : "Squiz_PHP_LowercasePHPFunctions", + "title" : "PHP: Lowercase PHP Functions", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Security_Vuejs", - "title" : "Security: Vuejs", + "patternId" : "Squiz_PHP_NonExecutableCode", + "title" : "PHP: Non Executable Code", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_UserExperience_AdminBarRemoval", - "title" : "User Experience: Admin Bar Removal", - "parameters" : [ { - "name" : "remove_only", - "description" : "remove_only" - } ] -}, { - "patternId" : "WordPressVIPMinimum_Variables_RestrictedVariables", - "title" : "Variables: Restricted Variables", + "patternId" : "Squiz_Scope_MemberVarScope", + "title" : "Scope: Member Var Scope", "parameters" : [ ] }, { - "patternId" : "WordPressVIPMinimum_Variables_ServerVariables", - "title" : "Variables: Server Variables", + "patternId" : "Squiz_Scope_MethodScope", + "title" : "Scope: Method Scope", "parameters" : [ ] }, { - "patternId" : "WordPress_Arrays_ArrayDeclarationSpacing", - "title" : "Arrays: Array Declaration Spacing", - "parameters" : [ { - "name" : "allow_single_item_single_line_associative_arrays", - "description" : "allow_single_item_single_line_associative_arrays" - } ] -}, { - "patternId" : "WordPress_Arrays_ArrayIndentation", - "title" : "Arrays: Array Indentation", - "parameters" : [ { - "name" : "tabIndent", - "description" : "tabIndent" - } ] -}, { - "patternId" : "WordPress_Arrays_ArrayKeySpacingRestrictions", - "title" : "Arrays: Array Key Spacing Restrictions", + "patternId" : "Squiz_Scope_StaticThisUsage", + "title" : "Static This Usage", + "description" : "Static methods should not use $this.", "parameters" : [ ] }, { - "patternId" : "WordPress_Arrays_MultipleStatementAlignment", - "title" : "Arrays: Multiple Statement Alignment", + "patternId" : "Squiz_Strings_ConcatenationSpacing", + "title" : "Strings: Concatenation Spacing", "parameters" : [ { + "name" : "spacing", + "description" : "spacing" + }, { "name" : "ignoreNewlines", "description" : "ignoreNewlines" - }, { - "name" : "exact", - "description" : "exact" - }, { - "name" : "maxColumn", - "description" : "maxColumn" - }, { - "name" : "alignMultilineItems", - "description" : "alignMultilineItems" } ] }, { - "patternId" : "WordPress_CodeAnalysis_AssignmentInTernaryCondition", - "title" : "Code Analysis: Assignment In Ternary Condition", - "parameters" : [ ] -}, { - "patternId" : "WordPress_CodeAnalysis_EscapedNotTranslated", - "title" : "Code Analysis: Escaped Not Translated", - "parameters" : [ ] -}, { - "patternId" : "WordPress_DB_DirectDatabaseQuery", - "title" : "DB: Direct Database Query", - "parameters" : [ ] -}, { - "patternId" : "WordPress_DB_PreparedSQL", - "title" : "DB: Prepared SQL", - "parameters" : [ ] -}, { - "patternId" : "WordPress_DB_PreparedSQLPlaceholders", - "title" : "DB: Prepared SQL Placeholders", + "patternId" : "Squiz_Strings_DoubleQuoteUsage", + "title" : "Strings: Double Quote Usage", "parameters" : [ ] }, { - "patternId" : "WordPress_DB_RestrictedClasses", - "title" : "DB: Restricted Classes", + "patternId" : "Squiz_Strings_EchoedStrings", + "title" : "Echoed Strings", + "description" : "Simple strings should not be enclosed in parentheses when being echoed.", "parameters" : [ ] }, { - "patternId" : "WordPress_DB_RestrictedFunctions", - "title" : "DB: Restricted Functions", + "patternId" : "Squiz_WhiteSpace_CastSpacing", + "title" : "Cast Whitespace", + "description" : "Casts should not have whitespace inside the parentheses.", "parameters" : [ ] }, { - "patternId" : "WordPress_DB_SlowDBQuery", - "title" : "DB: Slow DB Query", + "patternId" : "Squiz_WhiteSpace_ControlStructureSpacing", + "title" : "White Space: Control Structure Spacing", "parameters" : [ ] }, { - "patternId" : "WordPress_DateTime_CurrentTimeTimestamp", - "title" : "Date Time: Current Time Timestamp", + "patternId" : "Squiz_WhiteSpace_FunctionClosingBraceSpace", + "title" : "White Space: Function Closing Brace Space", "parameters" : [ ] }, { - "patternId" : "WordPress_DateTime_RestrictedFunctions", - "title" : "Date Time: Restricted Functions", + "patternId" : "Squiz_WhiteSpace_FunctionOpeningBraceSpace", + "title" : "White Space: Function Opening Brace Space", "parameters" : [ ] }, { - "patternId" : "WordPress_Files_FileName", - "title" : "Files: File Name", + "patternId" : "Squiz_WhiteSpace_FunctionSpacing", + "title" : "White Space: Function Spacing", "parameters" : [ { - "name" : "is_theme", - "description" : "is_theme" + "name" : "spacing", + "description" : "spacing" + }, { + "name" : "spacingBeforeFirst", + "description" : "spacingBeforeFirst" }, { - "name" : "strict_class_file_names", - "description" : "strict_class_file_names" + "name" : "spacingAfterLast", + "description" : "spacingAfterLast" } ] }, { - "patternId" : "WordPress_NamingConventions_PrefixAllGlobals", - "title" : "Naming Conventions: Prefix All Globals (Deprecated)", + "patternId" : "Squiz_WhiteSpace_LanguageConstructSpacing", + "title" : "Language Construct Whitespace", + "description" : "The php constructs echo, print, return, include, include_once, require, require_once, and new should have one space after them.", "parameters" : [ ] }, { - "patternId" : "WordPress_NamingConventions_ValidFunctionName", - "title" : "Naming Conventions: Valid Function Name (Deprecated)", + "patternId" : "Squiz_WhiteSpace_LogicalOperatorSpacing", + "title" : "White Space: Logical Operator Spacing", "parameters" : [ ] }, { - "patternId" : "WordPress_NamingConventions_ValidHookName", - "title" : "Naming Conventions: Valid Hook Name", + "patternId" : "Squiz_WhiteSpace_MemberVarSpacing", + "title" : "White Space: Member Var Spacing", "parameters" : [ { - "name" : "additionalWordDelimiters", - "description" : "additionalWordDelimiters" + "name" : "spacing", + "description" : "spacing" + }, { + "name" : "spacingBeforeFirst", + "description" : "spacingBeforeFirst" } ] }, { - "patternId" : "WordPress_NamingConventions_ValidPostTypeSlug", - "title" : "Naming Conventions: Valid Post Type Slug", - "parameters" : [ ] + "patternId" : "Squiz_WhiteSpace_ObjectOperatorSpacing", + "title" : "Object Operator Spacing", + "description" : "The object operator (->) should not have any space around it.", + "parameters" : [ { + "name" : "ignoreNewlines", + "description" : "ignoreNewlines" + } ] }, { - "patternId" : "WordPress_NamingConventions_ValidVariableName", - "title" : "Naming Conventions: Valid Variable Name", - "parameters" : [ ] + "patternId" : "Squiz_WhiteSpace_OperatorSpacing", + "title" : "White Space: Operator Spacing", + "parameters" : [ { + "name" : "ignoreNewlines", + "description" : "ignoreNewlines" + }, { + "name" : "ignoreSpacingBeforeAssignments", + "description" : "ignoreSpacingBeforeAssignments" + } ] }, { - "patternId" : "WordPress_PHP_DevelopmentFunctions", - "title" : "PHP: Development Functions", + "patternId" : "Squiz_WhiteSpace_PropertyLabelSpacing", + "title" : "White Space: Property Label Spacing", "parameters" : [ ] }, { - "patternId" : "WordPress_PHP_DiscouragedPHPFunctions", - "title" : "PHP: Discouraged PHP Functions", + "patternId" : "Squiz_WhiteSpace_ScopeClosingBrace", + "title" : "White Space: Scope Closing Brace", "parameters" : [ ] }, { - "patternId" : "WordPress_PHP_DontExtract", - "title" : "PHP: Dont Extract", + "patternId" : "Squiz_WhiteSpace_ScopeKeywordSpacing", + "title" : "Scope Keyword Spacing", + "description" : "The php keywords static, public, private, and protected should have one space after them.", "parameters" : [ ] }, { - "patternId" : "WordPress_PHP_IniSet", - "title" : "PHP: Ini Set", + "patternId" : "Squiz_WhiteSpace_SemicolonSpacing", + "title" : "Semicolon Spacing", + "description" : "Semicolons should not have spaces before them.", "parameters" : [ ] }, { - "patternId" : "WordPress_PHP_NoSilencedErrors", - "title" : "PHP: No Silenced Errors", + "patternId" : "Squiz_WhiteSpace_SuperfluousWhitespace", + "title" : "White Space: Superfluous Whitespace", "parameters" : [ { - "name" : "context_length", - "description" : "context_length" - }, { - "name" : "usePHPFunctionsList", - "description" : "usePHPFunctionsList" + "name" : "ignoreBlankLines", + "description" : "ignoreBlankLines" } ] }, { - "patternId" : "WordPress_PHP_POSIXFunctions", - "title" : "PHP: POSIX Functions", + "patternId" : "Symfony_Arrays_MultiLineArrayComma", + "title" : "Arrays: Multi Line Array Comma", "parameters" : [ ] }, { - "patternId" : "WordPress_PHP_PregQuoteDelimiter", - "title" : "PHP: Preg Quote Delimiter", + "patternId" : "Symfony_Classes_MultipleClassesOneFile", + "title" : "Classes: Multiple Classes One File", "parameters" : [ ] }, { - "patternId" : "WordPress_PHP_RestrictedPHPFunctions", - "title" : "PHP: Restricted PHP Functions", + "patternId" : "Symfony_Classes_PropertyDeclaration", + "title" : "Classes: Property Declaration", "parameters" : [ ] }, { - "patternId" : "WordPress_PHP_StrictInArray", - "title" : "PHP: Strict In Array", + "patternId" : "Symfony_Commenting_Annotations", + "title" : "Commenting: Annotations", "parameters" : [ ] }, { - "patternId" : "WordPress_PHP_TypeCasts", - "title" : "PHP: Type Casts", + "patternId" : "Symfony_Commenting_ClassComment", + "title" : "Commenting: Class Comment", "parameters" : [ ] }, { - "patternId" : "WordPress_PHP_YodaConditions", - "title" : "PHP: Yoda Conditions", + "patternId" : "Symfony_Commenting_FunctionComment", + "title" : "Commenting: Function Comment", "parameters" : [ ] }, { - "patternId" : "WordPress_Security_EscapeOutput", - "title" : "Security: Escape Output", + "patternId" : "Symfony_Commenting_License", + "title" : "Commenting: License", "parameters" : [ ] }, { - "patternId" : "WordPress_Security_NonceVerification", - "title" : "Security: Nonce Verification", + "patternId" : "Symfony_Commenting_TypeHinting", + "title" : "Commenting: Type Hinting", "parameters" : [ ] }, { - "patternId" : "WordPress_Security_PluginMenuSlug", - "title" : "Security: Plugin Menu Slug", + "patternId" : "Symfony_ControlStructure_IdenticalComparison", + "title" : "Control Structure: Identical Comparison", "parameters" : [ ] }, { - "patternId" : "WordPress_Security_SafeRedirect", - "title" : "Security: Safe Redirect", + "patternId" : "Symfony_ControlStructure_UnaryOperators", + "title" : "Control Structure: Unary Operators", "parameters" : [ ] }, { - "patternId" : "WordPress_Security_ValidatedSanitizedInput", - "title" : "Security: Validated Sanitized Input", - "parameters" : [ { - "name" : "check_validation_in_scope_only", - "description" : "check_validation_in_scope_only" - } ] -}, { - "patternId" : "WordPress_Utils_I18nTextDomainFixer", - "title" : "Utils: I18n Text Domain Fixer", - "parameters" : [ { - "name" : "new_text_domain", - "description" : "new_text_domain" - } ] -}, { - "patternId" : "WordPress_WP_AlternativeFunctions", - "title" : "WP: Alternative Functions", + "patternId" : "Symfony_ControlStructure_YodaConditions", + "title" : "Control Structure: Yoda Conditions", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_Capabilities", - "title" : "WP: Capabilities", + "patternId" : "Symfony_Errors_ExceptionMessage", + "title" : "Errors: Exception Message", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_CapitalPDangit", - "title" : "WP: Capital P Dangit", + "patternId" : "Symfony_Errors_UserDeprecated", + "title" : "Errors: User Deprecated", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_ClassNameCase", - "title" : "WP: Class Name Case", + "patternId" : "Symfony_Files_AlphanumericFilename", + "title" : "Files: Alphanumeric Filename", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_CronInterval", - "title" : "WP: Cron Interval", - "parameters" : [ { - "name" : "min_interval", - "description" : "min_interval" - } ] -}, { - "patternId" : "WordPress_WP_DeprecatedClasses", - "title" : "WP: Deprecated Classes", + "patternId" : "Symfony_Formatting_BlankLineBeforeReturn", + "title" : "Formatting: Blank Line Before Return", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_DeprecatedFunctions", - "title" : "WP: Deprecated Functions", + "patternId" : "Symfony_Formatting_ReturnOrThrow", + "title" : "Formatting: Return Or Throw", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_DeprecatedParameterValues", - "title" : "WP: Deprecated Parameter Values", + "patternId" : "Symfony_Functions_Arguments", + "title" : "Functions: Arguments", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_DeprecatedParameters", - "title" : "WP: Deprecated Parameters", + "patternId" : "Symfony_Functions_ReturnType", + "title" : "Functions: Return Type", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_DiscouragedConstants", - "title" : "WP: Discouraged Constants", + "patternId" : "Symfony_Functions_ScopeOrder", + "title" : "Functions: Scope Order", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_DiscouragedFunctions", - "title" : "WP: Discouraged Functions", + "patternId" : "Symfony_NamingConventions_ValidClassName", + "title" : "Naming Conventions: Valid Class Name", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_EnqueuedResourceParameters", - "title" : "WP: Enqueued Resource Parameters", + "patternId" : "Symfony_Objects_ObjectInstantiation", + "title" : "Objects: Object Instantiation", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_EnqueuedResources", - "title" : "WP: Enqueued Resources", + "patternId" : "Symfony_Whitespace_AssignmentSpacing", + "title" : "Whitespace: Assignment Spacing", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_GlobalVariablesOverride", - "title" : "WP: Global Variables Override", - "parameters" : [ { - "name" : "treat_files_as_scoped", - "description" : "treat_files_as_scoped" - } ] -}, { - "patternId" : "WordPress_WP_I18n", - "title" : "WP: I18n", + "patternId" : "Symfony_Whitespace_BinaryOperatorSpacing", + "title" : "Whitespace: Binary Operator Spacing", "parameters" : [ ] }, { - "patternId" : "WordPress_WP_PostsPerPage", - "title" : "WP: Posts Per Page", - "parameters" : [ { - "name" : "posts_per_page", - "description" : "posts_per_page" - } ] -}, { - "patternId" : "WordPress_WhiteSpace_CastStructureSpacing", - "title" : "White Space: Cast Structure Spacing", + "patternId" : "Symfony_Whitespace_CommaSpacing", + "title" : "Whitespace: Comma Spacing", "parameters" : [ ] }, { - "patternId" : "WordPress_WhiteSpace_ControlStructureSpacing", - "title" : "White Space: Control Structure Spacing", - "parameters" : [ { - "name" : "blank_line_check", - "description" : "blank_line_check" - }, { - "name" : "blank_line_after_check", - "description" : "blank_line_after_check" - }, { - "name" : "space_before_colon", - "description" : "space_before_colon" - } ] -}, { - "patternId" : "WordPress_WhiteSpace_ObjectOperatorSpacing", - "title" : "White Space: Object Operator Spacing", + "patternId" : "Symfony_Whitespace_DiscourageFitzinator", + "title" : "Whitespace: Discourage Fitzinator", "parameters" : [ ] -}, { - "patternId" : "WordPress_WhiteSpace_OperatorSpacing", - "title" : "White Space: Operator Spacing", - "parameters" : [ { - "name" : "ignoreNewlines", - "description" : "ignoreNewlines" - } ] }, { "patternId" : "Zend_Debug_CodeAnalyzer", "title" : "Zend Code Analyzer", diff --git a/docs/patterns.json b/docs/patterns.json index ccc590b8..9992b1c6 100644 --- a/docs/patterns.json +++ b/docs/patterns.json @@ -1,6 +1,6 @@ { "name" : "phpcs", - "version" : "3.10.1", + "version" : "4.0.1", "patterns" : [ { "patternId" : "CakePHP_Classes_ReturnTypeHint", "level" : "Info", @@ -151,28 +151,7 @@ "languages" : [ ], "enabled" : false }, { - "patternId" : "Drupal_Arrays_DisallowLongArraySyntax", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_CSS_ClassDefinitionNameSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_CSS_ColourDefinition", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Classes_ClassCreateInstance", + "patternId" : "Drupal_Attributes_ValidHookName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], @@ -188,13 +167,6 @@ } ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "Drupal_Classes_ClassFileName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "Drupal_Classes_FullyQualifiedNamespace", "level" : "Info", @@ -202,13 +174,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "Drupal_Classes_InterfaceName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "Drupal_Classes_PropertyDeclaration", "level" : "Info", @@ -216,13 +181,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "Drupal_Classes_UnusedUseStatement", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "Drupal_Classes_UseGlobalClass", "level" : "Info", @@ -230,13 +188,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "Drupal_Classes_UseLeadingBackslash", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "Drupal_Commenting_ClassComment", "level" : "Info", @@ -244,13 +195,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "Drupal_Commenting_DataTypeNamespace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "Drupal_Commenting_Deprecated", "level" : "Info", @@ -353,21 +297,10 @@ "patternId" : "Drupal_ControlStructures_ControlSignature", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_ControlStructures_ElseIf", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_ControlStructures_InlineControlStructure", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "requiredSpacesBeforeColon", + "default" : 0 + } ], "languages" : [ ], "enabled" : false }, { @@ -445,13 +378,6 @@ } ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "Drupal_Functions_FunctionDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "Drupal_Functions_MultiLineFunctionDeclaration", "level" : "Info", @@ -498,14 +424,14 @@ "languages" : [ ], "enabled" : false }, { - "patternId" : "Drupal_Methods_MethodDeclaration", + "patternId" : "Drupal_NamingConventions_ValidClassName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Drupal_NamingConventions_ValidClassName", + "patternId" : "Drupal_NamingConventions_ValidEnumCase", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], @@ -631,13 +557,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "Drupal_Strings_UnnecessaryStringConcat", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "Drupal_WhiteSpace_CloseBracketSpacing", "level" : "Info", @@ -659,13 +578,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "Drupal_WhiteSpace_Namespace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "Drupal_WhiteSpace_ObjectOperatorIndent", "level" : "Info", @@ -1390,6004 +1302,4486 @@ "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_Classes_Mysql4", + "patternId" : "MySource_CSS_BrowserSpecificStyles", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_Classes_ObjectInstantiation", + "patternId" : "MySource_Channels_DisallowSelfActions", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_Classes_ResourceModel", + "patternId" : "MySource_Channels_IncludeOwnSystem", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_CodeAnalysis_EmptyBlock", + "patternId" : "MySource_Channels_IncludeSystem", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_Exceptions_DirectThrow", + "patternId" : "MySource_Channels_UnusedSystem", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_Exceptions_Namespace", + "patternId" : "MySource_Commenting_FunctionComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_PHP_Goto", + "patternId" : "MySource_Debug_DebugCode", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_PHP_PrivateClassMember", + "patternId" : "MySource_Debug_FirebugConsole", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_PHP_Syntax", + "patternId" : "MySource_Objects_AssignThis", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_PHP_Var", + "patternId" : "MySource_Objects_CreateWidgetTypeCallback", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_Performance_CollectionCount", + "patternId" : "MySource_Objects_DisallowNewWidget", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_Performance_EmptyCheck", + "patternId" : "MySource_PHP_AjaxNullComparison", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_Performance_InefficientMethods", + "patternId" : "MySource_PHP_EvalObjectFactory", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_Performance_Loop", + "patternId" : "MySource_PHP_GetRequestData", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_SQL_MissedIndexes", + "patternId" : "MySource_PHP_ReturnFunctionValue", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_SQL_RawQuery", + "patternId" : "MySource_Strings_JoinStrings", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_SQL_SlowQuery", + "patternId" : "PEAR_Classes_ClassDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "MEQP1_Security_Acl", - "level" : "Error", - "category" : "Security", + "patternId" : "PEAR_Commenting_ClassComment", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "MEQP1_Security_DiscouragedFunction", - "level" : "Warning", - "category" : "Security", - "subcategory" : "InsecureModulesLibraries", + "patternId" : "PEAR_Commenting_FileComment", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "MEQP1_Security_IncludeFile", - "level" : "Warning", - "category" : "Security", - "parameters" : [ ], + "patternId" : "PEAR_Commenting_FunctionComment", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ { + "name" : "minimumVisibility", + "default" : "'private'" + } ], "languages" : [ ], "enabled" : true }, { - "patternId" : "MEQP1_Security_InsecureFunction", + "patternId" : "PEAR_Commenting_InlineComment", "level" : "Info", - "category" : "Security", - "subcategory" : "InsecureModulesLibraries", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MEQP1_Security_LanguageConstruct", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], + "patternId" : "PEAR_ControlStructures_ControlSignature", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ { + "name" : "ignoreComments", + "default" : true + } ], "languages" : [ ], "enabled" : true }, { - "patternId" : "MEQP1_Security_Superglobal", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], + "patternId" : "PEAR_ControlStructures_MultiLineCondition", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ { + "name" : "indent", + "default" : 4 + } ], "languages" : [ ], "enabled" : true }, { - "patternId" : "MEQP1_Stdlib_DateTime", + "patternId" : "PEAR_Files_IncludingFile", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "MEQP1_Strings_RegEx", + "patternId" : "PEAR_Formatting_MultiLineAssignment", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "indent", + "default" : 4 + } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "MEQP1_Strings_StringConcat", + "patternId" : "PEAR_Functions_FunctionCallSignature", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "indent", + "default" : 4 + }, { + "name" : "allowMultipleArguments", + "default" : true + }, { + "name" : "requiredSpacesAfterOpen", + "default" : 0 + }, { + "name" : "requiredSpacesBeforeClose", + "default" : 0 + } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "MEQP1_Strings_StringPosition", + "patternId" : "PEAR_Functions_FunctionDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "indent", + "default" : 4 + } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "MEQP1_Templates_XssTemplate", + "patternId" : "PEAR_Functions_ValidDefaultValue", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "Magento2Framework_Header_Copyright", + "patternId" : "PEAR_NamingConventions_ValidClassName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "Magento2Framework_Header_CopyrightAnotherExtensionsFiles", + "patternId" : "PEAR_NamingConventions_ValidFunctionName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2Framework_Header_CopyrightGraphQL", + "patternId" : "PEAR_NamingConventions_ValidVariableName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2Framework_Header_License", + "patternId" : "PEAR_WhiteSpace_ObjectOperatorIndent", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "indent", + "default" : 4 + }, { + "name" : "multilevel", + "default" : false + } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "Magento2_Annotation_MethodAnnotationStructure", + "patternId" : "PEAR_WhiteSpace_ScopeClosingBrace", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "indent", + "default" : 4 + } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "Magento2_Annotation_MethodArguments", + "patternId" : "PEAR_WhiteSpace_ScopeIndent", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "Magento2_Classes_AbstractApi", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Attributes_NewAttributes", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Classes_DiscouragedDependencies", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_ForbiddenClassNameUnderscore", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_CodeAnalysis_EmptyBlock", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_ForbiddenExtendingFinalPHPClass", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Commenting_ClassAndInterfacePHPDocFormatting", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewAbstractProperties", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Commenting_ClassPropertyPHPDocFormatting", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewAnonymousClasses", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Commenting_ConstantsPHPDocFormatting", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewClasses", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Exceptions_DirectThrow", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewConstVisibility", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Exceptions_ThrowCatch", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewConstructorPropertyPromotion", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Exceptions_TryProcessSystemResources", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewFinalConstants", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Functions_DiscouragedFunction", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "error", - "default" : false - } ], + "patternId" : "PHPCompatibility_Classes_NewFinalProperties", + "level" : "Warning", + "category" : "Compatibility", + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Functions_FunctionsDeprecatedWithoutArgument", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewLateStaticBinding", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Functions_StaticFunction", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewReadonlyClasses", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_GraphQL_AbstractGraphQL", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewReadonlyProperties", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_GraphQL_ValidArgumentName", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewStaticAvizProperties", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_GraphQL_ValidEnumValue", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewTypedConstants", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_GraphQL_ValidFieldName", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_NewTypedProperties", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_GraphQL_ValidTopLevelFieldName", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_RemovedClasses", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_GraphQL_ValidTypeName", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Classes_RemovedOrphanedParent", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Html_HtmlBinding", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Constants_NewConstants", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Html_HtmlClosingVoidTags", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Constants_NewConstantsInTraits", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Html_HtmlCollapsibleAttribute", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Constants_NewMagicClassConstant", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Html_HtmlDirective", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Constants_RemovedConstants", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Html_HtmlSelfClosingTags", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ControlStructures_DiscouragedSwitchContinue", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_AbstractBlock", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueOutsideLoop", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_ClassReferencesInConfigurationFiles", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueVariableArguments", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_DiConfig", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ControlStructures_ForbiddenSwitchWithMultipleDefaultBlocks", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_EmailTemplate", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ControlStructures_NewExecutionDirectives", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_EscapeMethodsOnBlockClass", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ControlStructures_NewForeachExpressionReferencing", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_InstallUpgrade", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ControlStructures_NewListInForeach", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_Layout", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ControlStructures_NewMultiCatch", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_MageEntity", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ControlStructures_NewNonCapturingCatch", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_ModuleXML", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Extensions_RemovedExtensions", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_ObsoleteAcl", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_AbstractPrivateMethods", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_ObsoleteConfigNodes", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenFinalPrivateMethods", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_ObsoleteConnection", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_ObsoleteMenu", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParametersWithSameName", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_ObsoleteSystemConfiguration", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenToStringParameters", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_PhtmlTemplate", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenVariableNamesInClosureUse", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_RestrictedCode", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewClosure", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_TableName", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewExceptionsFromToString", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Legacy_WidgetXML", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewNullableTypes", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_AvoidId", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewParamTypeDeclarations", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_BracesFormatting", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewReturnTypeDeclarations", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_ClassNaming", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_NewTrailingComma", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_ColonSpacing", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_ColourDefinition", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedCallingDestructAfterConstructorExit", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_CombinatorIndentation", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedImplicitlyNullableParam", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_CommentLevels", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedOptionalBeforeRequiredParam", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_ImportantProperty", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedReturnByReferenceFromVoid", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_Indentation", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - }, { - "name" : "maxIndentLevel", - "default" : 3 - } ], + "patternId" : "PHPCompatibility_FunctionNameRestrictions_NewMagicMethods", + "level" : "Warning", + "category" : "Compatibility", + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_PropertiesLineBreak", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedMagicAutoload", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_PropertiesSorting", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedNamespacedAssert", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_Quotes", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedPHP4StyleConstructors", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_SelectorDelimiter", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionNameRestrictions_ReservedFunctionNames", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_SemicolonSpacing", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsReportCurrentValue", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_TypeSelectorConcatenation", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsUsage", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_TypeSelectors", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionUse_NewFunctionParameters", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_Variables", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionUse_NewFunctions", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Less_ZeroUnits", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionUse_NewNamedParameters", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Methods_DeprecatedModelMethod", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Namespaces_ImportsFromTestNamespace", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctionParameters", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_NamingConvention_InterfaceName", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctions", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_NamingConvention_ReservedWords", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_FunctionUse_RequiredToOptionalFunctionParameters", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_PHP_ArrayAutovivification", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Generators_NewGeneratorReturn", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_PHP_AutogeneratedClassNotInConstructor", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Generators_NewYieldFromComment", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_PHP_FinalImplementation", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_IniDirectives_NewIniDirectives", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_PHP_Goto", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_IniDirectives_RemovedIniDirectives", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_PHP_LiteralNamespaces", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingConst", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_PHP_ReturnValueCheck", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingDefine", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_PHP_ShortEchoSyntax", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_InitialValue_NewConstantScalarExpressions", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_PHP_Var", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_InitialValue_NewHeredoc", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Performance_ForeachArrayMerge", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_InitialValue_NewNewInDefine", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_SQL_RawQuery", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_InitialValue_NewNewInInitializers", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Security_IncludeFile", - "level" : "Error", - "category" : "Security", + "patternId" : "PHPCompatibility_Interfaces_InternalInterfaces", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Security_InsecureFunction", - "level" : "Info", - "category" : "Security", - "subcategory" : "InsecureModulesLibraries", + "patternId" : "PHPCompatibility_Interfaces_NewInterfaces", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Security_LanguageConstruct", - "level" : "Error", - "category" : "Security", + "patternId" : "PHPCompatibility_Interfaces_NewPropertiesInInterfaces", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Security_Superglobal", - "level" : "Error", - "category" : "Security", + "patternId" : "PHPCompatibility_Interfaces_RemovedSerializable", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Security_XssTemplate", + "patternId" : "PHPCompatibility_Keywords_CaseSensitiveKeywords", "level" : "Warning", - "category" : "Security", - "subcategory" : "XSS", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Strings_ExecutableRegEx", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Keywords_ForbiddenClassAlias", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Strings_StringConcat", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Keywords_ForbiddenNames", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Templates_ObjectManager", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Keywords_NewKeywords", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Templates_ThisInTemplate", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_LanguageConstructs_NewEmptyNonVariable", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Translation_ConstantUsage", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_LanguageConstructs_NewLanguageConstructs", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Magento2_Whitespace_MultipleEmptyLines", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_LanguageConstructs_RemovedLanguageConstructs", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_CSS_BrowserSpecificStyles", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Lists_AssignmentOrder", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Channels_DisallowSelfActions", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Lists_ForbiddenEmptyListAssignment", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Channels_IncludeOwnSystem", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Lists_NewKeyedList", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Channels_IncludeSystem", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Lists_NewListReferenceAssignment", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Channels_UnusedSystem", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Lists_NewShortList", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Commenting_FunctionComment", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_MethodUse_ForbiddenToStringParameters", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Debug_DebugCode", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_MethodUse_NewDirectCallsToClone", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Debug_FirebugConsole", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Miscellaneous_NewPHPOpenTagEOF", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Objects_AssignThis", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Miscellaneous_RemovedAlternativePHPTags", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Objects_CreateWidgetTypeCallback", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Namespaces_ReservedNames", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Objects_DisallowNewWidget", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Numbers_NewExplicitOctalNotation", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_PHP_AjaxNullComparison", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Numbers_NewNumericLiteralSeparator", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_PHP_EvalObjectFactory", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Numbers_RemovedHexadecimalNumericStrings", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_PHP_GetRequestData", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Numbers_ValidIntegers", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_PHP_ReturnFunctionValue", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Operators_ChangedConcatOperatorPrecedence", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "MySource_Strings_JoinStrings", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Operators_ForbiddenNegativeBitshift", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PEAR_Classes_ClassDeclaration", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Operators_NewOperators", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "PEAR_Commenting_ClassComment", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Operators_NewShortTernary", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PEAR_Commenting_FileComment", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_Operators_RemovedTernaryAssociativity", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PEAR_Commenting_FunctionComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "minimumVisibility", - "default" : "'private'" - } ], + "patternId" : "PHPCompatibility_ParameterValues_ChangedIntToBoolParamType", + "level" : "Warning", + "category" : "Compatibility", + "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "PEAR_Commenting_InlineComment", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ParameterValues_ChangedObStartEraseFlags", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PEAR_ControlStructures_ControlSignature", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreComments", - "default" : true - } ], + "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNoArgsOutsideOO", + "level" : "Warning", + "category" : "Compatibility", + "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "PEAR_ControlStructures_MultiLineCondition", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_Files_IncludingFile", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_Formatting_MultiLineAssignment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_Functions_FunctionCallSignature", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - }, { - "name" : "allowMultipleArguments", - "default" : true - }, { - "name" : "requiredSpacesAfterOpen", - "default" : 0 - }, { - "name" : "requiredSpacesBeforeClose", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_Functions_FunctionDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_Functions_ValidDefaultValue", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_NamingConventions_ValidClassName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_NamingConventions_ValidFunctionName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], + "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNull", + "level" : "Warning", + "category" : "Compatibility", + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PEAR_NamingConventions_ValidVariableName", - "level" : "Info", - "category" : "CodeStyle", + "patternId" : "PHPCompatibility_ParameterValues_ForbiddenSessionModuleNameUser", + "level" : "Warning", + "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PEAR_WhiteSpace_ObjectOperatorIndent", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - }, { - "name" : "multilevel", - "default" : false - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_WhiteSpace_ScopeClosingBrace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_WhiteSpace_ScopeIndent", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PHPCompatibility_Classes_ForbiddenAbstractPrivateMethods", + "patternId" : "PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Classes_NewAnonymousClasses", + "patternId" : "PHPCompatibility_ParameterValues_NewArrayMergeRecursiveWithGlobalsVar", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Classes_NewClasses", + "patternId" : "PHPCompatibility_ParameterValues_NewArrayReduceInitialType", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Classes_NewConstVisibility", + "patternId" : "PHPCompatibility_ParameterValues_NewAssertCustomException", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Classes_NewLateStaticBinding", + "patternId" : "PHPCompatibility_ParameterValues_NewClassAliasInternalClass", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Classes_NewTypedProperties", + "patternId" : "PHPCompatibility_ParameterValues_NewExitAsFunctionCall", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Classes_RemovedOrphanedParent", + "patternId" : "PHPCompatibility_ParameterValues_NewFopenModes", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Constants_NewConstants", + "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesEncodingDefault", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Constants_NewMagicClassConstant", + "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesFlagsDefault", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Constants_RemovedConstants", + "patternId" : "PHPCompatibility_ParameterValues_NewHashAlgorithms", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_ControlStructures_DiscouragedSwitchContinue", + "patternId" : "PHPCompatibility_ParameterValues_NewIDNVariantDefault", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueOutsideLoop", + "patternId" : "PHPCompatibility_ParameterValues_NewIconvMbstringCharsetDefault", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueVariableArguments", + "patternId" : "PHPCompatibility_ParameterValues_NewNegativeStringOffset", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenSwitchWithMultipleDefaultBlocks", + "patternId" : "PHPCompatibility_ParameterValues_NewNumberFormatMultibyteSeparators", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_ControlStructures_NewExecutionDirectives", + "patternId" : "PHPCompatibility_ParameterValues_NewPCREModifiers", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_ControlStructures_NewForeachExpressionReferencing", + "patternId" : "PHPCompatibility_ParameterValues_NewPackFormat", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_ControlStructures_NewListInForeach", + "patternId" : "PHPCompatibility_ParameterValues_NewPasswordAlgoConstantValues", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_ControlStructures_NewMultiCatch", + "patternId" : "PHPCompatibility_ParameterValues_NewProcOpenCmdArray", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Extensions_RemovedExtensions", + "patternId" : "PHPCompatibility_ParameterValues_NewStripTagsAllowableTagsArray", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals", + "patternId" : "PHPCompatibility_ParameterValues_RemovedAssertStringAssertion", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParametersWithSameName", + "patternId" : "PHPCompatibility_ParameterValues_RemovedDbaKeySplitNullFalse", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenToStringParameters", + "patternId" : "PHPCompatibility_ParameterValues_RemovedGetClassNoArgs", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenVariableNamesInClosureUse", + "patternId" : "PHPCompatibility_ParameterValues_RemovedGetDefinedFunctionsExcludeDisabledFalse", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewClosure", + "patternId" : "PHPCompatibility_ParameterValues_RemovedHashAlgorithms", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewExceptionsFromToString", + "patternId" : "PHPCompatibility_ParameterValues_RemovedIconvEncoding", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewNullableTypes", + "patternId" : "PHPCompatibility_ParameterValues_RemovedImplodeFlexibleParamOrder", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewParamTypeDeclarations", + "patternId" : "PHPCompatibility_ParameterValues_RemovedLdapConnectSignatures", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewReturnTypeDeclarations", + "patternId" : "PHPCompatibility_ParameterValues_RemovedMbCheckEncodingNoArgs", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods", + "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrimWidthNegativeWidth", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_NewMagicMethods", + "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrrposEncodingThirdParam", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedMagicAutoload", + "patternId" : "PHPCompatibility_ParameterValues_RemovedMbstringModifiers", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedNamespacedAssert", + "patternId" : "PHPCompatibility_ParameterValues_RemovedNonCryptoHash", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedPHP4StyleConstructors", + "patternId" : "PHPCompatibility_ParameterValues_RemovedPCREModifiers", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_ReservedFunctionNames", + "patternId" : "PHPCompatibility_ParameterValues_RemovedProprietaryCSVEscaping", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsReportCurrentValue", + "patternId" : "PHPCompatibility_ParameterValues_RemovedSetlocaleString", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsUsage", + "patternId" : "PHPCompatibility_ParameterValues_RemovedSplAutoloadRegisterThrowFalse", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionUse_NewFunctionParameters", + "patternId" : "PHPCompatibility_ParameterValues_RemovedTriggerErrorLevel", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionUse_NewFunctions", + "patternId" : "PHPCompatibility_ParameterValues_RemovedVersionCompareOperators", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters", + "patternId" : "PHPCompatibility_ParameterValues_RemovedXmlSetHandlerCallbackUnset", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctionParameters", + "patternId" : "PHPCompatibility_Syntax_ForbiddenCallTimePassByReference", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctions", + "patternId" : "PHPCompatibility_Syntax_NewArrayStringDereferencing", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_FunctionUse_RequiredToOptionalFunctionParameters", + "patternId" : "PHPCompatibility_Syntax_NewArrayUnpacking", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Generators_NewGeneratorReturn", + "patternId" : "PHPCompatibility_Syntax_NewClassMemberAccess", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_IniDirectives_NewIniDirectives", + "patternId" : "PHPCompatibility_Syntax_NewClassMemberAccessWithoutParentheses", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_IniDirectives_RemovedIniDirectives", + "patternId" : "PHPCompatibility_Syntax_NewDynamicAccessToStatic", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingConst", + "patternId" : "PHPCompatibility_Syntax_NewDynamicClassConstantFetch", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingDefine", + "patternId" : "PHPCompatibility_Syntax_NewFirstClassCallables", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantScalarExpressions", + "patternId" : "PHPCompatibility_Syntax_NewFlexibleHeredocNowdoc", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_InitialValue_NewHeredoc", + "patternId" : "PHPCompatibility_Syntax_NewFunctionArrayDereferencing", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Interfaces_InternalInterfaces", + "patternId" : "PHPCompatibility_Syntax_NewFunctionCallTrailingComma", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Interfaces_NewInterfaces", + "patternId" : "PHPCompatibility_Syntax_NewInterpolatedStringDereferencing", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Keywords_CaseSensitiveKeywords", + "patternId" : "PHPCompatibility_Syntax_NewMagicConstantDereferencing", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenNames", + "patternId" : "PHPCompatibility_Syntax_NewNestedStaticAccess", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenNamesAsDeclared", + "patternId" : "PHPCompatibility_Syntax_NewShortArray", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenNamesAsInvokedFunctions", + "patternId" : "PHPCompatibility_Syntax_RemovedCurlyBraceArrayAccess", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Keywords_NewKeywords", + "patternId" : "PHPCompatibility_Syntax_RemovedNewReference", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_LanguageConstructs_NewEmptyNonVariable", + "patternId" : "PHPCompatibility_TextStrings_NewUnicodeEscapeSequence", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_LanguageConstructs_NewLanguageConstructs", + "patternId" : "PHPCompatibility_TextStrings_RemovedDollarBraceStringEmbeds", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Lists_AssignmentOrder", + "patternId" : "PHPCompatibility_TypeCasts_NewTypeCasts", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Lists_ForbiddenEmptyListAssignment", + "patternId" : "PHPCompatibility_TypeCasts_RemovedTypeCasts", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Lists_NewKeyedList", + "patternId" : "PHPCompatibility_Upgrade_LowPHP", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Lists_NewListReferenceAssignment", + "patternId" : "PHPCompatibility_UseDeclarations_NewGroupUseDeclarations", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Lists_NewShortList", + "patternId" : "PHPCompatibility_UseDeclarations_NewUseConstFunction", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_MethodUse_ForbiddenToStringParameters", + "patternId" : "PHPCompatibility_Variables_ForbiddenGlobalVariableVariable", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_MethodUse_NewDirectCallsToClone", + "patternId" : "PHPCompatibility_Variables_ForbiddenThisUseContexts", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Miscellaneous_NewPHPOpenTagEOF", + "patternId" : "PHPCompatibility_Variables_NewUniformVariableSyntax", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Miscellaneous_RemovedAlternativePHPTags", + "patternId" : "PHPCompatibility_Variables_RemovedIndirectModificationOfGlobals", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Miscellaneous_ValidIntegers", + "patternId" : "PHPCompatibility_Variables_RemovedPredefinedGlobalVariables", "level" : "Warning", "category" : "Compatibility", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Operators_ChangedConcatOperatorPrecedence", - "level" : "Warning", - "category" : "Compatibility", + "patternId" : "PSR12_Classes_AnonClassDeclaration", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Operators_ForbiddenNegativeBitshift", - "level" : "Warning", - "category" : "Compatibility", + "patternId" : "PSR12_Classes_ClassInstantiation", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Operators_NewOperators", - "level" : "Warning", - "category" : "Compatibility", + "patternId" : "PSR12_Classes_ClosingBrace", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Operators_NewShortTernary", - "level" : "Warning", - "category" : "Compatibility", + "patternId" : "PSR12_Classes_OpeningBraceSpace", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_Operators_RemovedTernaryAssociativity", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], + "patternId" : "PSR12_ControlStructures_BooleanOperatorPlacement", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ { + "name" : "allowOnly", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNull", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], + "patternId" : "PSR12_ControlStructures_ControlStructureSpacing", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ { + "name" : "indent", + "default" : 4 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewArrayReduceInitialType", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewFopenModes", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesEncodingDefault", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewHashAlgorithms", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewIDNVariantDefault", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewIconvMbstringCharsetDefault", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewNegativeStringOffset", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewPCREModifiers", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewPackFormat", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewPasswordAlgoConstantValues", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewProcOpenCmdArray", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewStripTagsAllowableTagsArray", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedHashAlgorithms", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedIconvEncoding", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedImplodeFlexibleParamOrder", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrrposEncodingThirdParam", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbstringModifiers", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedNonCryptoHash", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedPCREModifiers", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedSetlocaleString", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_ForbiddenCallTimePassByReference", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewArrayStringDereferencing", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewArrayUnpacking", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewClassMemberAccess", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewDynamicAccessToStatic", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewFlexibleHeredocNowdoc", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewFunctionArrayDereferencing", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewFunctionCallTrailingComma", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewShortArray", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_RemovedCurlyBraceArrayAccess", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_RemovedNewReference", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_TextStrings_NewUnicodeEscapeSequence", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_TypeCasts_NewTypeCasts", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_TypeCasts_RemovedTypeCasts", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Upgrade_LowPHP", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Upgrade_LowPHPCS", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_UseDeclarations_NewGroupUseDeclarations", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_UseDeclarations_NewUseConstFunction", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Variables_ForbiddenGlobalVariableVariable", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Variables_ForbiddenThisUseContexts", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Variables_NewUniformVariableSyntax", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Variables_RemovedPredefinedGlobalVariables", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Classes_AnonClassDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Classes_ClassInstantiation", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Classes_ClosingBrace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Classes_OpeningBraceSpace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_ControlStructures_BooleanOperatorPlacement", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "allowOnly", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_ControlStructures_ControlStructureSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Files_DeclareStatement", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Files_FileHeader", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Files_ImportStatement", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Files_OpenTag", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PSR12_Functions_NullableTypeDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Functions_ReturnTypeDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Keywords_ShortFormTypeKeywords", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Namespaces_CompoundNamespaceDepth", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxDepth", - "default" : 2 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Operators_OperatorSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Properties_ConstantVisibility", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR12_Traits_UseDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR1_Classes_ClassDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR1_Files_SideEffects", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR1_Methods_CamelCapsMethodName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR2_Classes_ClassDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR2_Classes_PropertyDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PSR2_ControlStructures_ControlStructureSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "requiredSpacesAfterOpen", - "default" : 0 - }, { - "name" : "requiredSpacesBeforeClose", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR2_ControlStructures_ElseIfDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR2_ControlStructures_SwitchDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR2_Files_ClosingTag", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR2_Files_EndFileNewline", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PSR2_Methods_FunctionCallSignature", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "allowMultipleArguments", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR2_Methods_FunctionClosingBrace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR2_Methods_MethodDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PSR2_Namespaces_NamespaceDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PSR2_Namespaces_UseDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_Asserts", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_Backticks", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_CallbackFunctions", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_CryptoFunctions", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_EasyRFI", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_EasyXSS", - "level" : "Error", - "category" : "Security", - "subcategory" : "XSS", - "parameters" : [ { - "name" : "forceParanoia", - "default" : -1 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_ErrorHandling", - "level" : "Warning", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_FilesystemFunctions", - "level" : "Warning", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_FringeFunctions", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_FunctionHandlingFunctions", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_Mysqli", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_NoEvals", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_Phpinfos", - "level" : "Warning", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_PregReplace", - "level" : "Warning", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_SQLFunctions", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_BadFunctions_SystemExecFunctions", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_CVE_20132110", - "level" : "Warning", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_CVE_20134113", - "level" : "Warning", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_AESModule", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_AdvisoriesContrib", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_AdvisoriesCore", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_Cachei", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_DbQueryAC", - "level" : "Warning", - "category" : "Security", - "parameters" : [ { - "name" : "forceParanoia", - "default" : -1 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_DynQueries", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_HttpRequest", - "level" : "Warning", - "category" : "Security", - "subcategory" : "HTTP", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_SQLi", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_UserInputWatch", - "level" : "Warning", - "category" : "Security", - "parameters" : [ { - "name" : "FormThreshold", - "default" : 10 - }, { - "name" : "FormStateThreshold", - "default" : 10 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_XSSFormValue", - "level" : "Warning", - "category" : "Security", - "subcategory" : "XSS", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_XSSHTMLConstruct", - "level" : "Error", - "category" : "Security", - "subcategory" : "XSS", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Drupal7_XSSPTheme", - "level" : "Warning", - "category" : "Security", - "subcategory" : "XSS", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Misc_BadCorsHeader", - "level" : "Warning", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Security_Misc_IncludeMismatch", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Arrays_AlphabeticallySortedByKeys", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Arrays_ArrayAccess", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Arrays_DisallowImplicitArrayCreation", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Arrays_DisallowPartiallyKeyed", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Arrays_MultiLineArrayEndBracketPlacement", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacesAroundBrackets", - "default" : 0 - }, { - "name" : "enableEmptyArrayCheck", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Arrays_TrailingArrayComma", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enableAfterHeredoc", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "linesCount", - "default" : 0 - }, { - "name" : "allowOnSameLine", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Attributes_AttributesOrder", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "orderAlphabetically", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Attributes_DisallowAttributesJoining", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Attributes_DisallowMultipleAttributesPerLine", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Attributes_RequireAttributeAfterDocComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_BackedEnumTypeSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacesCountBeforeColon", - "default" : 0 - }, { - "name" : "spacesCountBeforeType", - "default" : 1 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_ClassConstantVisibility", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "fixable", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_ClassLength", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxLinesLength", - "default" : 250 - }, { - "name" : "includeComments", - "default" : false - }, { - "name" : "includeWhitespace", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_ClassMemberSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "linesCountBetweenMembers", - "default" : 1 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_ClassStructure", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_ConstantSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_DisallowConstructorPropertyPromotion", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_DisallowLateStaticBindingForConstants", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_DisallowMultiConstantDefinition", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_DisallowMultiPropertyDefinition", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_DisallowStringExpressionPropertyFetch", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_EmptyLinesAroundClassBraces", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "linesCountAfterOpeningBrace", - "default" : 1 - }, { - "name" : "linesCountBeforeClosingBrace", - "default" : 1 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_EnumCaseSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_ForbiddenPublicProperty", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "checkPromoted", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_MethodSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "minLinesCount", - "default" : 1 - }, { - "name" : "maxLinesCount", - "default" : 1 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_ModernClassNameReference", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enableOnObjects", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_ParentCallSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "linesCountBefore", - "default" : 1 - }, { - "name" : "linesCountBeforeFirst", - "default" : 0 - }, { - "name" : "linesCountAfter", - "default" : 1 - }, { - "name" : "linesCountAfterLast", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_PropertyDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "checkPromoted", - "default" : false - }, { - "name" : "enableMultipleSpacesBetweenModifiersCheck", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_PropertySpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_RequireAbstractOrFinal", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_RequireConstructorPropertyPromotion", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_RequireMultiLineMethodSignature", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "minLineLength", - "default" : null - }, { - "name" : "minParametersCount", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_RequireSelfReference", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_RequireSingleLineMethodSignature", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxLineLength", - "default" : 120 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_SuperfluousAbstractClassNaming", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_SuperfluousErrorNaming", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_SuperfluousExceptionNaming", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_SuperfluousInterfaceNaming", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_SuperfluousTraitNaming", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_TraitUseDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_TraitUseSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "linesCountAfterLastUseWhenLastInClass", - "default" : 1 - }, { - "name" : "linesCountBeforeFirstUse", - "default" : 1 - }, { - "name" : "linesCountBeforeFirstUseWhenFirstInClass", - "default" : null - }, { - "name" : "linesCountAfterLastUse", - "default" : 1 - }, { - "name" : "linesCountBetweenUses", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_UselessLateStaticBinding", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_AnnotationName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_DeprecatedAnnotationDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_DisallowCommentAfterCode", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_DisallowOneLinePropertyDocComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_DocCommentSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "linesCountBetweenAnnotationsGroups", - "default" : 1 - }, { - "name" : "linesCountAfterLastContent", - "default" : 0 - }, { - "name" : "linesCountBetweenDifferentAnnotationsTypes", - "default" : 0 - }, { - "name" : "linesCountBetweenDescriptionAndAnnotations", - "default" : 1 - }, { - "name" : "linesCountBeforeFirstContent", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_EmptyComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_ForbiddenAnnotations", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_ForbiddenComments", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_InlineDocCommentDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "allowDocCommentAboveReturn", - "default" : false - }, { - "name" : "allowAboveNonAssignment", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_RequireOneLineDocComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_RequireOneLinePropertyDocComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_UselessFunctionDocComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Commenting_UselessInheritDocComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Complexity_Cognitive", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxComplexity", - "default" : null - }, { - "name" : "warningThreshold", - "default" : 6 - }, { - "name" : "errorThreshold", - "default" : 6 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_AssignmentInCondition", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreAssignmentsInsideFunctionCalls", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_BlockControlStructureSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "linesCountBefore", - "default" : 1 - }, { - "name" : "linesCountBeforeFirst", - "default" : 0 - }, { - "name" : "linesCountAfter", - "default" : 1 - }, { - "name" : "linesCountAfterLast", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowContinueWithoutIntegerOperandInSwitch", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowEmpty", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowNullSafeObjectOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowShortTernaryOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "fixable", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowTrailingMultiLineTernaryOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowYodaComparison", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_EarlyExit", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreStandaloneIfInScope", - "default" : false - }, { - "name" : "ignoreOneLineTrailingIf", - "default" : false - }, { - "name" : "ignoreTrailingIfWithOneInstruction", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_JumpStatementsSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "linesCountAfterWhenLastInCaseOrDefault", - "default" : null - }, { - "name" : "linesCountBeforeFirst", - "default" : 0 - }, { - "name" : "linesCountBeforeWhenFirstInCaseOrDefault", - "default" : null - }, { - "name" : "linesCountAfterWhenLastInLastCaseOrDefault", - "default" : null - }, { - "name" : "linesCountBefore", - "default" : 1 - }, { - "name" : "linesCountAfter", - "default" : 1 - }, { - "name" : "linesCountAfterLast", - "default" : 0 - }, { - "name" : "allowSingleLineYieldStacking", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_LanguageConstructWithParentheses", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_NewWithParentheses", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_NewWithoutParentheses", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_RequireMultiLineCondition", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "minLineLength", - "default" : 121 - }, { - "name" : "booleanOperatorOnPreviousLine", - "default" : false - }, { - "name" : "alwaysSplitAllConditionParts", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_RequireMultiLineTernaryOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "lineLengthLimit", - "default" : 0 - }, { - "name" : "minExpressionsLength", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_RequireNullCoalesceEqualOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_RequireNullCoalesceOperator", + "patternId" : "PSR12_Files_DeclareStatement", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_RequireNullSafeObjectOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_RequireShortTernaryOperator", + "patternId" : "PSR12_Files_FileHeader", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_RequireSingleLineCondition", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxLineLength", - "default" : 120 - }, { - "name" : "alwaysForSimpleConditions", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_RequireTernaryOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreMultiLine", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_RequireYodaComparison", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "alwaysVariableOnRight", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_UselessIfConditionWithReturn", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "assumeAllConditionExpressionsAreAlreadyBoolean", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_UselessTernaryOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "assumeAllConditionExpressionsAreAlreadyBoolean", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Exceptions_DeadCatch", + "patternId" : "PSR12_Files_ImportStatement", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Exceptions_DisallowNonCapturingCatch", + "patternId" : "PSR12_Files_OpenTag", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "SlevomatCodingStandard_Exceptions_ReferenceThrowableOnly", + "patternId" : "PSR12_Functions_NullableTypeDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Exceptions_RequireNonCapturingCatch", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Files_FileLength", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxLinesLength", - "default" : 250 - }, { - "name" : "includeComments", - "default" : false - }, { - "name" : "includeWhitespace", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Files_LineLength", + "patternId" : "PSR12_Functions_ReturnTypeDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "lineLengthLimit", - "default" : 120 - }, { - "name" : "ignoreComments", - "default" : false - }, { - "name" : "ignoreImports", - "default" : true - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Files_TypeNameMatchesFileName", + "patternId" : "PSR12_Keywords_ShortFormTypeKeywords", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_ArrowFunctionDeclaration", + "patternId" : "PSR12_Namespaces_CompoundNamespaceDepth", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "spacesCountAfterKeyword", - "default" : 1 - }, { - "name" : "spacesCountBeforeArrow", - "default" : 1 - }, { - "name" : "spacesCountAfterArrow", - "default" : 1 - }, { - "name" : "allowMultiLine", - "default" : false + "name" : "maxDepth", + "default" : 2 } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_DisallowArrowFunction", + "patternId" : "PSR12_Operators_OperatorSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_DisallowEmptyFunction", + "patternId" : "PSR12_Properties_ConstantVisibility", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_DisallowNamedArguments", + "patternId" : "PSR12_Traits_UseDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_DisallowTrailingCommaInCall", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "onlySingleLine", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_DisallowTrailingCommaInClosureUse", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "onlySingleLine", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_DisallowTrailingCommaInDeclaration", + "patternId" : "PSR1_Classes_ClassDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "onlySingleLine", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_FunctionLength", + "patternId" : "PSR1_Files_SideEffects", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxLinesLength", - "default" : 20 - }, { - "name" : "includeComments", - "default" : false - }, { - "name" : "includeWhitespace", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_NamedArgumentSpacing", + "patternId" : "PSR1_Methods_CamelCapsMethodName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireArrowFunction", + "patternId" : "PSR2_Classes_ClassDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "allowNested", - "default" : true - }, { - "name" : "enable", - "default" : null + "name" : "indent", + "default" : 4 } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireMultiLineCall", + "patternId" : "PSR2_Classes_PropertyDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "minLineLength", - "default" : 121 - } ], + "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireSingleLineCall", + "patternId" : "PSR2_ControlStructures_ControlStructureSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "maxLineLength", - "default" : 120 + "name" : "requiredSpacesAfterOpen", + "default" : 0 }, { - "name" : "ignoreWithComplexParameter", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireTrailingCommaInCall", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null + "name" : "requiredSpacesBeforeClose", + "default" : 0 } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireTrailingCommaInClosureUse", + "patternId" : "PSR2_ControlStructures_ElseIfDeclaration", "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - } ], + "category" : "CodeStyle", + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireTrailingCommaInDeclaration", + "patternId" : "PSR2_ControlStructures_SwitchDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "enable", - "default" : null + "name" : "indent", + "default" : 4 } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_StaticClosure", + "patternId" : "PSR2_Files_ClosingTag", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_StrictCall", + "patternId" : "PSR2_Files_EndFileNewline", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "SlevomatCodingStandard_Functions_UnusedInheritedVariablePassedToClosure", + "patternId" : "PSR2_Methods_FunctionCallSignature", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "allowMultipleArguments", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_UnusedParameter", + "patternId" : "PSR2_Methods_FunctionClosingBrace", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Functions_UselessParameterDefaultValue", + "patternId" : "PSR2_Methods_MethodDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "SlevomatCodingStandard_Namespaces_AlphabeticallySortedUses", + "patternId" : "PSR2_Namespaces_NamespaceDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "psr12Compatible", - "default" : true - }, { - "name" : "caseSensitive", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_DisallowGroupUse", + "patternId" : "PSR2_Namespaces_UseDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedClassNameInAnnotation", + "patternId" : "SlevomatCodingStandard_Arrays_AlphabeticallySortedByKeys", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedExceptions", + "patternId" : "SlevomatCodingStandard_Arrays_ArrayAccess", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalConstants", + "patternId" : "SlevomatCodingStandard_Arrays_DisallowImplicitArrayCreation", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalFunctions", + "patternId" : "SlevomatCodingStandard_Arrays_DisallowPartiallyKeyed", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "includeSpecialFunctions", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_MultipleUsesPerLine", + "patternId" : "SlevomatCodingStandard_Arrays_MultiLineArrayEndBracketPlacement", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_NamespaceDeclaration", + "patternId" : "SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "spacesAroundBrackets", + "default" : 0 + }, { + "name" : "enableEmptyArrayCheck", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_NamespaceSpacing", + "patternId" : "SlevomatCodingStandard_Arrays_TrailingArrayComma", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "linesCountBeforeNamespace", - "default" : 1 - }, { - "name" : "linesCountAfterNamespace", - "default" : 1 + "name" : "enableAfterHeredoc", + "default" : null } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_ReferenceUsedNamesOnly", + "patternId" : "SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "allowFullyQualifiedExceptions", - "default" : false - }, { - "name" : "allowFullyQualifiedGlobalFunctions", - "default" : false - }, { - "name" : "allowFullyQualifiedGlobalConstants", - "default" : false - }, { - "name" : "searchAnnotations", - "default" : false - }, { - "name" : "allowFullyQualifiedNameForCollidingClasses", - "default" : false - }, { - "name" : "allowFullyQualifiedNameForCollidingFunctions", - "default" : false - }, { - "name" : "allowFallbackGlobalFunctions", - "default" : true + "name" : "linesCount", + "default" : 0 }, { - "name" : "allowFullyQualifiedGlobalClasses", + "name" : "allowOnSameLine", "default" : false - }, { - "name" : "allowPartialUses", - "default" : true - }, { - "name" : "allowFullyQualifiedNameForCollidingConstants", + } ], + "languages" : [ ], + "enabled" : false + }, { + "patternId" : "SlevomatCodingStandard_Attributes_AttributesOrder", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ { + "name" : "orderAlphabetically", "default" : false - }, { - "name" : "allowFallbackGlobalConstants", - "default" : true } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_RequireOneNamespaceInFile", + "patternId" : "SlevomatCodingStandard_Attributes_DisallowAttributesJoining", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_UnusedUses", + "patternId" : "SlevomatCodingStandard_Attributes_DisallowMultipleAttributesPerLine", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "searchAnnotations", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_UseDoesNotStartWithBackslash", + "patternId" : "SlevomatCodingStandard_Attributes_RequireAttributeAfterDocComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_UseFromSameNamespace", + "patternId" : "SlevomatCodingStandard_Classes_BackedEnumTypeSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "spacesCountBeforeColon", + "default" : 0 + }, { + "name" : "spacesCountBeforeType", + "default" : 1 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_UseOnlyWhitelistedNamespaces", + "patternId" : "SlevomatCodingStandard_Classes_ClassConstantVisibility", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "allowUseFromRootNamespace", + "name" : "fixable", "default" : false } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_UseSpacing", + "patternId" : "SlevomatCodingStandard_Classes_ClassKeywordOrder", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ ], + "languages" : [ ], + "enabled" : false + }, { + "patternId" : "SlevomatCodingStandard_Classes_ClassLength", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "linesCountBeforeFirstUse", - "default" : 1 + "name" : "maxLinesLength", + "default" : 250 }, { - "name" : "linesCountBetweenUseTypes", - "default" : 0 + "name" : "includeComments", + "default" : false }, { - "name" : "linesCountAfterLastUse", - "default" : 1 + "name" : "includeWhitespace", + "default" : false } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Namespaces_UselessAlias", + "patternId" : "SlevomatCodingStandard_Classes_ClassMemberSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "linesCountBetweenMembers", + "default" : 1 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Numbers_DisallowNumericLiteralSeparator", + "patternId" : "SlevomatCodingStandard_Classes_ClassStructure", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Numbers_RequireNumericLiteralSeparator", + "patternId" : "SlevomatCodingStandard_Classes_ConstantSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - }, { - "name" : "minDigitsBeforeDecimalPoint", - "default" : 4 - }, { - "name" : "minDigitsAfterDecimalPoint", - "default" : 4 - }, { - "name" : "ignoreOctalNumbers", - "default" : true - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Operators_DisallowEqualOperators", + "patternId" : "SlevomatCodingStandard_Classes_DisallowConstructorPropertyPromotion", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Operators_DisallowIncrementAndDecrementOperators", + "patternId" : "SlevomatCodingStandard_Classes_DisallowLateStaticBindingForConstants", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Operators_NegationOperatorSpacing", + "patternId" : "SlevomatCodingStandard_Classes_DisallowMultiConstantDefinition", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacesCount", - "default" : 0 - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Operators_RequireCombinedAssignmentOperator", + "patternId" : "SlevomatCodingStandard_Classes_DisallowMultiPropertyDefinition", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Operators_RequireOnlyStandaloneIncrementAndDecrementOperators", + "patternId" : "SlevomatCodingStandard_Classes_DisallowStringExpressionPropertyFetch", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Operators_SpreadOperatorSpacing", + "patternId" : "SlevomatCodingStandard_Classes_EmptyLinesAroundClassBraces", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "spacesCountAfterOperator", - "default" : 0 + "name" : "linesCountAfterOpeningBrace", + "default" : 1 + }, { + "name" : "linesCountBeforeClosingBrace", + "default" : 1 } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_DisallowDirectMagicInvokeCall", + "patternId" : "SlevomatCodingStandard_Classes_EnumCaseSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_DisallowReference", + "patternId" : "SlevomatCodingStandard_Classes_ForbiddenPublicProperty", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "allowReadonly", + "default" : false + }, { + "name" : "allowNonPublicSet", + "default" : true + }, { + "name" : "checkPromoted", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_ForbiddenClasses", + "patternId" : "SlevomatCodingStandard_Classes_MethodSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "minLinesCount", + "default" : 1 + }, { + "name" : "maxLinesCount", + "default" : 1 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_OptimizedFunctionsWithoutUnpacking", + "patternId" : "SlevomatCodingStandard_Classes_ModernClassNameReference", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enableOnObjects", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_ReferenceSpacing", + "patternId" : "SlevomatCodingStandard_Classes_ParentCallSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "spacesCountAfterReference", + "name" : "linesCountBefore", + "default" : 1 + }, { + "name" : "linesCountBeforeFirst", + "default" : 0 + }, { + "name" : "linesCountAfter", + "default" : 1 + }, { + "name" : "linesCountAfterLast", "default" : 0 } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_RequireExplicitAssertion", + "patternId" : "SlevomatCodingStandard_Classes_PropertyDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "enableIntegerRanges", + "name" : "checkPromoted", "default" : false }, { - "name" : "enableAdvancedStringTypes", + "name" : "enableMultipleSpacesBetweenModifiersCheck", "default" : false } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_RequireNowdoc", + "patternId" : "SlevomatCodingStandard_Classes_PropertySpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_ShortList", + "patternId" : "SlevomatCodingStandard_Classes_ReadonlyClass", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enable", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_TypeCast", + "patternId" : "SlevomatCodingStandard_Classes_RequireAbstractOrFinal", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_UselessParentheses", + "patternId" : "SlevomatCodingStandard_Classes_RequireConstructorPropertyPromotion", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "ignoreComplexTernaryConditions", + "name" : "enable", + "default" : null + } ], + "languages" : [ ], + "enabled" : false + }, { + "patternId" : "SlevomatCodingStandard_Classes_RequireMultiLineMethodSignature", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ { + "name" : "includedMethodNormalizedPatterns", + "default" : null + }, { + "name" : "withParametersWithAttributes", + "default" : false + }, { + "name" : "minParametersCount", + "default" : null + }, { + "name" : "excludedMethodNormalizedPatterns", + "default" : null + }, { + "name" : "minLineLength", + "default" : null + }, { + "name" : "withPromotedProperties", "default" : false } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_PHP_UselessSemicolon", + "patternId" : "SlevomatCodingStandard_Classes_RequireSelfReference", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Strings_DisallowVariableParsing", + "patternId" : "SlevomatCodingStandard_Classes_RequireSingleLineMethodSignature", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "disallowDollarCurlySyntax", - "default" : true + "name" : "maxLineLength", + "default" : 120 }, { - "name" : "disallowCurlyDollarSyntax", - "default" : false + "name" : "includedMethodNormalizedPatterns", + "default" : null }, { - "name" : "disallowSimpleSyntax", - "default" : false + "name" : "excludedMethodNormalizedPatterns", + "default" : null } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_DeclareStrictTypes", + "patternId" : "SlevomatCodingStandard_Classes_SuperfluousAbstractClassNaming", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "declareOnFirstLine", - "default" : false - }, { - "name" : "linesCountBeforeDeclare", - "default" : 1 - }, { - "name" : "linesCountAfterDeclare", - "default" : 1 - }, { - "name" : "spacesCountAroundEqualsSign", - "default" : 1 - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_DisallowArrayTypeHintSyntax", + "patternId" : "SlevomatCodingStandard_Classes_SuperfluousErrorNaming", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_DisallowMixedTypeHint", + "patternId" : "SlevomatCodingStandard_Classes_SuperfluousExceptionNaming", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_LongTypeHints", + "patternId" : "SlevomatCodingStandard_Classes_SuperfluousInterfaceNaming", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_NullTypeHintOnLastPosition", + "patternId" : "SlevomatCodingStandard_Classes_SuperfluousTraitNaming", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_NullableTypeForNullDefaultValue", + "patternId" : "SlevomatCodingStandard_Classes_TraitUseDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_ParameterTypeHint", + "patternId" : "SlevomatCodingStandard_Classes_TraitUseOrder", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "enableMixedTypeHint", - "default" : null + "name" : "caseSensitive", + "default" : false + } ], + "languages" : [ ], + "enabled" : false + }, { + "patternId" : "SlevomatCodingStandard_Classes_TraitUseSpacing", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ { + "name" : "linesCountAfterLastUseWhenLastInClass", + "default" : 1 }, { - "name" : "enableIntersectionTypeHint", - "default" : null + "name" : "linesCountBeforeFirstUse", + "default" : 1 }, { - "name" : "enableUnionTypeHint", + "name" : "linesCountBeforeFirstUseWhenFirstInClass", "default" : null }, { - "name" : "enableStandaloneNullTrueFalseTypeHints", - "default" : null + "name" : "linesCountAfterLastUse", + "default" : 1 }, { - "name" : "enableObjectTypeHint", - "default" : null + "name" : "linesCountBetweenUses", + "default" : 0 } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_ParameterTypeHintSpacing", + "patternId" : "SlevomatCodingStandard_Classes_UselessLateStaticBinding", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_PropertyTypeHint", + "patternId" : "SlevomatCodingStandard_Commenting_AnnotationName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "enableNativeTypeHint", - "default" : null - }, { - "name" : "enableMixedTypeHint", - "default" : null - }, { - "name" : "enableIntersectionTypeHint", - "default" : null - }, { - "name" : "enableStandaloneNullTrueFalseTypeHints", - "default" : null - }, { - "name" : "enableUnionTypeHint", + "name" : "annotations", "default" : null } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_ReturnTypeHint", + "patternId" : "SlevomatCodingStandard_Commenting_DeprecatedAnnotationDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "enableNeverTypeHint", - "default" : null - }, { - "name" : "enableMixedTypeHint", - "default" : null - }, { - "name" : "enableIntersectionTypeHint", - "default" : null - }, { - "name" : "enableUnionTypeHint", - "default" : null - }, { - "name" : "enableStaticTypeHint", - "default" : null - }, { - "name" : "enableStandaloneNullTrueFalseTypeHints", - "default" : null - }, { - "name" : "enableObjectTypeHint", - "default" : null - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_ReturnTypeHintSpacing", + "patternId" : "SlevomatCodingStandard_Commenting_DisallowCommentAfterCode", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacesCountBeforeColon", - "default" : 0 - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_UnionTypeHintFormat", + "patternId" : "SlevomatCodingStandard_Commenting_DisallowOneLinePropertyDocComment", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ ], + "languages" : [ ], + "enabled" : false + }, { + "patternId" : "SlevomatCodingStandard_Commenting_DocCommentSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "enable", - "default" : null + "name" : "linesCountBetweenAnnotationsGroups", + "default" : 1 }, { - "name" : "withSpaces", - "default" : null + "name" : "linesCountAfterLastContent", + "default" : 0 }, { - "name" : "shortNullable", - "default" : null + "name" : "linesCountBetweenDifferentAnnotationsTypes", + "default" : 0 }, { - "name" : "nullPosition", - "default" : null + "name" : "linesCountBetweenDescriptionAndAnnotations", + "default" : 1 + }, { + "name" : "linesCountBeforeFirstContent", + "default" : 0 } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_TypeHints_UselessConstantTypeHint", + "patternId" : "SlevomatCodingStandard_Commenting_EmptyComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Variables_DisallowSuperGlobalVariable", + "patternId" : "SlevomatCodingStandard_Commenting_ForbiddenAnnotations", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Variables_DisallowVariableVariable", + "patternId" : "SlevomatCodingStandard_Commenting_ForbiddenComments", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Variables_DuplicateAssignmentToVariable", + "patternId" : "SlevomatCodingStandard_Commenting_InlineDocCommentDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "allowDocCommentAboveReturn", + "default" : false + }, { + "name" : "allowAboveNonAssignment", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Variables_UnusedVariable", + "patternId" : "SlevomatCodingStandard_Commenting_RequireOneDocComment", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Variables_UselessVariable", + "patternId" : "SlevomatCodingStandard_Commenting_RequireOneLineDocComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "SlevomatCodingStandard_Whitespaces_DuplicateSpaces", + "patternId" : "SlevomatCodingStandard_Commenting_RequireOneLinePropertyDocComment", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreSpacesInComment", - "default" : false - }, { - "name" : "ignoreSpacesInAnnotation", - "default" : false - }, { - "name" : "ignoreSpacesInParameters", - "default" : false - }, { - "name" : "ignoreSpacesInMatch", - "default" : false - }, { - "name" : "ignoreSpacesBeforeAssignment", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Arrays_ArrayBracketSpacing", + "patternId" : "SlevomatCodingStandard_Commenting_ThrowsAnnotationsOrder", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "caseSensitive", + "default" : false + } ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_Arrays_ArrayDeclaration", + "patternId" : "SlevomatCodingStandard_Commenting_UselessFunctionDocComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_CSS_ClassDefinitionClosingBraceSpace", + "patternId" : "SlevomatCodingStandard_Commenting_UselessInheritDocComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_ClassDefinitionNameSpacing", + "patternId" : "SlevomatCodingStandard_Complexity_Cognitive", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "maxComplexity", + "default" : null + }, { + "name" : "warningThreshold", + "default" : 6 + }, { + "name" : "errorThreshold", + "default" : 6 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_ClassDefinitionOpeningBraceSpace", + "patternId" : "SlevomatCodingStandard_ControlStructures_AssignmentInCondition", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "ignoreAssignmentsInsideFunctionCalls", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_ColonSpacing", + "patternId" : "SlevomatCodingStandard_ControlStructures_BlockControlStructureSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "linesCountBefore", + "default" : 1 + }, { + "name" : "linesCountBeforeFirst", + "default" : 0 + }, { + "name" : "linesCountAfter", + "default" : 1 + }, { + "name" : "linesCountAfterLast", + "default" : 0 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_ColourDefinition", + "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowContinueWithoutIntegerOperandInSwitch", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_DisallowMultipleStyleDefinitions", + "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowEmpty", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_DuplicateClassDefinition", + "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowNullSafeObjectOperator", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_DuplicateStyleDefinition", + "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowShortTernaryOperator", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "fixable", + "default" : true + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_EmptyClassDefinition", + "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowTrailingMultiLineTernaryOperator", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_EmptyStyleDefinition", + "patternId" : "SlevomatCodingStandard_ControlStructures_DisallowYodaComparison", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_ForbiddenStyles", + "patternId" : "SlevomatCodingStandard_ControlStructures_EarlyExit", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "error", - "default" : true + "name" : "ignoreStandaloneIfInScope", + "default" : false + }, { + "name" : "ignoreOneLineTrailingIf", + "default" : false + }, { + "name" : "ignoreTrailingIfWithOneInstruction", + "default" : false } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_Indentation", + "patternId" : "SlevomatCodingStandard_ControlStructures_JumpStatementsSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "indent", - "default" : 4 + "name" : "linesCountAfterWhenLastInCaseOrDefault", + "default" : null + }, { + "name" : "linesCountBeforeFirst", + "default" : 0 + }, { + "name" : "linesCountBeforeWhenFirstInCaseOrDefault", + "default" : null + }, { + "name" : "linesCountAfterWhenLastInLastCaseOrDefault", + "default" : null + }, { + "name" : "linesCountBefore", + "default" : 1 + }, { + "name" : "linesCountAfter", + "default" : 1 + }, { + "name" : "linesCountAfterLast", + "default" : 0 + }, { + "name" : "allowSingleLineYieldStacking", + "default" : true } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_LowercaseStyleDefinition", + "patternId" : "SlevomatCodingStandard_ControlStructures_LanguageConstructWithParentheses", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_MissingColon", + "patternId" : "SlevomatCodingStandard_ControlStructures_NewWithParentheses", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_NamedColours", + "patternId" : "SlevomatCodingStandard_ControlStructures_NewWithoutParentheses", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_Opacity", + "patternId" : "SlevomatCodingStandard_ControlStructures_RequireMultiLineCondition", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "minLineLength", + "default" : 121 + }, { + "name" : "booleanOperatorOnPreviousLine", + "default" : false + }, { + "name" : "alwaysSplitAllConditionParts", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_SemicolonSpacing", + "patternId" : "SlevomatCodingStandard_ControlStructures_RequireMultiLineTernaryOperator", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "lineLengthLimit", + "default" : 0 + }, { + "name" : "minExpressionsLength", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_CSS_ShorthandSize", + "patternId" : "SlevomatCodingStandard_ControlStructures_RequireNullCoalesceEqualOperator", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enable", + "default" : null + }, { + "name" : "checkIfConditions", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Classes_ClassDeclaration", + "patternId" : "SlevomatCodingStandard_ControlStructures_RequireNullCoalesceOperator", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Classes_ClassFileName", + "patternId" : "SlevomatCodingStandard_ControlStructures_RequireNullSafeObjectOperator", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enable", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Classes_DuplicateProperty", + "patternId" : "SlevomatCodingStandard_ControlStructures_RequireShortTernaryOperator", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Classes_LowercaseClassKeywords", + "patternId" : "SlevomatCodingStandard_ControlStructures_RequireSingleLineCondition", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "maxLineLength", + "default" : 120 + }, { + "name" : "alwaysForSimpleConditions", + "default" : true + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Classes_SelfMemberReference", + "patternId" : "SlevomatCodingStandard_ControlStructures_RequireTernaryOperator", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "ignoreMultiLine", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Classes_ValidClassName", + "patternId" : "SlevomatCodingStandard_ControlStructures_RequireYodaComparison", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "alwaysVariableOnRight", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Commenting_BlockComment", + "patternId" : "SlevomatCodingStandard_ControlStructures_UselessIfConditionWithReturn", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "assumeAllConditionExpressionsAreAlreadyBoolean", + "default" : false + } ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_Commenting_ClassComment", + "patternId" : "SlevomatCodingStandard_ControlStructures_UselessTernaryOperator", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "assumeAllConditionExpressionsAreAlreadyBoolean", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Commenting_ClosingDeclarationComment", + "patternId" : "SlevomatCodingStandard_Exceptions_CatchExceptionsOrder", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "caseSensitive", + "default" : false + } ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_Commenting_DocCommentAlignment", + "patternId" : "SlevomatCodingStandard_Exceptions_DeadCatch", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_Commenting_EmptyCatchComment", + "patternId" : "SlevomatCodingStandard_Exceptions_DisallowNonCapturingCatch", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_Commenting_FileComment", + "patternId" : "SlevomatCodingStandard_Exceptions_ReferenceThrowableOnly", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Commenting_FunctionComment", + "patternId" : "SlevomatCodingStandard_Exceptions_RequireNonCapturingCatch", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "skipIfInheritdoc", - "default" : false + "name" : "enable", + "default" : null } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Commenting_FunctionCommentThrowTag", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Commenting_InlineComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Commenting_LongConditionClosingComment", + "patternId" : "SlevomatCodingStandard_Files_FileLength", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "lineLimit", - "default" : 20 + "name" : "maxLinesLength", + "default" : 250 }, { - "name" : "commentFormat", - "default" : "'//end %s'" + "name" : "includeComments", + "default" : false + }, { + "name" : "includeWhitespace", + "default" : false } ], "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Commenting_PostStatementComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Commenting_VariableComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_ControlStructures_ControlSignature", + "patternId" : "SlevomatCodingStandard_Files_LineLength", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "requiredSpacesBeforeColon", - "default" : 1 + "name" : "lineLengthLimit", + "default" : 120 + }, { + "name" : "ignoreComments", + "default" : false + }, { + "name" : "ignoreImports", + "default" : true } ], "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_ControlStructures_ElseIfDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_ControlStructures_ForEachLoopDeclaration", + "patternId" : "SlevomatCodingStandard_Files_TypeNameMatchesFileName", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "requiredSpacesAfterOpen", - "default" : 0 - }, { - "name" : "requiredSpacesBeforeClose", - "default" : 0 - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_ControlStructures_ForLoopDeclaration", + "patternId" : "SlevomatCodingStandard_Functions_ArrowFunctionDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "requiredSpacesAfterOpen", - "default" : 0 + "name" : "spacesCountAfterKeyword", + "default" : 1 }, { - "name" : "requiredSpacesBeforeClose", - "default" : 0 + "name" : "spacesCountBeforeArrow", + "default" : 1 }, { - "name" : "ignoreNewlines", + "name" : "spacesCountAfterArrow", + "default" : 1 + }, { + "name" : "allowMultiLine", "default" : false } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_ControlStructures_InlineIfDeclaration", + "patternId" : "SlevomatCodingStandard_Functions_DisallowArrowFunction", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_ControlStructures_LowercaseDeclaration", + "patternId" : "SlevomatCodingStandard_Functions_DisallowEmptyFunction", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_ControlStructures_SwitchDeclaration", + "patternId" : "SlevomatCodingStandard_Functions_DisallowNamedArguments", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ ], + "languages" : [ ], + "enabled" : false + }, { + "patternId" : "SlevomatCodingStandard_Functions_DisallowTrailingCommaInCall", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "indent", - "default" : 4 + "name" : "onlySingleLine", + "default" : false } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Debug_JSLint", + "patternId" : "SlevomatCodingStandard_Functions_DisallowTrailingCommaInClosureUse", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "onlySingleLine", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Debug_JavaScriptLint", + "patternId" : "SlevomatCodingStandard_Functions_DisallowTrailingCommaInDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "onlySingleLine", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Files_FileExtension", + "patternId" : "SlevomatCodingStandard_Functions_FunctionLength", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "maxLinesLength", + "default" : 20 + }, { + "name" : "includeComments", + "default" : false + }, { + "name" : "includeWhitespace", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Formatting_OperatorBracket", + "patternId" : "SlevomatCodingStandard_Functions_NamedArgumentSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_Functions_FunctionDeclaration", + "patternId" : "SlevomatCodingStandard_Functions_RequireArrowFunction", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "allowNested", + "default" : true + }, { + "name" : "enable", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Functions_FunctionDeclarationArgumentSpacing", + "patternId" : "SlevomatCodingStandard_Functions_RequireMultiLineCall", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "equalsSpacing", - "default" : 0 + "name" : "minLineLength", + "default" : null }, { - "name" : "requiredSpacesAfterOpen", - "default" : 0 + "name" : "minParametersCount", + "default" : null }, { - "name" : "requiredSpacesBeforeClose", - "default" : 0 + "name" : "excludedCallNormalizedPatterns", + "default" : null } ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_Functions_FunctionDuplicateArgument", + "patternId" : "SlevomatCodingStandard_Functions_RequireSingleLineCall", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "maxLineLength", + "default" : 120 + }, { + "name" : "ignoreWithComplexParameter", + "default" : true + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Functions_GlobalFunction", + "patternId" : "SlevomatCodingStandard_Functions_RequireTrailingCommaInCall", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enable", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Functions_LowercaseFunctionKeywords", + "patternId" : "SlevomatCodingStandard_Functions_RequireTrailingCommaInClosureUse", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enable", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Functions_MultiLineFunctionDeclaration", + "patternId" : "SlevomatCodingStandard_Functions_RequireTrailingCommaInDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enable", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_NamingConventions_ValidFunctionName", + "patternId" : "SlevomatCodingStandard_Functions_StaticClosure", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_NamingConventions_ValidVariableName", + "patternId" : "SlevomatCodingStandard_Functions_StrictCall", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Objects_DisallowObjectStringIndex", + "patternId" : "SlevomatCodingStandard_Functions_UnusedInheritedVariablePassedToClosure", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Objects_ObjectInstantiation", + "patternId" : "SlevomatCodingStandard_Functions_UnusedParameter", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Objects_ObjectMemberComma", + "patternId" : "SlevomatCodingStandard_Functions_UselessParameterDefaultValue", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Operators_ComparisonOperatorUsage", + "patternId" : "SlevomatCodingStandard_Namespaces_AlphabeticallySortedUses", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "psr12Compatible", + "default" : true + }, { + "name" : "caseSensitive", + "default" : false + } ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_Operators_IncrementDecrementUsage", + "patternId" : "SlevomatCodingStandard_Namespaces_DisallowGroupUse", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Operators_ValidLogicalOperators", + "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedClassNameInAnnotation", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_CommentedOutCode", + "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedExceptions", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxPercentage", - "default" : 35 - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_DisallowBooleanStatement", + "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalConstants", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_DisallowComparisonAssignment", + "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalFunctions", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "includeSpecialFunctions", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_DisallowInlineIf", + "patternId" : "SlevomatCodingStandard_Namespaces_MultipleUsesPerLine", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_PHP_DisallowMultipleAssignments", + "patternId" : "SlevomatCodingStandard_Namespaces_NamespaceDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_DisallowSizeFunctionsInLoops", + "patternId" : "SlevomatCodingStandard_Namespaces_NamespaceSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "linesCountBeforeNamespace", + "default" : 1 + }, { + "name" : "linesCountAfterNamespace", + "default" : 1 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_DiscouragedFunctions", + "patternId" : "SlevomatCodingStandard_Namespaces_ReferenceUsedNamesOnly", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "error", + "name" : "allowFullyQualifiedExceptions", + "default" : false + }, { + "name" : "allowFullyQualifiedGlobalFunctions", "default" : false + }, { + "name" : "allowWhenNoNamespace", + "default" : true + }, { + "name" : "allowFullyQualifiedGlobalConstants", + "default" : false + }, { + "name" : "searchAnnotations", + "default" : false + }, { + "name" : "allowFullyQualifiedNameForCollidingClasses", + "default" : false + }, { + "name" : "allowFullyQualifiedNameForCollidingFunctions", + "default" : false + }, { + "name" : "allowFallbackGlobalFunctions", + "default" : true + }, { + "name" : "allowFullyQualifiedGlobalClasses", + "default" : false + }, { + "name" : "allowPartialUses", + "default" : true + }, { + "name" : "allowFullyQualifiedNameForCollidingConstants", + "default" : false + }, { + "name" : "allowFallbackGlobalConstants", + "default" : true } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_EmbeddedPhp", + "patternId" : "SlevomatCodingStandard_Namespaces_RequireOneNamespaceInFile", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_Eval", + "patternId" : "SlevomatCodingStandard_Namespaces_UnusedUses", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "searchAnnotations", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_GlobalKeyword", + "patternId" : "SlevomatCodingStandard_Namespaces_UseDoesNotStartWithBackslash", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_Heredoc", + "patternId" : "SlevomatCodingStandard_Namespaces_UseFromSameNamespace", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_InnerFunctions", + "patternId" : "SlevomatCodingStandard_Namespaces_UseOnlyWhitelistedNamespaces", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "allowUseFromRootNamespace", + "default" : false + } ], + "languages" : [ ], + "enabled" : false + }, { + "patternId" : "SlevomatCodingStandard_Namespaces_UseSpacing", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ { + "name" : "linesCountBeforeFirstUse", + "default" : 1 + }, { + "name" : "linesCountBetweenUseTypes", + "default" : 0 + }, { + "name" : "linesCountAfterLastUse", + "default" : 1 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_LowercasePHPFunctions", + "patternId" : "SlevomatCodingStandard_Namespaces_UselessAlias", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_PHP_NonExecutableCode", + "patternId" : "SlevomatCodingStandard_Numbers_DisallowNumericLiteralSeparator", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Scope_MemberVarScope", + "patternId" : "SlevomatCodingStandard_Numbers_RequireNumericLiteralSeparator", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enable", + "default" : null + }, { + "name" : "minDigitsBeforeDecimalPoint", + "default" : 4 + }, { + "name" : "minDigitsAfterDecimalPoint", + "default" : 4 + }, { + "name" : "ignoreOctalNumbers", + "default" : true + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Scope_MethodScope", + "patternId" : "SlevomatCodingStandard_Operators_DisallowEqualOperators", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_Scope_StaticThisUsage", + "patternId" : "SlevomatCodingStandard_Operators_DisallowIncrementAndDecrementOperators", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Strings_ConcatenationSpacing", + "patternId" : "SlevomatCodingStandard_Operators_NegationOperatorSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "spacing", + "name" : "spacesCount", "default" : 0 - }, { - "name" : "ignoreNewlines", - "default" : false } ], "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Strings_DoubleQuoteUsage", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_Strings_EchoedStrings", + "patternId" : "SlevomatCodingStandard_Operators_RequireCombinedAssignmentOperator", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_CastSpacing", + "patternId" : "SlevomatCodingStandard_Operators_RequireOnlyStandaloneIncrementAndDecrementOperators", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_ControlStructureSpacing", + "patternId" : "SlevomatCodingStandard_Operators_SpreadOperatorSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "spacesCountAfterOperator", + "default" : 0 + } ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_FunctionClosingBraceSpace", + "patternId" : "SlevomatCodingStandard_PHP_DisallowDirectMagicInvokeCall", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_FunctionOpeningBraceSpace", + "patternId" : "SlevomatCodingStandard_PHP_DisallowReference", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_FunctionSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacing", - "default" : 2 - }, { - "name" : "spacingBeforeFirst", - "default" : 2 - }, { - "name" : "spacingAfterLast", - "default" : 2 - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_WhiteSpace_LanguageConstructSpacing", + "patternId" : "SlevomatCodingStandard_PHP_ForbiddenClasses", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_LogicalOperatorSpacing", + "patternId" : "SlevomatCodingStandard_PHP_OptimizedFunctionsWithoutUnpacking", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_MemberVarSpacing", + "patternId" : "SlevomatCodingStandard_PHP_ReferenceSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "spacing", - "default" : 1 - }, { - "name" : "spacingBeforeFirst", - "default" : 1 + "name" : "spacesCountAfterReference", + "default" : 0 } ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_ObjectOperatorSpacing", + "patternId" : "SlevomatCodingStandard_PHP_RequireExplicitAssertion", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "ignoreNewlines", + "name" : "enableIntegerRanges", + "default" : false + }, { + "name" : "enableAdvancedStringTypes", "default" : false } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_OperatorSpacing", + "patternId" : "SlevomatCodingStandard_PHP_RequireNowdoc", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreNewlines", - "default" : false - }, { - "name" : "ignoreSpacingBeforeAssignments", - "default" : true - } ], + "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_PropertyLabelSpacing", + "patternId" : "SlevomatCodingStandard_PHP_ShortList", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_ScopeClosingBrace", + "patternId" : "SlevomatCodingStandard_PHP_TypeCast", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_ScopeKeywordSpacing", + "patternId" : "SlevomatCodingStandard_PHP_UselessParentheses", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "ignoreComplexTernaryConditions", + "default" : false + }, { + "name" : "enableCheckAroundNew", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_SemicolonSpacing", + "patternId" : "SlevomatCodingStandard_PHP_UselessSemicolon", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Squiz_WhiteSpace_SuperfluousWhitespace", + "patternId" : "SlevomatCodingStandard_Strings_DisallowVariableParsing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "ignoreBlankLines", + "name" : "disallowDollarCurlySyntax", + "default" : true + }, { + "name" : "disallowCurlyDollarSyntax", + "default" : false + }, { + "name" : "disallowSimpleSyntax", "default" : false } ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "Symfony_Arrays_MultiLineArrayComma", + "patternId" : "SlevomatCodingStandard_TypeHints_ClassConstantTypeHint", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enableNativeTypeHint", + "default" : null + }, { + "name" : "fixableNativeTypeHint", + "default" : "self::YES" + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Classes_MultipleClassesOneFile", + "patternId" : "SlevomatCodingStandard_TypeHints_DNFTypeHintFormat", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "shortNullable", + "default" : null + }, { + "name" : "enable", + "default" : null + }, { + "name" : "withSpacesAroundOperators", + "default" : null + }, { + "name" : "withSpacesInsideParentheses", + "default" : null + }, { + "name" : "nullPosition", + "default" : null + }, { + "name" : "enableForDocComments", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Classes_PropertyDeclaration", + "patternId" : "SlevomatCodingStandard_TypeHints_DeclareStrictTypes", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "declareOnFirstLine", + "default" : false + }, { + "name" : "linesCountBeforeDeclare", + "default" : 1 + }, { + "name" : "linesCountAfterDeclare", + "default" : 1 + }, { + "name" : "spacesCountAroundEqualsSign", + "default" : 1 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Commenting_Annotations", + "patternId" : "SlevomatCodingStandard_TypeHints_DisallowArrayTypeHintSyntax", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Commenting_ClassComment", + "patternId" : "SlevomatCodingStandard_TypeHints_DisallowMixedTypeHint", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Commenting_FunctionComment", + "patternId" : "SlevomatCodingStandard_TypeHints_LongTypeHints", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Commenting_License", + "patternId" : "SlevomatCodingStandard_TypeHints_NullTypeHintOnLastPosition", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Commenting_TypeHinting", + "patternId" : "SlevomatCodingStandard_TypeHints_NullableTypeForNullDefaultValue", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_ControlStructure_IdenticalComparison", + "patternId" : "SlevomatCodingStandard_TypeHints_ParameterTypeHint", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enableMixedTypeHint", + "default" : null + }, { + "name" : "enableIntersectionTypeHint", + "default" : null + }, { + "name" : "enableUnionTypeHint", + "default" : null + }, { + "name" : "enableStandaloneNullTrueFalseTypeHints", + "default" : null + }, { + "name" : "enableObjectTypeHint", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_ControlStructure_UnaryOperators", + "patternId" : "SlevomatCodingStandard_TypeHints_ParameterTypeHintSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_ControlStructure_YodaConditions", + "patternId" : "SlevomatCodingStandard_TypeHints_PropertyTypeHint", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enableNativeTypeHint", + "default" : null + }, { + "name" : "enableMixedTypeHint", + "default" : null + }, { + "name" : "enableIntersectionTypeHint", + "default" : null + }, { + "name" : "enableStandaloneNullTrueFalseTypeHints", + "default" : null + }, { + "name" : "enableUnionTypeHint", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Errors_ExceptionMessage", + "patternId" : "SlevomatCodingStandard_TypeHints_ReturnTypeHint", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enableNeverTypeHint", + "default" : null + }, { + "name" : "enableMixedTypeHint", + "default" : null + }, { + "name" : "enableIntersectionTypeHint", + "default" : null + }, { + "name" : "enableUnionTypeHint", + "default" : null + }, { + "name" : "enableStaticTypeHint", + "default" : null + }, { + "name" : "enableStandaloneNullTrueFalseTypeHints", + "default" : null + }, { + "name" : "enableObjectTypeHint", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Errors_UserDeprecated", + "patternId" : "SlevomatCodingStandard_TypeHints_ReturnTypeHintSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "spacesCountBeforeColon", + "default" : 0 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Files_AlphanumericFilename", + "patternId" : "SlevomatCodingStandard_TypeHints_UnionTypeHintFormat", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "enable", + "default" : null + }, { + "name" : "withSpaces", + "default" : null + }, { + "name" : "shortNullable", + "default" : null + }, { + "name" : "nullPosition", + "default" : null + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Formatting_BlankLineBeforeReturn", + "patternId" : "SlevomatCodingStandard_TypeHints_UselessConstantTypeHint", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Formatting_ReturnOrThrow", + "patternId" : "SlevomatCodingStandard_Variables_DisallowSuperGlobalVariable", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Functions_Arguments", + "patternId" : "SlevomatCodingStandard_Variables_DisallowVariableVariable", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Functions_ReturnType", + "patternId" : "SlevomatCodingStandard_Variables_DuplicateAssignmentToVariable", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Functions_ScopeOrder", + "patternId" : "SlevomatCodingStandard_Variables_UnusedVariable", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_NamingConventions_ValidClassName", + "patternId" : "SlevomatCodingStandard_Variables_UselessVariable", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Objects_ObjectInstantiation", + "patternId" : "SlevomatCodingStandard_Whitespaces_DuplicateSpaces", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "ignoreSpacesInComment", + "default" : false + }, { + "name" : "ignoreSpacesInAnnotation", + "default" : false + }, { + "name" : "ignoreSpacesInParameters", + "default" : false + }, { + "name" : "ignoreSpacesInMatch", + "default" : false + }, { + "name" : "ignoreSpacesBeforeAssignment", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Whitespace_AssignmentSpacing", + "patternId" : "Squiz_Arrays_ArrayBracketSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "Symfony_Whitespace_BinaryOperatorSpacing", + "patternId" : "Squiz_Arrays_ArrayDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "Symfony_Whitespace_CommaSpacing", + "patternId" : "Squiz_CSS_ClassDefinitionClosingBraceSpace", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Symfony_Whitespace_DiscourageFitzinator", + "patternId" : "Squiz_CSS_ClassDefinitionNameSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Classes_ConstantDeclarationOrder", + "patternId" : "Squiz_CSS_ClassDefinitionOpeningBraceSpace", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Classes_ObjectInstantiation", + "patternId" : "Squiz_CSS_ColonSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "allowAnonymousClasses", - "default" : true - }, { - "name" : "reportReflectionError", - "default" : false - }, { - "name" : "considerFinalInstantiationOnReflectionError", - "default" : false - }, { - "name" : "allowInstantiateFinalClasses", - "default" : true - }, { - "name" : "allowNamedConstructors", - "default" : true - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Classes_PropertyUnderscore", + "patternId" : "Squiz_CSS_ColourDefinition", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "allowInherited", - "default" : true - }, { - "name" : "skipOnReflectionError", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Classes_ProtectedMember", + "patternId" : "Squiz_CSS_DisallowMultipleStyleDefinitions", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "considerInheritedOnReflectionError", - "default" : false - }, { - "name" : "allowProtectedPropertyInAbstractClass", - "default" : false - }, { - "name" : "allowInherited", - "default" : true - }, { - "name" : "allowAbstract", - "default" : true - }, { - "name" : "allowProtectedFunctionInAbstractClass", - "default" : true - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Classes_UndefinedProperty", + "patternId" : "Squiz_CSS_DuplicateClassDefinition", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "skipOnReflectionError", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_CodeAnalysis_Copyright", + "patternId" : "Squiz_CSS_DuplicateStyleDefinition", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_CodeAnalysis_UnusedFunctionParameter", + "patternId" : "Squiz_CSS_EmptyClassDefinition", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "allowUnusedInheritedParameters", - "default" : true - }, { - "name" : "considerInheritedOnReflectionError", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Comments_DeprecationNotice", + "patternId" : "Squiz_CSS_EmptyStyleDefinition", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_ControlStructures_NestedIf", + "patternId" : "Squiz_CSS_ForbiddenStyles", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "maxAllowedNesting", - "default" : 0 + "name" : "error", + "default" : true } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_ControlStructures_TernaryOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Vaimo_ControlStructures_TernaryOperatorPlacement", + "patternId" : "Squiz_CSS_Indentation", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "allowOnly", - "default" : "self::PLACEMENT_FIRST" + "name" : "indent", + "default" : 4 } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Custom_ArrayAccess", + "patternId" : "Squiz_CSS_LowercaseStyleDefinition", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Custom_FixMultilineIf", + "patternId" : "Squiz_CSS_MissingColon", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Custom_LegacyDocblockTags", + "patternId" : "Squiz_CSS_NamedColours", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Custom_NoPhpCsDisable", + "patternId" : "Squiz_CSS_Opacity", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_Exceptions_TryProcessSystemResources", + "patternId" : "Squiz_CSS_SemicolonSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_NamingConventions_AndOrInClassName", + "patternId" : "Squiz_CSS_ShorthandSize", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_NamingConventions_AndOrInMethodName", + "patternId" : "Squiz_Classes_ClassDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_NamingConventions_AndOrInVariableName", + "patternId" : "Squiz_Classes_ClassFileName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_NamingConventions_IllegalWordInClassName", + "patternId" : "Squiz_Classes_DuplicateProperty", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_NamingConventions_IllegalWordInMethodName", + "patternId" : "Squiz_Classes_LowercaseClassKeywords", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "allowInheritedMethods", - "default" : true - }, { - "name" : "considerInheritedOnReflectionError", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_NamingConventions_IllegalWordInVariableName", + "patternId" : "Squiz_Classes_SelfMemberReference", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "allowInheritedProperties", - "default" : true - }, { - "name" : "considerInheritedOnReflectionError", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_NamingConventions_VariablesCamelCase", + "patternId" : "Squiz_Classes_ValidClassName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Vaimo_PHP_NoSilencedErrors", + "patternId" : "Squiz_Commenting_BlockComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "Vaimo_TypeHints_IllegalReturnTypeAnnotation", + "patternId" : "Squiz_Commenting_ClassComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Classes_DeclarationCompatibility", + "patternId" : "Squiz_Commenting_ClosingDeclarationComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Classes_RestrictedExtendClasses", + "patternId" : "Squiz_Commenting_DocCommentAlignment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Constants_ConstantString", + "patternId" : "Squiz_Commenting_EmptyCatchComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Constants_RestrictedConstants", + "patternId" : "Squiz_Commenting_FileComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Files_IncludingFile", + "patternId" : "Squiz_Commenting_FunctionComment", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "skipIfInheritdoc", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Files_IncludingNonPHPFile", + "patternId" : "Squiz_Commenting_FunctionCommentThrowTag", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Functions_CheckReturnValue", + "patternId" : "Squiz_Commenting_InlineComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Functions_DynamicCalls", + "patternId" : "Squiz_Commenting_LongConditionClosingComment", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "lineLimit", + "default" : 20 + }, { + "name" : "commentFormat", + "default" : "'//end %s'" + } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Functions_RestrictedFunctions", + "patternId" : "Squiz_Commenting_PostStatementComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Functions_StripTags", + "patternId" : "Squiz_Commenting_VariableComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Hooks_AlwaysReturnInFilter", + "patternId" : "Squiz_ControlStructures_ControlSignature", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "requiredSpacesBeforeColon", + "default" : 1 + } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Hooks_PreGetPosts", + "patternId" : "Squiz_ControlStructures_ElseIfDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Hooks_RestrictedHooks", + "patternId" : "Squiz_ControlStructures_ForEachLoopDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "requiredSpacesAfterOpen", + "default" : 0 + }, { + "name" : "requiredSpacesBeforeClose", + "default" : 0 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_JS_DangerouslySetInnerHTML", + "patternId" : "Squiz_ControlStructures_ForLoopDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "requiredSpacesAfterOpen", + "default" : 0 + }, { + "name" : "requiredSpacesBeforeClose", + "default" : 0 + }, { + "name" : "ignoreNewlines", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_JS_HTMLExecutingFunctions", + "patternId" : "Squiz_ControlStructures_InlineIfDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_JS_InnerHTML", + "patternId" : "Squiz_ControlStructures_LowercaseDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_JS_StringConcat", + "patternId" : "Squiz_ControlStructures_SwitchDeclaration", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "indent", + "default" : 4 + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_JS_StrippingTags", + "patternId" : "Squiz_Debug_JSLint", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_JS_Window", + "patternId" : "Squiz_Debug_JavaScriptLint", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Performance_CacheValueOverride", + "patternId" : "Squiz_Files_FileExtension", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Performance_FetchingRemoteData", + "patternId" : "Squiz_Formatting_OperatorBracket", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Performance_LowExpiryCacheTime", + "patternId" : "Squiz_Functions_FunctionDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Performance_NoPaging", + "patternId" : "Squiz_Functions_FunctionDeclarationArgumentSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "equalsSpacing", + "default" : 0 + }, { + "name" : "requiredSpacesAfterOpen", + "default" : 0 + }, { + "name" : "requiredSpacesBeforeClose", + "default" : 0 + } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Performance_OrderByRand", + "patternId" : "Squiz_Functions_FunctionDuplicateArgument", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Performance_RegexpCompare", + "patternId" : "Squiz_Functions_GlobalFunction", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Performance_RemoteRequestTimeout", + "patternId" : "Squiz_Functions_LowercaseFunctionKeywords", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Performance_TaxonomyMetaInOptions", + "patternId" : "Squiz_Functions_MultiLineFunctionDeclaration", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Performance_WPQueryParams", + "patternId" : "Squiz_NamingConventions_ValidFunctionName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Security_EscapingVoidReturnFunctions", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "WordPressVIPMinimum_Security_ExitAfterRedirect", - "level" : "Error", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "WordPressVIPMinimum_Security_Mustache", - "level" : "Warning", - "category" : "Security", + "patternId" : "Squiz_NamingConventions_ValidVariableName", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Security_PHPFilterFunctions", - "level" : "Warning", - "category" : "Security", + "patternId" : "Squiz_Objects_DisallowObjectStringIndex", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Security_ProperEscapingFunction", - "level" : "Error", - "category" : "Security", + "patternId" : "Squiz_Objects_ObjectInstantiation", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Security_StaticStrreplace", - "level" : "Error", - "category" : "Security", + "patternId" : "Squiz_Objects_ObjectMemberComma", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Security_Twig", - "level" : "Warning", - "category" : "Security", + "patternId" : "Squiz_Operators_ComparisonOperatorUsage", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPressVIPMinimum_Security_Underscorejs", - "level" : "Warning", - "category" : "Security", + "patternId" : "Squiz_Operators_IncrementDecrementUsage", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Security_Vuejs", - "level" : "Warning", - "category" : "Security", + "patternId" : "Squiz_Operators_ValidLogicalOperators", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_UserExperience_AdminBarRemoval", + "patternId" : "Squiz_PHP_CommentedOutCode", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "remove_only", - "default" : true + "name" : "maxPercentage", + "default" : 35 } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Variables_RestrictedVariables", + "patternId" : "Squiz_PHP_DisallowBooleanStatement", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPressVIPMinimum_Variables_ServerVariables", + "patternId" : "Squiz_PHP_DisallowComparisonAssignment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_Arrays_ArrayDeclarationSpacing", + "patternId" : "Squiz_PHP_DisallowInlineIf", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "allow_single_item_single_line_associative_arrays", - "default" : true - } ], + "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPress_Arrays_ArrayIndentation", + "patternId" : "Squiz_PHP_DisallowMultipleAssignments", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "tabIndent", - "default" : true - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_Arrays_ArrayKeySpacingRestrictions", + "patternId" : "Squiz_PHP_DisallowSizeFunctionsInLoops", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_Arrays_MultipleStatementAlignment", + "patternId" : "Squiz_PHP_DiscouragedFunctions", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "ignoreNewlines", - "default" : true - }, { - "name" : "exact", - "default" : true - }, { - "name" : "maxColumn", - "default" : 1000 - }, { - "name" : "alignMultilineItems", - "default" : "'always'" + "name" : "error", + "default" : false } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_CodeAnalysis_AssignmentInTernaryCondition", + "patternId" : "Squiz_PHP_EmbeddedPhp", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_CodeAnalysis_EscapedNotTranslated", + "patternId" : "Squiz_PHP_Eval", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_DB_DirectDatabaseQuery", + "patternId" : "Squiz_PHP_GlobalKeyword", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_DB_PreparedSQL", - "level" : "Error", - "category" : "Security", - "subcategory" : "SQLInjection", + "patternId" : "Squiz_PHP_Heredoc", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "WordPress_DB_PreparedSQLPlaceholders", + "patternId" : "Squiz_PHP_InnerFunctions", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_DB_RestrictedClasses", + "patternId" : "Squiz_PHP_LowercasePHPFunctions", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_DB_RestrictedFunctions", + "patternId" : "Squiz_PHP_NonExecutableCode", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_DB_SlowDBQuery", + "patternId" : "Squiz_Scope_MemberVarScope", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_DateTime_CurrentTimeTimestamp", + "patternId" : "Squiz_Scope_MethodScope", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPress_DateTime_RestrictedFunctions", + "patternId" : "Squiz_Scope_StaticThisUsage", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_Files_FileName", + "patternId" : "Squiz_Strings_ConcatenationSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "is_theme", - "default" : false + "name" : "spacing", + "default" : 0 }, { - "name" : "strict_class_file_names", - "default" : true + "name" : "ignoreNewlines", + "default" : false } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPress_NamingConventions_PrefixAllGlobals", + "patternId" : "Squiz_Strings_DoubleQuoteUsage", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_NamingConventions_ValidFunctionName", + "patternId" : "Squiz_Strings_EchoedStrings", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_NamingConventions_ValidHookName", + "patternId" : "Squiz_WhiteSpace_CastSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "additionalWordDelimiters", - "default" : "''" - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_NamingConventions_ValidPostTypeSlug", + "patternId" : "Squiz_WhiteSpace_ControlStructureSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPress_NamingConventions_ValidVariableName", + "patternId" : "Squiz_WhiteSpace_FunctionClosingBraceSpace", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPress_PHP_DevelopmentFunctions", + "patternId" : "Squiz_WhiteSpace_FunctionOpeningBraceSpace", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_PHP_DiscouragedPHPFunctions", + "patternId" : "Squiz_WhiteSpace_FunctionSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "spacing", + "default" : 2 + }, { + "name" : "spacingBeforeFirst", + "default" : 2 + }, { + "name" : "spacingAfterLast", + "default" : 2 + } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPress_PHP_DontExtract", + "patternId" : "Squiz_WhiteSpace_LanguageConstructSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_PHP_IniSet", + "patternId" : "Squiz_WhiteSpace_LogicalOperatorSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_PHP_NoSilencedErrors", + "patternId" : "Squiz_WhiteSpace_MemberVarSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ { - "name" : "context_length", - "default" : 6 + "name" : "spacing", + "default" : 1 }, { - "name" : "usePHPFunctionsList", - "default" : true + "name" : "spacingBeforeFirst", + "default" : 1 } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPress_PHP_POSIXFunctions", + "patternId" : "Squiz_WhiteSpace_ObjectOperatorSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "ignoreNewlines", + "default" : false + } ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_PHP_PregQuoteDelimiter", + "patternId" : "Squiz_WhiteSpace_OperatorSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ ], + "parameters" : [ { + "name" : "ignoreNewlines", + "default" : false + }, { + "name" : "ignoreSpacingBeforeAssignments", + "default" : true + } ], "languages" : [ ], - "enabled" : false + "enabled" : true }, { - "patternId" : "WordPress_PHP_RestrictedPHPFunctions", + "patternId" : "Squiz_WhiteSpace_PropertyLabelSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_PHP_StrictInArray", + "patternId" : "Squiz_WhiteSpace_ScopeClosingBrace", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_PHP_TypeCasts", + "patternId" : "Squiz_WhiteSpace_ScopeKeywordSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_PHP_YodaConditions", + "patternId" : "Squiz_WhiteSpace_SemicolonSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_Security_EscapeOutput", - "level" : "Error", - "category" : "Security", - "subcategory" : "XSS", - "parameters" : [ ], + "patternId" : "Squiz_WhiteSpace_SuperfluousWhitespace", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ { + "name" : "ignoreBlankLines", + "default" : false + } ], "languages" : [ ], "enabled" : true }, { - "patternId" : "WordPress_Security_NonceVerification", + "patternId" : "Symfony_Arrays_MultiLineArrayComma", "level" : "Info", - "category" : "Security", - "subcategory" : "CSRF", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "WordPress_Security_PluginMenuSlug", - "level" : "Warning", - "category" : "Security", + "patternId" : "Symfony_Classes_MultipleClassesOneFile", + "level" : "Info", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "WordPress_Security_SafeRedirect", + "patternId" : "Symfony_Classes_PropertyDeclaration", "level" : "Info", - "category" : "Security", - "subcategory" : "HTTP", + "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "WordPress_Security_ValidatedSanitizedInput", - "level" : "Error", - "category" : "Security", - "subcategory" : "InputValidation", - "parameters" : [ { - "name" : "check_validation_in_scope_only", - "default" : false - } ], + "patternId" : "Symfony_Commenting_Annotations", + "level" : "Info", + "category" : "CodeStyle", + "parameters" : [ ], "languages" : [ ], - "enabled" : true + "enabled" : false }, { - "patternId" : "WordPress_Utils_I18nTextDomainFixer", + "patternId" : "Symfony_Commenting_ClassComment", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "new_text_domain", - "default" : "''" - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_AlternativeFunctions", + "patternId" : "Symfony_Commenting_FunctionComment", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_Capabilities", + "patternId" : "Symfony_Commenting_License", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_CapitalPDangit", + "patternId" : "Symfony_Commenting_TypeHinting", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_ClassNameCase", + "patternId" : "Symfony_ControlStructure_IdenticalComparison", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_CronInterval", + "patternId" : "Symfony_ControlStructure_UnaryOperators", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "min_interval", - "default" : 900 - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_DeprecatedClasses", + "patternId" : "Symfony_ControlStructure_YodaConditions", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_DeprecatedFunctions", + "patternId" : "Symfony_Errors_ExceptionMessage", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_DeprecatedParameterValues", + "patternId" : "Symfony_Errors_UserDeprecated", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_DeprecatedParameters", + "patternId" : "Symfony_Files_AlphanumericFilename", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_DiscouragedConstants", + "patternId" : "Symfony_Formatting_BlankLineBeforeReturn", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_DiscouragedFunctions", + "patternId" : "Symfony_Formatting_ReturnOrThrow", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_EnqueuedResourceParameters", + "patternId" : "Symfony_Functions_Arguments", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_EnqueuedResources", + "patternId" : "Symfony_Functions_ReturnType", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_GlobalVariablesOverride", + "patternId" : "Symfony_Functions_ScopeOrder", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "treat_files_as_scoped", - "default" : false - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_I18n", + "patternId" : "Symfony_NamingConventions_ValidClassName", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WP_PostsPerPage", + "patternId" : "Symfony_Objects_ObjectInstantiation", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "posts_per_page", - "default" : 100 - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WhiteSpace_CastStructureSpacing", + "patternId" : "Symfony_Whitespace_AssignmentSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WhiteSpace_ControlStructureSpacing", + "patternId" : "Symfony_Whitespace_BinaryOperatorSpacing", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "blank_line_check", - "default" : false - }, { - "name" : "blank_line_after_check", - "default" : true - }, { - "name" : "space_before_colon", - "default" : "'required'" - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WhiteSpace_ObjectOperatorSpacing", + "patternId" : "Symfony_Whitespace_CommaSpacing", "level" : "Info", "category" : "CodeStyle", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "WordPress_WhiteSpace_OperatorSpacing", + "patternId" : "Symfony_Whitespace_DiscourageFitzinator", "level" : "Info", "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreNewlines", - "default" : true - } ], + "parameters" : [ ], "languages" : [ ], "enabled" : false }, { diff --git a/docs/tests/DB_PreparedSQL.php b/docs/tests/DB_PreparedSQL.php deleted file mode 100644 index 1678cfc2..00000000 --- a/docs/tests/DB_PreparedSQL.php +++ /dev/null @@ -1,47 +0,0 @@ -query( "SELECT * FROM $wpdb->posts WHERE post_title LIKE '" . $_GET['title'] . "';" ); // Bad. -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( "SELECT * FROM $wpdb->posts WHERE post_title LIKE '{$_GET['title']}';" ); // Bad. -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( "SELECT * FROM $wpdb->posts WHERE post_title LIKE '$var';" ); // Bad. -$wpdb->query( "SELECT * FROM $wpdb->posts WHERE post_title LIKE 'Hello World!';" ); // Ok. -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_title LIKE '{$_GET['title']}';" ) ); // Bad. -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_title LIKE '$var';" ) ); // Bad. -$wpdb->query( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_title LIKE %s;", $_GET['title'] ) ); // Ok. - -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( "SELECT * FROM $wpdb->posts WHERE post_title LIKE '" . $escaped_var . "';" ); // Bad -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( "SELECT * FROM $wpdb->posts WHERE post_title LIKE '{$escaped_var}';" ); // Bad - -$wpdb->query( $wpdb->prepare( "SELECT SUBSTRING( post_name, %d + 1 ) REGEXP '^[0-9]+$'", array( 123 ) ) ); // Ok. -$wpdb->query( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_title = 'The \$_GET var can be evil.' AND ID = %s", array( 123 ) ) ); // Ok. -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_title = 'The $_GET[foo] var is evil.' AND ID = %s", array( 123 ) ) ); // Bad. -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_title = 'The \\$_GET[foo]// var is evil again.' AND ID = %s", array( 123 ) ) ); // Bad. -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_title = 'The \$_GET var can be evil, but $_GET[foo] var is evil.' AND ID = %s", array( 123 ) ) ); // Bad. - -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( "SELECT * FROM $wpdb->posts WHERE post_title LIKE '" . foo() . "';" ); // Bad. -//#Err: WordPress_DB_PreparedSQL -$wpdb->query( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_title LIKE '" . foo() . "';" ) ); // Bad. - -$wpdb->query( "SELECT * FROM " . $wpdb->posts . " WHERE post_title LIKE 'foo';" ); // Ok. - -// All OK. -$all_post_meta = $wpdb->get_results( $wpdb->prepare( sprintf( - 'SELECT `post_id`, `meta_value` FROM `%s` WHERE `meta_key` = "sort_order" AND `post_id` IN (%s)', - $wpdb->postmeta, - implode( ',', array_fill( 0, count( $post_ids ), '%d' ) ) -), $post_ids ) ); - -$wpdb->query( "SELECT * FROM $wpdb->posts WHERE post_title LIKE '" . esc_sql( $foo ) . "';" ); // Ok. -$wpdb->query( "SELECT * FROM $wpdb->posts WHERE ID = " . absint( $foo ) . ";" ); // Ok. diff --git a/docs/tests/Generic_Naming.php b/docs/tests/Generic_Naming.php deleted file mode 100644 index 68da8322..00000000 --- a/docs/tests/Generic_Naming.php +++ /dev/null @@ -1,17 +0,0 @@ - \ No newline at end of file diff --git a/docs/tests/MEQP1_CodeAnalysis_EmptyBlock.php b/docs/tests/MEQP1_CodeAnalysis_EmptyBlock.php deleted file mode 100644 index 004129b4..00000000 --- a/docs/tests/MEQP1_CodeAnalysis_EmptyBlock.php +++ /dev/null @@ -1,97 +0,0 @@ -getTraceAsString(); - } -} -try { - throw Exception('Error...'); - //#Info: MEQP1_CodeAnalysis_EmptyBlock -} catch (Exception $e) {} -try { - throw Exception('Error...'); - //#Info: MEQP1_CodeAnalysis_EmptyBlock -} catch (Exception $e) { - // TODO: Handle this exception later :-) -} -//#Info: MEQP1_CodeAnalysis_EmptyBlock -//#Info: MEQP1_CodeAnalysis_EmptyBlock -if (true) {} elseif (false) {} -//#Info: MEQP1_CodeAnalysis_EmptyBlock -class EmptyBlockTestInc { /*Empty class block*/ } -class EmptyBlockTestIncTrue -{ - public $field; -} -//#Info: MEQP1_CodeAnalysis_EmptyBlock -abstract class EmptyBlockTestIncAbstract { /*Empty class block*/ } -abstract class EmptyBlockTestIncTrueAbstract -{ - public $field; -} -//#Info: MEQP1_CodeAnalysis_EmptyBlock -function emptyBlock () { /*Empty function block*/ } -function emptyBlockT () { return true; } -//#Info: MEQP1_CodeAnalysis_EmptyBlock -interface EmptyBlockInterface { /*Empty interface block*/ } -interface EmptyBlockInterfaceTrue { - public function test(); -} -//#Info: MEQP1_CodeAnalysis_EmptyBlock -trait EmptyBlockTrait { /*Empty trait block*/ } -trait EmptyBlockTraitTrue { - function test() { - return true; - } -} diff --git a/docs/tests/Magento2_Functions_StaticFunction.php b/docs/tests/Magento2_Functions_StaticFunction.php deleted file mode 100644 index e7187375..00000000 --- a/docs/tests/Magento2_Functions_StaticFunction.php +++ /dev/null @@ -1,29 +0,0 @@ - \ No newline at end of file diff --git a/docs/tests/WordPress_Security_ValidatedSanitizedInput.php b/docs/tests/WordPress_Security_ValidatedSanitizedInput.php deleted file mode 100644 index a453b117..00000000 --- a/docs/tests/WordPress_Security_ValidatedSanitizedInput.php +++ /dev/null @@ -1,20 +0,0 @@ -