.. _ruleset-ce: CE ++ This ruleset is the Community Edition list. It holds all the analysis that are in the community edition version of Exakat. Total : 624 analysis * :ref:`adding-zero` * :ref:`array-index` * :ref:`multidimensional-arrays` * :ref:`multiple-index-definition` * :ref:`php-arrays-index` * :ref:`classes-names` * :ref:`constant-definition` * :ref:`magic-methods` * :ref:`forgotten-visibility` * :ref:`non-static-methods-called-in-a-static` * :ref:`old-style-constructor` * :ref:`static-methods` * :ref:`static-methods-called-from-object` * :ref:`static-properties` * :ref:`constants-with-strange-names` * :ref:`constants-usage` * :ref:`constants-names` * :ref:`magic-constant-usage` * :ref:`php-constant-usage` * :ref:`defined-exceptions` * :ref:`thrown-exceptions` * :ref:`ext-apc` * :ref:`ext-bcmath` * :ref:`ext-bzip2` * :ref:`ext-calendar` * :ref:`ext-crypto` * :ref:`ext-ctype` * :ref:`ext-curl` * :ref:`ext-date` * :ref:`ext-dba` * :ref:`ext-dom` * :ref:`ext-enchant` * :ref:`ext-exif` * :ref:`ext-fileinfo` * :ref:`ext-filter` * :ref:`ext-ftp` * :ref:`ext-gd` * :ref:`ext-gmp` * :ref:`ext-gnupgp` * :ref:`ext-hash` * :ref:`ext-iconv` * :ref:`ext-json` * :ref:`ext-ldap` * :ref:`ext-libxml` * :ref:`ext-mbstring` * :ref:`ext-mcrypt` * :ref:`ext-mongo` * :ref:`ext-mssql` * :ref:`ext-mysql` * :ref:`ext-mysqli` * :ref:`ext-odbc` * :ref:`ext-openssl` * :ref:`ext-pcre` * :ref:`ext-pdo` * :ref:`ext-pgsql` * :ref:`ext-phar` * :ref:`ext-posix` * :ref:`ext-readline` * :ref:`ext-reflection` * :ref:`ext-sem` * :ref:`ext-session` * :ref:`ext-shmop` * :ref:`ext-simplexml` * :ref:`ext-snmp` * :ref:`ext-soap` * :ref:`ext-sockets` * :ref:`ext-spl` * :ref:`ext-sqlite` * :ref:`ext-sqlite3` * :ref:`ext-ssh2` * :ref:`ext-standard` * :ref:`ext-tidy` * :ref:`ext-tokenizer` * :ref:`ext-wddx` * :ref:`ext-xdebug` * :ref:`ext-xmlreader` * :ref:`ext-xmlrpc` * :ref:`ext-xmlwriter` * :ref:`ext-xsl` * :ref:`ext-yaml` * :ref:`ext-zip` * :ref:`ext-zlib` * :ref:`closures-glossary` * :ref:`functions-glossary` * :ref:`recursive-functions` * :ref:`redeclared-php-functions` * :ref:`typehints` * :ref:`interfaces-names` * :ref:`aliases` * :ref:`namespaces-glossary` * :ref:`autoloading` * :ref:`goto-names` * :ref:`\_\_halt\_compiler` * :ref:`incompilable-files` * :ref:`labels` * :ref:`throw` * :ref:`trigger-errors` * :ref:`caught-expressions` * :ref:`error\_reporting()-with-integers` * :ref:`eval()-usage` * :ref:`exit()-usage` * :ref:`forgotten-whitespace` * :ref:`multiply-by-one` * :ref:`@-operator` * :ref:`not-not` * :ref:`include\_once()-usage` * :ref:`using-short-tags` * :ref:`strpos()-like-comparison` * :ref:`throws-an-assignement` * :ref:`var\_dump()...-usage` * :ref:`binary-glossary` * :ref:`email-addresses` * :ref:`heredoc-delimiter-glossary` * :ref:`hexadecimal-glossary` * :ref:`md5-strings` * :ref:`nowdoc-delimiter-glossary` * :ref:`octal-glossary` * :ref:`url-list` * :ref:`variable-references` * :ref:`static-variables` * :ref:`variables-with-long-names` * :ref:`variable-variables` * :ref:`abstract-class-usage` * :ref:`abstract-methods-usage` * :ref:`clone-usage` * :ref:`variable-constants` * :ref:`redefined-php-traits` * :ref:`traits-usage` * :ref:`trait-names` * :ref:`php-alternative-syntax` * :ref:`short-syntax-for-arrays` * :ref:`inclusions` * :ref:`ext-file` * :ref:`ext-array` * :ref:`ext-info` * :ref:`ext-math` * :ref:`$http\_raw\_post\_data-usage` * :ref:`useless-instructions` * :ref:`multiple-constant-definition` * :ref:`wrong-optional-parameter` * :ref:`use-===-null` * :ref:`assertions` * :ref:`one-variable-string` * :ref:`cast-usage` * :ref:`function-subscripting` * :ref:`nested-loops` * :ref:`php-echo-tag-usage` * :ref:`static-methods-can't-contain-$this` * :ref:`while(list()-=-each())` * :ref:`multiples-identical-case` * :ref:`switch-without-default` * :ref:`nested-ternary` * :ref:`undefined-constants` * :ref:`custom-constant-usage` * :ref:`ext-pcntl` * :ref:`ext-redis` * :ref:`is-an-extension-function` * :ref:`is-an-extension-interface` * :ref:`is-an-extension-constant` * :ref:`htmlentities-calls` * :ref:`defined-class-constants` * :ref:`undefined-class-constants` * :ref:`used-once-variables-(in-scope)` * :ref:`undefined-functions` * :ref:`deprecated-php-functions` * :ref:`dangling-array-references` * :ref:`ext-sqlsrv` * :ref:`native-alias-functions-usage` * :ref:`uses-default-values` * :ref:`wrong-number-of-arguments` * :ref:`ellipsis-usage` * :ref:`use-const` * :ref:`ext-0mq` * :ref:`ext-memcache` * :ref:`ext-memcached` * :ref:`is-extension-trait` * :ref:`dynamic-function-call` * :ref:`has-variable-arguments` * :ref:`multiple-catch` * :ref:`dynamically-called-classes` * :ref:`conditioned-function` * :ref:`method-is-a-generator` * :ref:`try-with-finally` * :ref:`dereferencing-string-and-arrays` * :ref:`list()-may-omit-variables` * :ref:`or-die` * :ref:`constant-scalar-expressions` * :ref:`exit-like-methods` * :ref:`must-return-methods` * :ref:`ext-imagick` * :ref:`ext-oci8` * :ref:`overwritten-exceptions` * :ref:`foreach-reference-is-not-modified` * :ref:`ext-imap` * :ref:`overwritten-class-constants` * :ref:`dynamic-class-constant` * :ref:`dynamic-methodcall` * :ref:`dynamic-new` * :ref:`dynamic-property` * :ref:`dynamic-classes` * :ref:`multiple-classes-in-one-file` * :ref:`file-uploads` * :ref:`ext-intl` * :ref:`dynamic-code` * :ref:`ext-pspell` * :ref:`no-direct-access` * :ref:`ext-opcache` * :ref:`is-php-constant` * :ref:`ext-expect` * :ref:`defined-properties` * :ref:`undefined-properties` * :ref:`has-magic-method` * :ref:`ext-gettext` * :ref:`strict-comparison-with-booleans` * :ref:`lone-blocks` * :ref:`super-global-usage` * :ref:`global-usage` * :ref:`logical-should-use-symbolic-operators` * :ref:`namespaces` * :ref:`deep-definitions` * :ref:`constant-class` * :ref:`file-is-not-definitions-only` * :ref:`repeated-print()` * :ref:`avoid-parenthesis-with-language-construct` * :ref:`objects-don't-need-references` * :ref:`no-real-comparison` * :ref:`usage-of-class\_alias()` * :ref:`ext-apache` * :ref:`ext-eaccelerator` * :ref:`ext-fpm` * :ref:`no-direct-call-to-magic-method` * :ref:`useless-final` * :ref:`use-constant-instead-of-function` * :ref:`resources-usage` * :ref:`useless-unset` * :ref:`no-array\_merge()-in-loops` * :ref:`useless-parenthesis` * :ref:`shell-usage` * :ref:`file-usage` * :ref:`mail-usage` * :ref:`dynamic-calls` * :ref:`use-php-object-api` * :ref:`altering-foreach-without-reference` * :ref:`test-class` * :ref:`use-pathinfo` * :ref:`ext-dio` * :ref:`no-parenthesis-for-language-construct` * :ref:`ext-phalcon` * :ref:`use-constant-as-arguments` * :ref:`implied-if` * :ref:`composer-usage` * :ref:`composer's-autoload` * :ref:`should-chain-exception` * :ref:`undefined-interfaces` * :ref:`ext-apcu` * :ref:`should-use-prepared-statement` * :ref:`print-and-die` * :ref:`unchecked-resources` * :ref:`ext-trader` * :ref:`ext-mailparse` * :ref:`ext-mail` * :ref:`else-if-versus-elseif` * :ref:`multiple-class-declarations` * :ref:`empty-namespace` * :ref:`could-use-short-assignation` * :ref:`scalar-typehint-usage` * :ref:`return-typehint-usage` * :ref:`ext-ob` * :ref:`pre-increment` * :ref:`ext-geoip` * :ref:`ext-event` * :ref:`ext-amqp` * :ref:`ext-gearman` * :ref:`ext-com` * :ref:`ext-gmagick` * :ref:`ext-ibase` * :ref:`ext-inotify` * :ref:`ext-xdiff` * :ref:`ext-ev` * :ref:`ext-php-ast` * :ref:`ext-xml` * :ref:`ext-xhprof` * :ref:`indices-are-int-or-string` * :ref:`should-typecast` * :ref:`else-usage` * :ref:`avoid-substr()-one` * :ref:`anonymous-classes` * :ref:`coalesce` * :ref:`directives-usage` * :ref:`useless-brackets` * :ref:`preg\_replace-with-option-e` * :ref:`eval()-without-try` * :ref:`is-not-class-family` * :ref:`global-in-global` * :ref:`ext-fann` * :ref:`use-web` * :ref:`use-cli` * :ref:`avoid-get\_class()` * :ref:`silently-cast-integer` * :ref:`error-messages` * :ref:`timestamp-difference` * :ref:`php7-relaxed-keyword` * :ref:`ext-pecl\_http` * :ref:`uses-environment` * :ref:`wrong-parameter-type` * :ref:`redefined-methods` * :ref:`redefined-class-constants` * :ref:`redefined-default` * :ref:`wrong-fopen()-mode` * :ref:`is-cli-script` * :ref:`php-bugfixes` * :ref:`negative-power` * :ref:`use-random\_int()` * :ref:`ternary-in-concat` * :ref:`ext-tokyotyrant` * :ref:`ext-v8js` * :ref:`yield-usage` * :ref:`yield-from-usage` * :ref:`pear-usage` * :ref:`undefined-trait` * :ref:`identical-conditions` * :ref:`unkown-regex-options` * :ref:`no-choice` * :ref:`logical-mistakes` * :ref:`ext-lua` * :ref:`same-conditions-in-condition` * :ref:`return-true-false` * :ref:`could-use-\_\_dir\_\_` * :ref:`should-use-coalesce` * :ref:`list-with-keys` * :ref:`if-with-same-conditions` * :ref:`ext-suhosin` * :ref:`throw-functioncall` * :ref:`can't-disable-function` * :ref:`functions-using-reference` * :ref:`use-instanceof` * :ref:`list-short-syntax` * :ref:`results-may-be-missing` * :ref:`use-nullable-type` * :ref:`always-positive-comparison` * :ref:`multiple-exceptions-catch()` * :ref:`empty-blocks` * :ref:`throw-in-destruct` * :ref:`use-system-tmp` * :ref:`hidden-use-expression` * :ref:`should-make-alias` * :ref:`multiple-identical-trait-or-interface` * :ref:`multiple-alias-definitions` * :ref:`failed-substr()-comparison` * :ref:`should-use-ternary-operator` * :ref:`drop-else-after-return` * :ref:`use-class-operator` * :ref:`ext-rar` * :ref:`don't-echo-error` * :ref:`useless-type-casting` * :ref:`no-isset()-with-empty()` * :ref:`useless-check` * :ref:`ext-nsapi` * :ref:`ext-newt` * :ref:`ext-ncurses` * :ref:`use-composer-lock` * :ref:`string` * :ref:`ext-mongodb` * :ref:`error\_log()-usage` * :ref:`sql-queries` * :ref:`ext-libsodium` * :ref:`multiple-alias-definitions-per-file` * :ref:`\_\_dir\_\_-then-slash` * :ref:`ext-ds` * :ref:`use-cookies` * :ref:`group-use-declaration` * :ref:`repeated-regex` * :ref:`no-class-in-global` * :ref:`could-use-str\_repeat()` * :ref:`strings-with-strange-space` * :ref:`no-empty-regex` * :ref:`ext-sphinx` * :ref:`try-with-multiple-catch` * :ref:`ext-grpc` * :ref:`use-browscap` * :ref:`use-debug` * :ref:`no-reference-on-left-side` * :ref:`psr-16-usage` * :ref:`psr-7-usage` * :ref:`psr-6-usage` * :ref:`psr-3-usage` * :ref:`psr-11-usage` * :ref:`psr-13-usage` * :ref:`ext-stats` * :ref:`dependency-injection` * :ref:`courier-anti-pattern` * :ref:`ext-gender` * :ref:`ext-judy` * :ref:`yii-usage` * :ref:`codeigniter-usage` * :ref:`laravel-usage` * :ref:`symfony-usage` * :ref:`wordpress-usage` * :ref:`ez-cms-usage` * :ref:`joomla-usage` * :ref:`non-breakable-space-in-names` * :ref:`multiple-functions-declarations` * :ref:`swoole` * :ref:`manipulates-nan` * :ref:`manipulates-inf` * :ref:`const-or-define` * :ref:`strict\_types-preference` * :ref:`declare-strict\_types-usage` * :ref:`encoding-usage` * :ref:`ticks-usage` * :ref:`assign-and-lettered-logical-operator-precedence` * :ref:`no-magic-method-with-array` * :ref:`ext-xattr` * :ref:`ext-rdkafka` * :ref:`ext-fam` * :ref:`ext-parle` * :ref:`regex-inventory` * :ref:`is-actually-zero` * :ref:`unconditional-break-in-loop` * :ref:`too-complex-expression` * :ref:`is-a-magic-property` * :ref:`next-month-trap` * :ref:`printf-number-of-arguments` * :ref:`drupal-usage` * :ref:`phalcon-usage` * :ref:`fuel-php-usage` * :ref:`argon2-usage` * :ref:`crypto-usage` * :ref:`type-array-index` * :ref:`incoming-variable-index-inventory` * :ref:`ext-vips` * :ref:`dl()-usage` * :ref:`environment-variables` * :ref:`invalid-regex` * :ref:`same-variable-foreach` * :ref:`ext-igbinary` * :ref:`identical-on-both-sides` * :ref:`no-reference-for-ternary` * :ref:`unused-inherited-variable-in-closure` * :ref:`fallback-function` * :ref:`ext-hrtime` * :ref:`ext-xxtea` * :ref:`ext-uopz` * :ref:`ext-varnish` * :ref:`ext-opencensus` * :ref:`ext-leveldb` * :ref:`ext-db2` * :ref:`don't-unset-properties` * :ref:`strtr-arguments` * :ref:`missing-parenthesis` * :ref:`callback-function-needs-return` * :ref:`ext-zookeeper` * :ref:`ext-cmark` * :ref:`strpos()-too-much` * :ref:`class-typed-references` * :ref:`check-json` * :ref:`ext-eio` * :ref:`undefined-class` * :ref:`ext-lzf` * :ref:`ext-msgpack` * :ref:`case-insensitive-constants` * :ref:`handle-arrays-with-callback` * :ref:`detect-current-class` * :ref:`trailing-comma-in-calls` * :ref:`undefined-variable` * :ref:`undefined-insteadof` * :ref:`can't-disable-class` * :ref:`ext-seaslog` * :ref:`wrong-access-style-to-property` * :ref:`invalid-pack-format` * :ref:`don't-read-and-write-in-one-expression` * :ref:`pack-format-inventory` * :ref:`printf-format-inventory` * :ref:`idn\_to\_ascii()-new-default` * :ref:`ext-decimal` * :ref:`ext-psr` * :ref:`should-yield-with-key` * :ref:`useless-method-alias` * :ref:`ext-sdl` * :ref:`ext-wasm` * :ref:`path-lists` * :ref:`possible-missing-subpattern` * :ref:`assign-and-compare` * :ref:`typed-property-usage` * :ref:`ext-weakref` * :ref:`ext-pcov` * :ref:`constant-dynamic-creation` * :ref:`php-8.0-removed-functions` * :ref:`php-8.0-removed-constants` * :ref:`an-oop-factory` * :ref:`type-must-be-returned` * :ref:`self-transforming-variables` * :ref:`check-on-\_\_call-usage` * :ref:`php-overridden-function` * :ref:`ext-svm` * :ref:`ext-ffi` * :ref:`ext-password` * :ref:`ext-zend\_monitor` * :ref:`ext-uuid` * :ref:`casting-ternary` * :ref:`concat-and-addition` * :ref:`new-functions-in-php-7.4` * :ref:`curl\_version()-has-no-argument` * :ref:`php-7.4-new-classes` * :ref:`new-constants-in-php-7.4` * :ref:`wrong-type-returned` * :ref:`methods-that-should-not-be-used` * :ref:`php-7.4-removed-functions` * :ref:`mb\_strrpos()-third-argument` * :ref:`array\_key\_exists()-works-on-arrays` * :ref:`reflection-export()-is-deprecated` * :ref:`unbinding-closures` * :ref:`numeric-literal-separator` * :ref:`class-without-parent` * :ref:`scalar-are-not-arrays` * :ref:`create-compact-variables` * :ref:`php-7.4-reserved-keyword` * :ref:`no-more-curly-arrays` * :ref:`overwritten-properties` * :ref:`overwritten-constant` * :ref:`create-magic-property` * :ref:`set-parent-definition` * :ref:`makes-class-constant-definition` * :ref:`follow-closure-definition` * :ref:`php-7.4-constant-deprecation` * :ref:`implode()-arguments-order` * :ref:`php-7.4-removed-directives` * :ref:`hash-algorithms-incompatible-with-php-7.4-` * :ref:`openssl\_random\_pseudo\_byte()-second-argument` * :ref:`strip\_tags()-skips-closed-tag` * :ref:`use-covariance` * :ref:`use-contravariance` * :ref:`set-array-class-definition` * :ref:`use-arrow-functions` * :ref:`environment-variable-usage` * :ref:`indentation-levels` * :ref:`spread-operator-for-array` * :ref:`nested-ternary-without-parenthesis` * :ref:`cyclomatic-complexity` * :ref:`should-use-explode-args` * :ref:`use-array\_slice()` * :ref:`coalesce-and-concat` * :ref:`interfaces-is-not-implemented` * :ref:`no-literal-for-reference` * :ref:`collect-literals` * :ref:`collect-parameter-counts` * :ref:`collect-local-variable-counts` * :ref:`dereferencing-levels` * :ref:`make-functioncall-with-reference` * :ref:`foreach()-favorite` * :ref:`can't-implement-traversable` * :ref:`is\_a()-with-string` * :ref:`mbstring-unknown-encoding` * :ref:`collect-mbstring-encodings` * :ref:`filter-to-add\_slashes()` * :ref:`mbstring-third-arg` * :ref:`typehinting-stats` * :ref:`typo-3-usage` * :ref:`concrete5-usage` * :ref:`immutable-signature` * :ref:`merge-if-then` * :ref:`wrong-type-with-call` * :ref:`shell-commands` * :ref:`inclusions` * :ref:`typehint-order` * :ref:`new-order` * :ref:`links-between-parameter-and-argument` * :ref:`collect-class-interface-counts` * :ref:`collect-class-depth` * :ref:`collect-class-children-count` * :ref:`not-equal-is-not-!==` * :ref:`constant-order` * :ref:`php-8.0-variable-syntax-tweaks` * :ref:`new-functions-in-php-8.0` * :ref:`php-8.0-only-typehints` * :ref:`union-typehint` * :ref:`wrong-typed-property-default` * :ref:`signature-trailing-comma` * :ref:`throw-was-an-expression` * :ref:`collect-property-counts` * :ref:`collect-method-counts` * :ref:`collect-class-constant-counts` * :ref:`could-be-string` * :ref:`could-be-boolean` * :ref:`could-be-array-typehint` * :ref:`could-be-cit` * :ref:`protocol-lists` * :ref:`type-could-be-integer` * :ref:`call-order` * :ref:`could-be-null` * :ref:`uses-php-8-match()` * :ref:`could-be-float` * :ref:`collect-parameter-names` * :ref:`wrong-type-for-native-php-function` * :ref:`fossilized-methods-list` * :ref:`collect-static-class-changes` * :ref:`use-php-attributes` * :ref:`use-nullsafe-operator` * :ref:`use-closure-trailing-comma` * :ref:`unknown-parameter-name` * :ref:`missing-some-returntype` * :ref:`collects-variables` * :ref:`collect-global-variables` * :ref:`collect-readability` * :ref:`collect-definitions-statistics` * :ref:`collect-class-traits-counts` * :ref:`collect-native-calls-per-expressions` * :ref:`function-with-dynamic-code` * :ref:`cast-unset-usage` * :ref:`$php\_errormsg-usage` * :ref:`mismatch-parameter-name` * :ref:`collect-files-dependencies` * :ref:`collect-atom-counts` * :ref:`collect-classes-dependencies` * :ref:`collect-php-structures` * :ref:`collect-use-counts` * :ref:`php-8.0-removed-directives` * :ref:`unsupported-types-with-operators` * :ref:`negative-start-index-in-array` * :ref:`nullable-with-constant` * :ref:`php-8.0-resources-turned-into-objects` * :ref:`php-80-named-parameter-variadic` * :ref:`final-private-methods` * :ref:`array\_map()-passes-by-value` Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | CE | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+