diff --git a/.gitignore b/.gitignore index 4007d77..abc478a 100755 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,6 @@ composer.phar /phpcs.xml /phpcs.xml.dist ###< squizlabs/php_codesniffer ### + +docs/description/ +docs/patterns.json \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index fe9624f..673987b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,21 +18,14 @@ 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,id=coursier-v2 \ - --mount=type=cache,target=/root/.sbt \ - --mount=type=cache,target=/root/.ivy2/cache \ +RUN --mount=type=cache,target=/root/.cache/coursier \ sbt nativeImage -FROM php:8.5-alpine +FROM php:8.5-cli WORKDIR /app @@ -41,11 +34,14 @@ 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 php85 - -# Configure PHP settings -RUN sed 's/.*short_open_tag.*=.*/short_open_tag=On/' /etc/php85/php.ini -i +# Update package manager and install necessary packages +RUN apt-get update && apt-get install -y --no-install-recommends \ + curl \ + git \ + unzip \ + zlib1g \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* # Install Composer and packages RUN curl -sS https://getcomposer.org/installer | php @@ -54,11 +50,12 @@ RUN php composer.phar global install # Cleanup and miscellaneous RUN rm -rf /tmp/* && \ - adduser -u 2004 -D docker + useradd -m -u 2004 docker # Copy codacy-codesniffer and docs COPY --chown=docker:docker --from=builder /app/target/native-image/codacy-codesniffer bin/codacy-codesniffer -COPY --chown=docker:docker --from=doc-generator /docs /docs +COPY --chown=docker:docker --from=doc-generator /docs/ /docs/ +COPY --chown=docker:docker --from=doc-generator app/docs/ /docs/ WORKDIR /src diff --git a/build.sbt b/build.sbt index b0092fb..02dcf6d 100755 --- a/build.sbt +++ b/build.sbt @@ -21,7 +21,6 @@ lazy val root = project "-H:+ReportExceptionStackTraces", "--no-fallback", "--no-server", - "--static", "-J-Xmx8G", "-J-XX:ActiveProcessorCount=8" ) diff --git a/docs/description/CakePHP_Classes_ReturnTypeHint.md b/docs/description/CakePHP_Classes_ReturnTypeHint.md deleted file mode 100644 index 367f6a0..0000000 --- a/docs/description/CakePHP_Classes_ReturnTypeHint.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Return Type Hint diff --git a/docs/description/CakePHP_Commenting_DocBlockAlignment.md b/docs/description/CakePHP_Commenting_DocBlockAlignment.md deleted file mode 100644 index f483580..0000000 --- a/docs/description/CakePHP_Commenting_DocBlockAlignment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Doc Block Alignment diff --git a/docs/description/CakePHP_Commenting_FunctionComment.md b/docs/description/CakePHP_Commenting_FunctionComment.md deleted file mode 100644 index 417bea8..0000000 --- a/docs/description/CakePHP_Commenting_FunctionComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Function Comment diff --git a/docs/description/CakePHP_Commenting_InheritDoc.md b/docs/description/CakePHP_Commenting_InheritDoc.md deleted file mode 100644 index dc1aca5..0000000 --- a/docs/description/CakePHP_Commenting_InheritDoc.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Inherit Doc diff --git a/docs/description/CakePHP_Commenting_TypeHint.md b/docs/description/CakePHP_Commenting_TypeHint.md deleted file mode 100644 index 630b20b..0000000 --- a/docs/description/CakePHP_Commenting_TypeHint.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Type Hint diff --git a/docs/description/CakePHP_ControlStructures_ControlStructures.md b/docs/description/CakePHP_ControlStructures_ControlStructures.md deleted file mode 100644 index c24d8b5..0000000 --- a/docs/description/CakePHP_ControlStructures_ControlStructures.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Control Structures diff --git a/docs/description/CakePHP_ControlStructures_ElseIfDeclaration.md b/docs/description/CakePHP_ControlStructures_ElseIfDeclaration.md deleted file mode 100644 index c32334d..0000000 --- a/docs/description/CakePHP_ControlStructures_ElseIfDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Else If Declaration diff --git a/docs/description/CakePHP_ControlStructures_WhileStructures.md b/docs/description/CakePHP_ControlStructures_WhileStructures.md deleted file mode 100644 index e3c1ae2..0000000 --- a/docs/description/CakePHP_ControlStructures_WhileStructures.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: While Structures diff --git a/docs/description/CakePHP_Formatting_BlankLineBeforeReturn.md b/docs/description/CakePHP_Formatting_BlankLineBeforeReturn.md deleted file mode 100644 index 97748ca..0000000 --- a/docs/description/CakePHP_Formatting_BlankLineBeforeReturn.md +++ /dev/null @@ -1 +0,0 @@ -Formatting: Blank Line Before Return diff --git a/docs/description/CakePHP_NamingConventions_ValidFunctionName.md b/docs/description/CakePHP_NamingConventions_ValidFunctionName.md deleted file mode 100644 index 1992027..0000000 --- a/docs/description/CakePHP_NamingConventions_ValidFunctionName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Function Name diff --git a/docs/description/CakePHP_NamingConventions_ValidTraitName.md b/docs/description/CakePHP_NamingConventions_ValidTraitName.md deleted file mode 100644 index c38068d..0000000 --- a/docs/description/CakePHP_NamingConventions_ValidTraitName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Trait Name diff --git a/docs/description/CakePHP_PHP_DisallowShortOpenTag.md b/docs/description/CakePHP_PHP_DisallowShortOpenTag.md deleted file mode 100644 index 3149063..0000000 --- a/docs/description/CakePHP_PHP_DisallowShortOpenTag.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Disallow Short Open Tag diff --git a/docs/description/CakePHP_PHP_SingleQuote.md b/docs/description/CakePHP_PHP_SingleQuote.md deleted file mode 100644 index e2b9575..0000000 --- a/docs/description/CakePHP_PHP_SingleQuote.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Single Quote diff --git a/docs/description/CakePHP_WhiteSpace_EmptyLines.md b/docs/description/CakePHP_WhiteSpace_EmptyLines.md deleted file mode 100644 index 903704f..0000000 --- a/docs/description/CakePHP_WhiteSpace_EmptyLines.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Empty Lines diff --git a/docs/description/CakePHP_WhiteSpace_FunctionCallSpacing.md b/docs/description/CakePHP_WhiteSpace_FunctionCallSpacing.md deleted file mode 100644 index 8e56a38..0000000 --- a/docs/description/CakePHP_WhiteSpace_FunctionCallSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Function Call Spacing diff --git a/docs/description/CakePHP_WhiteSpace_FunctionClosingBraceSpace.md b/docs/description/CakePHP_WhiteSpace_FunctionClosingBraceSpace.md deleted file mode 100644 index 0e9f012..0000000 --- a/docs/description/CakePHP_WhiteSpace_FunctionClosingBraceSpace.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Function Closing Brace Space diff --git a/docs/description/CakePHP_WhiteSpace_FunctionOpeningBraceSpace.md b/docs/description/CakePHP_WhiteSpace_FunctionOpeningBraceSpace.md deleted file mode 100644 index 5c77ff8..0000000 --- a/docs/description/CakePHP_WhiteSpace_FunctionOpeningBraceSpace.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Function Opening Brace Space diff --git a/docs/description/CakePHP_WhiteSpace_FunctionSpacing.md b/docs/description/CakePHP_WhiteSpace_FunctionSpacing.md deleted file mode 100644 index 7751da1..0000000 --- a/docs/description/CakePHP_WhiteSpace_FunctionSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Function Spacing diff --git a/docs/description/CakePHP_WhiteSpace_TabAndSpace.md b/docs/description/CakePHP_WhiteSpace_TabAndSpace.md deleted file mode 100644 index 93a7bc2..0000000 --- a/docs/description/CakePHP_WhiteSpace_TabAndSpace.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Tab And Space diff --git a/docs/description/Drupal_Arrays_Array.md b/docs/description/Drupal_Arrays_Array.md deleted file mode 100644 index 95241a4..0000000 --- a/docs/description/Drupal_Arrays_Array.md +++ /dev/null @@ -1 +0,0 @@ -Arrays: Array diff --git a/docs/description/Drupal_Attributes_ValidHookName.md b/docs/description/Drupal_Attributes_ValidHookName.md deleted file mode 100644 index 4196e5b..0000000 --- a/docs/description/Drupal_Attributes_ValidHookName.md +++ /dev/null @@ -1 +0,0 @@ -Attributes: Valid Hook Name diff --git a/docs/description/Drupal_Classes_ClassDeclaration.md b/docs/description/Drupal_Classes_ClassDeclaration.md deleted file mode 100644 index 8f7a6a7..0000000 --- a/docs/description/Drupal_Classes_ClassDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Class Declaration diff --git a/docs/description/Drupal_Classes_FullyQualifiedNamespace.md b/docs/description/Drupal_Classes_FullyQualifiedNamespace.md deleted file mode 100644 index e184a30..0000000 --- a/docs/description/Drupal_Classes_FullyQualifiedNamespace.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Fully Qualified Namespace diff --git a/docs/description/Drupal_Classes_PropertyDeclaration.md b/docs/description/Drupal_Classes_PropertyDeclaration.md deleted file mode 100644 index a790918..0000000 --- a/docs/description/Drupal_Classes_PropertyDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Property Declaration diff --git a/docs/description/Drupal_Classes_UseGlobalClass.md b/docs/description/Drupal_Classes_UseGlobalClass.md deleted file mode 100644 index 56545f8..0000000 --- a/docs/description/Drupal_Classes_UseGlobalClass.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Use Global Class diff --git a/docs/description/Drupal_Commenting_ClassComment.md b/docs/description/Drupal_Commenting_ClassComment.md deleted file mode 100644 index 1fecb5c..0000000 --- a/docs/description/Drupal_Commenting_ClassComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Class Comment diff --git a/docs/description/Drupal_Commenting_Deprecated.md b/docs/description/Drupal_Commenting_Deprecated.md deleted file mode 100644 index 9f0ac88..0000000 --- a/docs/description/Drupal_Commenting_Deprecated.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Deprecated diff --git a/docs/description/Drupal_Commenting_DocComment.md b/docs/description/Drupal_Commenting_DocComment.md deleted file mode 100644 index ca525e6..0000000 --- a/docs/description/Drupal_Commenting_DocComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Doc Comment diff --git a/docs/description/Drupal_Commenting_DocCommentAlignment.md b/docs/description/Drupal_Commenting_DocCommentAlignment.md deleted file mode 100644 index 782c34f..0000000 --- a/docs/description/Drupal_Commenting_DocCommentAlignment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Doc Comment Alignment diff --git a/docs/description/Drupal_Commenting_DocCommentLongArraySyntax.md b/docs/description/Drupal_Commenting_DocCommentLongArraySyntax.md deleted file mode 100644 index fe72493..0000000 --- a/docs/description/Drupal_Commenting_DocCommentLongArraySyntax.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Doc Comment Long Array Syntax diff --git a/docs/description/Drupal_Commenting_DocCommentStar.md b/docs/description/Drupal_Commenting_DocCommentStar.md deleted file mode 100644 index c11f227..0000000 --- a/docs/description/Drupal_Commenting_DocCommentStar.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Doc Comment Star diff --git a/docs/description/Drupal_Commenting_FileComment.md b/docs/description/Drupal_Commenting_FileComment.md deleted file mode 100644 index b1b232d..0000000 --- a/docs/description/Drupal_Commenting_FileComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: File Comment diff --git a/docs/description/Drupal_Commenting_FunctionComment.md b/docs/description/Drupal_Commenting_FunctionComment.md deleted file mode 100644 index 417bea8..0000000 --- a/docs/description/Drupal_Commenting_FunctionComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Function Comment diff --git a/docs/description/Drupal_Commenting_GenderNeutralComment.md b/docs/description/Drupal_Commenting_GenderNeutralComment.md deleted file mode 100644 index 8a8b3b8..0000000 --- a/docs/description/Drupal_Commenting_GenderNeutralComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Gender Neutral Comment diff --git a/docs/description/Drupal_Commenting_HookComment.md b/docs/description/Drupal_Commenting_HookComment.md deleted file mode 100644 index f888568..0000000 --- a/docs/description/Drupal_Commenting_HookComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Hook Comment diff --git a/docs/description/Drupal_Commenting_InlineComment.md b/docs/description/Drupal_Commenting_InlineComment.md deleted file mode 100644 index ce8821d..0000000 --- a/docs/description/Drupal_Commenting_InlineComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Inline Comment diff --git a/docs/description/Drupal_Commenting_InlineVariableComment.md b/docs/description/Drupal_Commenting_InlineVariableComment.md deleted file mode 100644 index 78ae7a8..0000000 --- a/docs/description/Drupal_Commenting_InlineVariableComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Inline Variable Comment diff --git a/docs/description/Drupal_Commenting_PostStatementComment.md b/docs/description/Drupal_Commenting_PostStatementComment.md deleted file mode 100644 index 4dd8434..0000000 --- a/docs/description/Drupal_Commenting_PostStatementComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Post Statement Comment diff --git a/docs/description/Drupal_Commenting_TodoComment.md b/docs/description/Drupal_Commenting_TodoComment.md deleted file mode 100644 index f4bcd65..0000000 --- a/docs/description/Drupal_Commenting_TodoComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Todo Comment diff --git a/docs/description/Drupal_Commenting_VariableComment.md b/docs/description/Drupal_Commenting_VariableComment.md deleted file mode 100644 index ee1ec02..0000000 --- a/docs/description/Drupal_Commenting_VariableComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Variable Comment diff --git a/docs/description/Drupal_ControlStructures_ControlSignature.md b/docs/description/Drupal_ControlStructures_ControlSignature.md deleted file mode 100644 index 7cd0e4a..0000000 --- a/docs/description/Drupal_ControlStructures_ControlSignature.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Control Signature diff --git a/docs/description/Drupal_Files_EndFileNewline.md b/docs/description/Drupal_Files_EndFileNewline.md deleted file mode 100644 index 52bb797..0000000 --- a/docs/description/Drupal_Files_EndFileNewline.md +++ /dev/null @@ -1 +0,0 @@ -Files: End File Newline diff --git a/docs/description/Drupal_Files_FileEncoding.md b/docs/description/Drupal_Files_FileEncoding.md deleted file mode 100644 index 5d99e9d..0000000 --- a/docs/description/Drupal_Files_FileEncoding.md +++ /dev/null @@ -1 +0,0 @@ -Files: File Encoding diff --git a/docs/description/Drupal_Files_LineLength.md b/docs/description/Drupal_Files_LineLength.md deleted file mode 100644 index 288f508..0000000 --- a/docs/description/Drupal_Files_LineLength.md +++ /dev/null @@ -1 +0,0 @@ -Files: Line Length diff --git a/docs/description/Drupal_Files_TxtFileLineLength.md b/docs/description/Drupal_Files_TxtFileLineLength.md deleted file mode 100644 index bdc36aa..0000000 --- a/docs/description/Drupal_Files_TxtFileLineLength.md +++ /dev/null @@ -1 +0,0 @@ -Files: Txt File Line Length diff --git a/docs/description/Drupal_Formatting_MultiLineAssignment.md b/docs/description/Drupal_Formatting_MultiLineAssignment.md deleted file mode 100644 index df98d98..0000000 --- a/docs/description/Drupal_Formatting_MultiLineAssignment.md +++ /dev/null @@ -1 +0,0 @@ -Formatting: Multi Line Assignment diff --git a/docs/description/Drupal_Formatting_MultipleStatementAlignment.md b/docs/description/Drupal_Formatting_MultipleStatementAlignment.md deleted file mode 100644 index efe20e5..0000000 --- a/docs/description/Drupal_Formatting_MultipleStatementAlignment.md +++ /dev/null @@ -1 +0,0 @@ -Formatting: Multiple Statement Alignment diff --git a/docs/description/Drupal_Formatting_SpaceInlineIf.md b/docs/description/Drupal_Formatting_SpaceInlineIf.md deleted file mode 100644 index 04037fe..0000000 --- a/docs/description/Drupal_Formatting_SpaceInlineIf.md +++ /dev/null @@ -1 +0,0 @@ -Formatting: Space Inline If diff --git a/docs/description/Drupal_Formatting_SpaceUnaryOperator.md b/docs/description/Drupal_Formatting_SpaceUnaryOperator.md deleted file mode 100644 index 688a379..0000000 --- a/docs/description/Drupal_Formatting_SpaceUnaryOperator.md +++ /dev/null @@ -1 +0,0 @@ -Formatting: Space Unary Operator diff --git a/docs/description/Drupal_Functions_DiscouragedFunctions.md b/docs/description/Drupal_Functions_DiscouragedFunctions.md deleted file mode 100644 index be4fa1a..0000000 --- a/docs/description/Drupal_Functions_DiscouragedFunctions.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Discouraged Functions diff --git a/docs/description/Drupal_Functions_MultiLineFunctionDeclaration.md b/docs/description/Drupal_Functions_MultiLineFunctionDeclaration.md deleted file mode 100644 index 878af27..0000000 --- a/docs/description/Drupal_Functions_MultiLineFunctionDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Multi Line Function Declaration diff --git a/docs/description/Drupal_InfoFiles_AutoAddedKeys.md b/docs/description/Drupal_InfoFiles_AutoAddedKeys.md deleted file mode 100644 index 21c3974..0000000 --- a/docs/description/Drupal_InfoFiles_AutoAddedKeys.md +++ /dev/null @@ -1 +0,0 @@ -Info Files: Auto Added Keys diff --git a/docs/description/Drupal_InfoFiles_ClassFiles.md b/docs/description/Drupal_InfoFiles_ClassFiles.md deleted file mode 100644 index 74d6656..0000000 --- a/docs/description/Drupal_InfoFiles_ClassFiles.md +++ /dev/null @@ -1 +0,0 @@ -Info Files: Class Files diff --git a/docs/description/Drupal_InfoFiles_DependenciesArray.md b/docs/description/Drupal_InfoFiles_DependenciesArray.md deleted file mode 100644 index cd292a5..0000000 --- a/docs/description/Drupal_InfoFiles_DependenciesArray.md +++ /dev/null @@ -1 +0,0 @@ -Info Files: Dependencies Array diff --git a/docs/description/Drupal_InfoFiles_DuplicateEntry.md b/docs/description/Drupal_InfoFiles_DuplicateEntry.md deleted file mode 100644 index cd80c4e..0000000 --- a/docs/description/Drupal_InfoFiles_DuplicateEntry.md +++ /dev/null @@ -1 +0,0 @@ -Info Files: Duplicate Entry diff --git a/docs/description/Drupal_InfoFiles_Required.md b/docs/description/Drupal_InfoFiles_Required.md deleted file mode 100644 index 09807f8..0000000 --- a/docs/description/Drupal_InfoFiles_Required.md +++ /dev/null @@ -1 +0,0 @@ -Info Files: Required diff --git a/docs/description/Drupal_NamingConventions_ValidClassName.md b/docs/description/Drupal_NamingConventions_ValidClassName.md deleted file mode 100644 index 7e2b1e8..0000000 --- a/docs/description/Drupal_NamingConventions_ValidClassName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Class Name diff --git a/docs/description/Drupal_NamingConventions_ValidEnumCase.md b/docs/description/Drupal_NamingConventions_ValidEnumCase.md deleted file mode 100644 index 5a457fb..0000000 --- a/docs/description/Drupal_NamingConventions_ValidEnumCase.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Enum Case diff --git a/docs/description/Drupal_NamingConventions_ValidFunctionName.md b/docs/description/Drupal_NamingConventions_ValidFunctionName.md deleted file mode 100644 index 1992027..0000000 --- a/docs/description/Drupal_NamingConventions_ValidFunctionName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Function Name diff --git a/docs/description/Drupal_NamingConventions_ValidGlobal.md b/docs/description/Drupal_NamingConventions_ValidGlobal.md deleted file mode 100644 index abe4e7c..0000000 --- a/docs/description/Drupal_NamingConventions_ValidGlobal.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Global diff --git a/docs/description/Drupal_NamingConventions_ValidVariableName.md b/docs/description/Drupal_NamingConventions_ValidVariableName.md deleted file mode 100644 index a1a934c..0000000 --- a/docs/description/Drupal_NamingConventions_ValidVariableName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Variable Name diff --git a/docs/description/Drupal_Scope_MethodScope.md b/docs/description/Drupal_Scope_MethodScope.md deleted file mode 100644 index 3df2d58..0000000 --- a/docs/description/Drupal_Scope_MethodScope.md +++ /dev/null @@ -1 +0,0 @@ -Scope: Method Scope diff --git a/docs/description/Drupal_Semantics_ConstantName.md b/docs/description/Drupal_Semantics_ConstantName.md deleted file mode 100644 index 45be462..0000000 --- a/docs/description/Drupal_Semantics_ConstantName.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: Constant Name diff --git a/docs/description/Drupal_Semantics_EmptyInstall.md b/docs/description/Drupal_Semantics_EmptyInstall.md deleted file mode 100644 index 6b7b4a2..0000000 --- a/docs/description/Drupal_Semantics_EmptyInstall.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: Empty Install diff --git a/docs/description/Drupal_Semantics_FunctionAlias.md b/docs/description/Drupal_Semantics_FunctionAlias.md deleted file mode 100644 index f6a4991..0000000 --- a/docs/description/Drupal_Semantics_FunctionAlias.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: Function Alias diff --git a/docs/description/Drupal_Semantics_FunctionT.md b/docs/description/Drupal_Semantics_FunctionT.md deleted file mode 100644 index c6f9669..0000000 --- a/docs/description/Drupal_Semantics_FunctionT.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: Function T diff --git a/docs/description/Drupal_Semantics_FunctionTriggerError.md b/docs/description/Drupal_Semantics_FunctionTriggerError.md deleted file mode 100644 index baa0d31..0000000 --- a/docs/description/Drupal_Semantics_FunctionTriggerError.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: Function Trigger Error diff --git a/docs/description/Drupal_Semantics_FunctionWatchdog.md b/docs/description/Drupal_Semantics_FunctionWatchdog.md deleted file mode 100644 index d7bbfe3..0000000 --- a/docs/description/Drupal_Semantics_FunctionWatchdog.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: Function Watchdog diff --git a/docs/description/Drupal_Semantics_InstallHooks.md b/docs/description/Drupal_Semantics_InstallHooks.md deleted file mode 100644 index efc3fee..0000000 --- a/docs/description/Drupal_Semantics_InstallHooks.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: Install Hooks diff --git a/docs/description/Drupal_Semantics_LStringTranslatable.md b/docs/description/Drupal_Semantics_LStringTranslatable.md deleted file mode 100644 index e647fe6..0000000 --- a/docs/description/Drupal_Semantics_LStringTranslatable.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: L String Translatable diff --git a/docs/description/Drupal_Semantics_PregSecurity.md b/docs/description/Drupal_Semantics_PregSecurity.md deleted file mode 100644 index e6b9382..0000000 --- a/docs/description/Drupal_Semantics_PregSecurity.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: Preg Security diff --git a/docs/description/Drupal_Semantics_RemoteAddress.md b/docs/description/Drupal_Semantics_RemoteAddress.md deleted file mode 100644 index 167733f..0000000 --- a/docs/description/Drupal_Semantics_RemoteAddress.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: Remote Address diff --git a/docs/description/Drupal_Semantics_TInHookMenu.md b/docs/description/Drupal_Semantics_TInHookMenu.md deleted file mode 100644 index 9ecec92..0000000 --- a/docs/description/Drupal_Semantics_TInHookMenu.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: T In Hook Menu diff --git a/docs/description/Drupal_Semantics_TInHookSchema.md b/docs/description/Drupal_Semantics_TInHookSchema.md deleted file mode 100644 index da23426..0000000 --- a/docs/description/Drupal_Semantics_TInHookSchema.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: T In Hook Schema diff --git a/docs/description/Drupal_Semantics_UnsilencedDeprecation.md b/docs/description/Drupal_Semantics_UnsilencedDeprecation.md deleted file mode 100644 index 202e24d..0000000 --- a/docs/description/Drupal_Semantics_UnsilencedDeprecation.md +++ /dev/null @@ -1 +0,0 @@ -Semantics: Unsilenced Deprecation diff --git a/docs/description/Drupal_WhiteSpace_CloseBracketSpacing.md b/docs/description/Drupal_WhiteSpace_CloseBracketSpacing.md deleted file mode 100644 index dee86a1..0000000 --- a/docs/description/Drupal_WhiteSpace_CloseBracketSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Close Bracket Spacing diff --git a/docs/description/Drupal_WhiteSpace_Comma.md b/docs/description/Drupal_WhiteSpace_Comma.md deleted file mode 100644 index fbc45e3..0000000 --- a/docs/description/Drupal_WhiteSpace_Comma.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Comma diff --git a/docs/description/Drupal_WhiteSpace_EmptyLines.md b/docs/description/Drupal_WhiteSpace_EmptyLines.md deleted file mode 100644 index 903704f..0000000 --- a/docs/description/Drupal_WhiteSpace_EmptyLines.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Empty Lines diff --git a/docs/description/Drupal_WhiteSpace_ObjectOperatorIndent.md b/docs/description/Drupal_WhiteSpace_ObjectOperatorIndent.md deleted file mode 100644 index dd80d50..0000000 --- a/docs/description/Drupal_WhiteSpace_ObjectOperatorIndent.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Object Operator Indent diff --git a/docs/description/Drupal_WhiteSpace_ObjectOperatorSpacing.md b/docs/description/Drupal_WhiteSpace_ObjectOperatorSpacing.md deleted file mode 100644 index 8a6091a..0000000 --- a/docs/description/Drupal_WhiteSpace_ObjectOperatorSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Object Operator Spacing diff --git a/docs/description/Drupal_WhiteSpace_OpenBracketSpacing.md b/docs/description/Drupal_WhiteSpace_OpenBracketSpacing.md deleted file mode 100644 index 287e9f9..0000000 --- a/docs/description/Drupal_WhiteSpace_OpenBracketSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Open Bracket Spacing diff --git a/docs/description/Drupal_WhiteSpace_OpenTagNewline.md b/docs/description/Drupal_WhiteSpace_OpenTagNewline.md deleted file mode 100644 index 1441e25..0000000 --- a/docs/description/Drupal_WhiteSpace_OpenTagNewline.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Open Tag Newline diff --git a/docs/description/Drupal_WhiteSpace_ScopeClosingBrace.md b/docs/description/Drupal_WhiteSpace_ScopeClosingBrace.md deleted file mode 100644 index b09cbb7..0000000 --- a/docs/description/Drupal_WhiteSpace_ScopeClosingBrace.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Scope Closing Brace diff --git a/docs/description/Drupal_WhiteSpace_ScopeIndent.md b/docs/description/Drupal_WhiteSpace_ScopeIndent.md deleted file mode 100644 index 610d3a2..0000000 --- a/docs/description/Drupal_WhiteSpace_ScopeIndent.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Scope Indent diff --git a/docs/description/Generic_Arrays_ArrayIndent.md b/docs/description/Generic_Arrays_ArrayIndent.md deleted file mode 100644 index 7059854..0000000 --- a/docs/description/Generic_Arrays_ArrayIndent.md +++ /dev/null @@ -1,77 +0,0 @@ -The opening brace of a multi-line array must be indented at least to the same level as the start of the statement. - -Valid: Opening brace of a multi-line array indented to the same level as the start of the statement. -``` -$b = [ - 1, - 2, -]; - -if ($condition) { - $a = - [ - 1, - 2, - ]; -} -``` - -Invalid: Opening brace of a multi-line array not indented to the same level as the start of the statement. -``` -if ($condition) { - $a = -[ - 1, - 2, - ]; -} -``` - -Valid: Each array element is indented by exactly four spaces. -``` -$a = array( - 1, - 2, - 3, -); -``` - -Invalid: Array elements not indented by four spaces. -``` -$a = array( - 1, - 2, - 3, -); -``` - -Valid: Array closing brace on its own line. -``` -$a = [ - 1, - 2, -]; -``` - -Invalid: Array closing brace not on its own line. -``` -$a = [ - 1, - 2,]; -``` - -Valid: Closing brace aligned with the start of the statement containing the array opener. -``` -$a = array( - 1, - 2, -); -``` - -Invalid: Closing brace not aligned with the start of the statement containing the array opener. -``` -$a = array( - 1, - 2, - ); -``` diff --git a/docs/description/Generic_Arrays_DisallowLongArraySyntax.md b/docs/description/Generic_Arrays_DisallowLongArraySyntax.md deleted file mode 100644 index 40c892b..0000000 --- a/docs/description/Generic_Arrays_DisallowLongArraySyntax.md +++ /dev/null @@ -1,15 +0,0 @@ -Short array syntax must be used to define arrays. - -Valid: Short form of array. -``` -$arr = [ - 'foo' => 'bar', -]; -``` - -Invalid: Long form of array. -``` -$arr = array( - 'foo' => 'bar', -); -``` diff --git a/docs/description/Generic_Arrays_DisallowShortArraySyntax.md b/docs/description/Generic_Arrays_DisallowShortArraySyntax.md deleted file mode 100644 index 1a867a1..0000000 --- a/docs/description/Generic_Arrays_DisallowShortArraySyntax.md +++ /dev/null @@ -1,15 +0,0 @@ -Long array syntax must be used to define arrays. - -Valid: Long form of array. -``` -$arr = array( - 'foo' => 'bar', -); -``` - -Invalid: Short form of array. -``` -$arr = [ - 'foo' => 'bar', -]; -``` diff --git a/docs/description/Generic_Classes_DuplicateClassName.md b/docs/description/Generic_Classes_DuplicateClassName.md deleted file mode 100644 index df91642..0000000 --- a/docs/description/Generic_Classes_DuplicateClassName.md +++ /dev/null @@ -1,19 +0,0 @@ -Class and Interface names should be unique in a project. They should never be duplicated. - -Valid: A unique class name. -``` -class Foo -{ -} -``` - -Invalid: A class duplicated (including across multiple files). -``` -class Foo -{ -} - -class Foo -{ -} -``` diff --git a/docs/description/Generic_Classes_OpeningBraceSameLine.md b/docs/description/Generic_Classes_OpeningBraceSameLine.md deleted file mode 100644 index fa58fae..0000000 --- a/docs/description/Generic_Classes_OpeningBraceSameLine.md +++ /dev/null @@ -1,26 +0,0 @@ -The opening brace of a class must be on the same line after the definition and must be the last thing on that line. - -Valid: Opening brace on the same line. -``` -class Foo { -} -``` - -Invalid: Opening brace on the next line. -``` -class Foo -{ -} -``` - -Valid: Opening brace is the last thing on the line. -``` -class Foo { -} -``` - -Invalid: Opening brace not last thing on the line. -``` -class Foo { // Start of class. -} -``` diff --git a/docs/description/Generic_CodeAnalysis_AssignmentInCondition.md b/docs/description/Generic_CodeAnalysis_AssignmentInCondition.md deleted file mode 100644 index 7cd82a6..0000000 --- a/docs/description/Generic_CodeAnalysis_AssignmentInCondition.md +++ /dev/null @@ -1,15 +0,0 @@ -Variable assignments should not be made within conditions. - -Valid: A variable comparison being executed within a condition. -``` -if ($test === 'abc') { - // Code. -} -``` - -Invalid: A variable assignment being made within a condition. -``` -if ($test = 'abc') { - // Code. -} -``` diff --git a/docs/description/Generic_CodeAnalysis_EmptyPHPStatement.md b/docs/description/Generic_CodeAnalysis_EmptyPHPStatement.md deleted file mode 100644 index 91c6f31..0000000 --- a/docs/description/Generic_CodeAnalysis_EmptyPHPStatement.md +++ /dev/null @@ -1,29 +0,0 @@ -Empty PHP tags are not allowed. - -Valid: There is at least one statement inside the PHP tag pair. -``` - - -``` - -Invalid: There is no statement inside the PHP tag pair. -``` - - -``` - -Valid: There is no superfluous semicolon after a PHP statement. -``` -function_call(); -if (true) { - echo 'Hello World'; -} -``` - -Invalid: There are one or more superfluous semicolons after a PHP statement. -``` -function_call();;; -if (true) { - echo 'Hello World'; -}; -``` diff --git a/docs/description/Generic_CodeAnalysis_EmptyStatement.md b/docs/description/Generic_CodeAnalysis_EmptyStatement.md deleted file mode 100644 index 30cd62d..0000000 --- a/docs/description/Generic_CodeAnalysis_EmptyStatement.md +++ /dev/null @@ -1,15 +0,0 @@ -Control Structures must have at least one statement inside of the body. - -Valid: There is a statement inside the control structure. -``` -if ($test) { - $var = 1; -} -``` - -Invalid: The control structure has no statements. -``` -if ($test) { - // do nothing -} -``` diff --git a/docs/description/Generic_CodeAnalysis_ForLoopShouldBeWhileLoop.md b/docs/description/Generic_CodeAnalysis_ForLoopShouldBeWhileLoop.md deleted file mode 100644 index 7d01216..0000000 --- a/docs/description/Generic_CodeAnalysis_ForLoopShouldBeWhileLoop.md +++ /dev/null @@ -1,15 +0,0 @@ -For loops that have only a second expression (the condition) should be converted to while loops. - -Valid: A for loop is used with all three expressions. -``` -for ($i = 0; $i < 10; $i++) { - echo "{$i}\n"; -} -``` - -Invalid: A for loop is used without a first or third expression. -``` -for (;$test;) { - $test = doSomething(); -} -``` diff --git a/docs/description/Generic_CodeAnalysis_ForLoopWithTestFunctionCall.md b/docs/description/Generic_CodeAnalysis_ForLoopWithTestFunctionCall.md deleted file mode 100644 index 622e455..0000000 --- a/docs/description/Generic_CodeAnalysis_ForLoopWithTestFunctionCall.md +++ /dev/null @@ -1,16 +0,0 @@ -For loops should not call functions inside the test for the loop when they can be computed beforehand. - -Valid: A for loop that determines its end condition before the loop starts. -``` -$end = count($foo); -for ($i = 0; $i < $end; $i++) { - echo $foo[$i]."\n"; -} -``` - -Invalid: A for loop that unnecessarily computes the same value on every iteration. -``` -for ($i = 0; $i < count($foo); $i++) { - echo $foo[$i]."\n"; -} -``` diff --git a/docs/description/Generic_CodeAnalysis_JumbledIncrementer.md b/docs/description/Generic_CodeAnalysis_JumbledIncrementer.md deleted file mode 100644 index 6325520..0000000 --- a/docs/description/Generic_CodeAnalysis_JumbledIncrementer.md +++ /dev/null @@ -1,17 +0,0 @@ -Incrementers in nested loops should use different variable names. - -Valid: Two different variables being used to increment. -``` -for ($i = 0; $i < 10; $i++) { - for ($j = 0; $j < 10; $j++) { - } -} -``` - -Invalid: Inner incrementer is the same variable name as the outer one. -``` -for ($i = 0; $i < 10; $i++) { - for ($j = 0; $j < 10; $i++) { - } -} -``` diff --git a/docs/description/Generic_CodeAnalysis_RequireExplicitBooleanOperatorPrecedence.md b/docs/description/Generic_CodeAnalysis_RequireExplicitBooleanOperatorPrecedence.md deleted file mode 100644 index b0db94e..0000000 --- a/docs/description/Generic_CodeAnalysis_RequireExplicitBooleanOperatorPrecedence.md +++ /dev/null @@ -1,35 +0,0 @@ -Forbids mixing different binary boolean operators (&&, ||, and, or, xor) within a single expression without making precedence clear using parentheses. - -Valid: Making precedence clear with parentheses. -``` -$one = false; -$two = false; -$three = true; - -$result = ($one && $two) || $three; -$result2 = $one && ($two || $three); -$result3 = ($one && !$two) xor $three; -$result4 = $one && (!$two xor $three); - -if ( - ($result && !$result3) -| (!$result && $result3) -) {} -``` - -Invalid: Not using parentheses. -``` -$one = false; -$two = false; -$three = true; - -$result = $one && $two || $three; - -$result3 = $one && !$two xor $three; - - -if ( - $result && !$result3 -| !$result && $result3 -) {} -``` diff --git a/docs/description/Generic_CodeAnalysis_UnconditionalIfStatement.md b/docs/description/Generic_CodeAnalysis_UnconditionalIfStatement.md deleted file mode 100644 index f967846..0000000 --- a/docs/description/Generic_CodeAnalysis_UnconditionalIfStatement.md +++ /dev/null @@ -1,29 +0,0 @@ -If statements that are always evaluated should not be used. - -Valid: An if statement that only executes conditionally. -``` -if ($test) { - $var = 1; -} -``` - -Invalid: An if statement that is always performed. -``` -if (true) { - $var = 1; -} -``` - -Valid: An if statement that only executes conditionally. -``` -if ($test) { - $var = 1; -} -``` - -Invalid: An if statement that is never performed. -``` -if (false) { - $var = 1; -} -``` diff --git a/docs/description/Generic_CodeAnalysis_UnnecessaryFinalModifier.md b/docs/description/Generic_CodeAnalysis_UnnecessaryFinalModifier.md deleted file mode 100644 index ca2f549..0000000 --- a/docs/description/Generic_CodeAnalysis_UnnecessaryFinalModifier.md +++ /dev/null @@ -1,21 +0,0 @@ -Methods should not be declared final inside of classes that are declared final. - -Valid: A method in a final class is not marked final. -``` -final class Foo -{ - public function bar() - { - } -} -``` - -Invalid: A method in a final class is also marked final. -``` -final class Foo -{ - public final function bar() - { - } -} -``` diff --git a/docs/description/Generic_CodeAnalysis_UnusedFunctionParameter.md b/docs/description/Generic_CodeAnalysis_UnusedFunctionParameter.md deleted file mode 100644 index ad4591e..0000000 --- a/docs/description/Generic_CodeAnalysis_UnusedFunctionParameter.md +++ /dev/null @@ -1,17 +0,0 @@ -All parameters in a functions signature should be used within the function. - -Valid: All the parameters are used. -``` -function addThree($a, $b, $c) -{ - return $a + $b + $c; -} -``` - -Invalid: One of the parameters is not being used. -``` -function addThree($a, $b, $c) -{ - return $a + $b; -} -``` diff --git a/docs/description/Generic_CodeAnalysis_UselessOverridingMethod.md b/docs/description/Generic_CodeAnalysis_UselessOverridingMethod.md deleted file mode 100644 index fe38856..0000000 --- a/docs/description/Generic_CodeAnalysis_UselessOverridingMethod.md +++ /dev/null @@ -1,24 +0,0 @@ -It is discouraged to override a method if the overriding method only calls the parent method. - -Valid: A method that extends functionality of a parent method. -``` -final class Foo extends Baz -{ - public function bar() - { - parent::bar(); - $this->doSomethingElse(); - } -} -``` - -Invalid: An overriding method that only calls the parent method. -``` -final class Foo extends Baz -{ - public function bar() - { - parent::bar(); - } -} -``` diff --git a/docs/description/Generic_Commenting_DocComment.md b/docs/description/Generic_Commenting_DocComment.md deleted file mode 100644 index 814dc51..0000000 --- a/docs/description/Generic_Commenting_DocComment.md +++ /dev/null @@ -1,193 +0,0 @@ -Enforces rules related to the formatting of DocBlocks ("Doc Comments") in PHP code. - - DocBlocks are a special type of comment that can provide information about a structural element. In the context of DocBlocks, the following are considered structural elements: - class, interface, trait, enum, function, property, constant, variable declarations and require/include[_once] statements. - - DocBlocks start with a `/**` marker and end on `*/`. This sniff will check the formatting of all DocBlocks, independently of whether or not they are attached to a structural element. - -Valid: DocBlock with some content. -``` -/** - * Some content. - */ -``` - -Invalid: Empty DocBlock. -``` -/** - * - */ -``` - -Valid: The opening and closing DocBlock tags have to be on a line by themselves. -``` -/** - * Short description. - */ -``` - -Invalid: The opening and closing DocBlock tags are not on a line by themselves. -``` -/** Short description. */ -``` - -Valid: DocBlock with a short description on the first line. -``` -/** - * Short description. - */ -``` - -Invalid: DocBlock without a short description or short description not on the first line. -``` -/** - * @return int - */ - -/** - * - * Short description. - */ -``` - -Valid: Both the short and long description start with a capital letter. -``` -/** - * Short description. - * - * Long description. - */ -``` - -Invalid: Neither short nor long description starts with a capital letter. -``` -/** - * short description. - * - * long description. - */ -``` - -Valid: One blank line separating the short description, the long description and tag groups. -``` -/** - * Short description. - * - * Long description. - * - * @param int $foo - */ -``` - -Invalid: More than one or no blank line separating the short description, the long description and tag groups. -``` -/** - * Short description. - * - * - - * Long description. - * @param int $foo - */ -``` - -Valid: Parameter tags grouped together. -``` -/** - * Short description. - * - * @param int $foo - * @param string $bar - */ -``` - -Invalid: Parameter tags not grouped together. -``` -/** - * Short description. - * - * @param int $foo - * - * @param string $bar - */ -``` - -Valid: Parameter tags are not grouped together with other tags. -``` -/** - * Short description. - * - * @param int $foo - * - * @since 3.4.8 - * @deprecated 6.0.0 - */ -``` - -Invalid: Parameter tags grouped together with other tags. -``` -/** - * Short description. - * - * @param int $foo - * @since 3.4.8 - * @deprecated 6.0.0 - */ -``` - -Valid: Tag values for different tags in the same tag group are aligned with each other. -``` -/** - * Short description. - * - * @since 0.5.0 - * @deprecated 1.0.0 - */ -``` - -Invalid: Tag values for different tags in the same tag group are not aligned with each other. -``` -/** - * Short description. - * - * @since 0.5.0 - * @deprecated 1.0.0 - */ -``` - -Valid: Parameter tags are defined first. -``` -/** - * Short description. - * - * @param string $foo - * - * @return void - */ -``` - -Invalid: Parameter tags are not defined first. -``` -/** - * Short description. - * - * @return void - * - * @param string $bar - */ -``` - -Valid: No additional blank lines before the closing DocBlock tag. -``` -/** - * Short description. - */ -``` - -Invalid: Additional blank lines before the closing DocBlock tag. -``` -/** - * Short description. - * - */ -``` diff --git a/docs/description/Generic_Commenting_Fixme.md b/docs/description/Generic_Commenting_Fixme.md deleted file mode 100644 index 9c68a6e..0000000 --- a/docs/description/Generic_Commenting_Fixme.md +++ /dev/null @@ -1,17 +0,0 @@ -FIXME Statements should be taken care of. - -Valid: A comment without a fixme. -``` -// Handle strange case -if ($test) { - $var = 1; -} -``` - -Invalid: A fixme comment. -``` -// FIXME: This needs to be fixed! -if ($test) { - $var = 1; -} -``` diff --git a/docs/description/Generic_Commenting_Todo.md b/docs/description/Generic_Commenting_Todo.md deleted file mode 100644 index b809308..0000000 --- a/docs/description/Generic_Commenting_Todo.md +++ /dev/null @@ -1,17 +0,0 @@ -TODO Statements should be taken care of. - -Valid: A comment without a todo. -``` -// Handle strange case -if ($test) { - $var = 1; -} -``` - -Invalid: A todo comment. -``` -// TODO: This needs to be fixed! -if ($test) { - $var = 1; -} -``` diff --git a/docs/description/Generic_ControlStructures_DisallowYodaConditions.md b/docs/description/Generic_ControlStructures_DisallowYodaConditions.md deleted file mode 100644 index 91f8d60..0000000 --- a/docs/description/Generic_ControlStructures_DisallowYodaConditions.md +++ /dev/null @@ -1,15 +0,0 @@ -Yoda conditions are disallowed. - -Valid: Value to be asserted must go on the right side of the comparison. -``` -if ($test === null) { - $var = 1; -} -``` - -Invalid: Value to be asserted must not be on the left. -``` -if (null === $test) { - $var = 1; -} -``` diff --git a/docs/description/Generic_ControlStructures_InlineControlStructure.md b/docs/description/Generic_ControlStructures_InlineControlStructure.md deleted file mode 100644 index 5ed8eed..0000000 --- a/docs/description/Generic_ControlStructures_InlineControlStructure.md +++ /dev/null @@ -1,14 +0,0 @@ -Control Structures should use braces. - -Valid: Braces are used around the control structure. -``` -if ($test) { - $var = 1; -} -``` - -Invalid: No braces are used for the control structure.. -``` -if ($test) - $var = 1; -``` diff --git a/docs/description/Generic_Files_ByteOrderMark.md b/docs/description/Generic_Files_ByteOrderMark.md deleted file mode 100644 index 81622b5..0000000 --- a/docs/description/Generic_Files_ByteOrderMark.md +++ /dev/null @@ -1 +0,0 @@ -Byte Order Marks that may corrupt your application should not be used. These include 0xefbbbf (UTF-8), 0xfeff (UTF-16 BE) and 0xfffe (UTF-16 LE). diff --git a/docs/description/Generic_Files_EndFileNewline.md b/docs/description/Generic_Files_EndFileNewline.md deleted file mode 100644 index 5dd8d03..0000000 --- a/docs/description/Generic_Files_EndFileNewline.md +++ /dev/null @@ -1 +0,0 @@ -Files should end with a newline character. diff --git a/docs/description/Generic_Files_EndFileNoNewline.md b/docs/description/Generic_Files_EndFileNoNewline.md deleted file mode 100644 index ea8ea43..0000000 --- a/docs/description/Generic_Files_EndFileNoNewline.md +++ /dev/null @@ -1 +0,0 @@ -Files should not end with a newline character. diff --git a/docs/description/Generic_Files_ExecutableFile.md b/docs/description/Generic_Files_ExecutableFile.md deleted file mode 100644 index 6f86146..0000000 --- a/docs/description/Generic_Files_ExecutableFile.md +++ /dev/null @@ -1 +0,0 @@ -Files should not be executable. diff --git a/docs/description/Generic_Files_InlineHTML.md b/docs/description/Generic_Files_InlineHTML.md deleted file mode 100644 index 9d14f4e..0000000 --- a/docs/description/Generic_Files_InlineHTML.md +++ /dev/null @@ -1,16 +0,0 @@ -Files that contain PHP code should only have PHP code and should not have any "inline html". - -Valid: A PHP file with only PHP code in it. -``` - -``` - -Invalid: No closing tag paired with the opening tag. -``` - to delimit PHP code, do not use the ASP <% %> style tags nor the tags. This is the most portable way to include PHP code on differing operating systems and setups. diff --git a/docs/description/Generic_PHP_DisallowRequestSuperglobal.md b/docs/description/Generic_PHP_DisallowRequestSuperglobal.md deleted file mode 100644 index e6f59f9..0000000 --- a/docs/description/Generic_PHP_DisallowRequestSuperglobal.md +++ /dev/null @@ -1 +0,0 @@ -$_REQUEST should never be used due to the ambiguity created as to where the data is coming from. Use $_POST, $_GET, or $_COOKIE instead. diff --git a/docs/description/Generic_PHP_DisallowShortOpenTag.md b/docs/description/Generic_PHP_DisallowShortOpenTag.md deleted file mode 100644 index bcb64eb..0000000 --- a/docs/description/Generic_PHP_DisallowShortOpenTag.md +++ /dev/null @@ -1 +0,0 @@ -Always use to delimit PHP code, not the shorthand. This is the most portable way to include PHP code on differing operating systems and setups. diff --git a/docs/description/Generic_PHP_DiscourageGoto.md b/docs/description/Generic_PHP_DiscourageGoto.md deleted file mode 100644 index 4c62a61..0000000 --- a/docs/description/Generic_PHP_DiscourageGoto.md +++ /dev/null @@ -1 +0,0 @@ -Discourage the use of the PHP `goto` language construct. diff --git a/docs/description/Generic_PHP_ForbiddenFunctions.md b/docs/description/Generic_PHP_ForbiddenFunctions.md deleted file mode 100644 index 178f117..0000000 --- a/docs/description/Generic_PHP_ForbiddenFunctions.md +++ /dev/null @@ -1,11 +0,0 @@ -The forbidden functions sizeof() and delete() should not be used. - -Valid: count() is used in place of sizeof(). -``` -$foo = count($bar); -``` - -Invalid: sizeof() is used. -``` -$foo = sizeof($bar); -``` diff --git a/docs/description/Generic_PHP_LowerCaseConstant.md b/docs/description/Generic_PHP_LowerCaseConstant.md deleted file mode 100644 index 9a0ea32..0000000 --- a/docs/description/Generic_PHP_LowerCaseConstant.md +++ /dev/null @@ -1,15 +0,0 @@ -The true, false and null constants must always be lowercase. - -Valid: Lowercase constants. -``` -if ($var === false || $var === null) { - $var = true; -} -``` - -Invalid: Uppercase constants. -``` -if ($var === FALSE || $var === NULL) { - $var = TRUE; -} -``` diff --git a/docs/description/Generic_PHP_LowerCaseKeyword.md b/docs/description/Generic_PHP_LowerCaseKeyword.md deleted file mode 100644 index 0143b23..0000000 --- a/docs/description/Generic_PHP_LowerCaseKeyword.md +++ /dev/null @@ -1,11 +0,0 @@ -All PHP keywords should be lowercase. - -Valid: Lowercase array keyword used. -``` -$foo = array(); -``` - -Invalid: Non-lowercase array keyword used. -``` -$foo = Array(); -``` diff --git a/docs/description/Generic_PHP_LowerCaseType.md b/docs/description/Generic_PHP_LowerCaseType.md deleted file mode 100644 index c1eea9d..0000000 --- a/docs/description/Generic_PHP_LowerCaseType.md +++ /dev/null @@ -1,23 +0,0 @@ -All PHP types used for parameter type and return type declarations should be lowercase. - -Valid: Lowercase type declarations used. -``` -function myFunction(int $foo) : string { -} -``` - -Invalid: Non-lowercase type declarations used. -``` -function myFunction(Int $foo) : STRING { -} -``` - -Valid: Lowercase type used. -``` -$foo = (bool) $isValid; -``` - -Invalid: Non-lowercase type used. -``` -$foo = (BOOL) $isValid; -``` diff --git a/docs/description/Generic_PHP_NoSilencedErrors.md b/docs/description/Generic_PHP_NoSilencedErrors.md deleted file mode 100644 index c0438b7..0000000 --- a/docs/description/Generic_PHP_NoSilencedErrors.md +++ /dev/null @@ -1,15 +0,0 @@ -Suppressing Errors is not allowed. - -Valid: isset() is used to verify that a variable exists before trying to use it. -``` -if (isset($foo) && $foo) { - echo "Hello\n"; -} -``` - -Invalid: Errors are suppressed. -``` -if (@$foo) { - echo "Hello\n"; -} -``` diff --git a/docs/description/Generic_PHP_RequireStrictTypes.md b/docs/description/Generic_PHP_RequireStrictTypes.md deleted file mode 100644 index 51b76e6..0000000 --- a/docs/description/Generic_PHP_RequireStrictTypes.md +++ /dev/null @@ -1,23 +0,0 @@ -The strict_types declaration must be present. - -Valid: `strict_types` declaration is present. -``` -declare(strict_types=1); - -declare(encoding='UTF-8', strict_types=0); -``` - -Invalid: Missing `strict_types` declaration. -``` -declare(encoding='ISO-8859-1'); -``` - -Valid: `strict_types` declaration is enabled. -``` -declare(strict_types=1); -``` - -Invalid: `strict_types` declaration is disabled. -``` -declare(strict_types=0); -``` diff --git a/docs/description/Generic_PHP_SAPIUsage.md b/docs/description/Generic_PHP_SAPIUsage.md deleted file mode 100644 index a6f4930..0000000 --- a/docs/description/Generic_PHP_SAPIUsage.md +++ /dev/null @@ -1,15 +0,0 @@ -The PHP_SAPI constant should be used instead of php_sapi_name(). - -Valid: PHP_SAPI is used. -``` -if (PHP_SAPI === 'cli') { - echo "Hello, CLI user."; -} -``` - -Invalid: Function call to php_sapi_name() is used. -``` -if (php_sapi_name() === 'cli') { - echo "Hello, CLI user."; -} -``` diff --git a/docs/description/Generic_PHP_Syntax.md b/docs/description/Generic_PHP_Syntax.md deleted file mode 100644 index 77059be..0000000 --- a/docs/description/Generic_PHP_Syntax.md +++ /dev/null @@ -1,13 +0,0 @@ -The code should use valid PHP syntax. - -Valid: No PHP syntax errors. -``` -echo "Hello!"; -$array = [1, 2, 3]; -``` - -Invalid: Code contains PHP syntax errors. -``` -echo "Hello!" // Missing semicolon. -$array = [1, 2, 3; // Missing closing bracket. -``` diff --git a/docs/description/Generic_PHP_UpperCaseConstant.md b/docs/description/Generic_PHP_UpperCaseConstant.md deleted file mode 100644 index b3baf82..0000000 --- a/docs/description/Generic_PHP_UpperCaseConstant.md +++ /dev/null @@ -1,15 +0,0 @@ -The true, false and null constants must always be uppercase. - -Valid: Uppercase constants. -``` -if ($var === FALSE || $var === NULL) { - $var = TRUE; -} -``` - -Invalid: Lowercase constants. -``` -if ($var === false || $var === null) { - $var = true; -} -``` diff --git a/docs/description/Generic_Strings_UnnecessaryHeredoc.md b/docs/description/Generic_Strings_UnnecessaryHeredoc.md deleted file mode 100644 index 4d639ec..0000000 --- a/docs/description/Generic_Strings_UnnecessaryHeredoc.md +++ /dev/null @@ -1,29 +0,0 @@ -If no interpolation or expressions are used in the body of a heredoc, nowdoc syntax should be used instead. - -Valid: Using nowdoc syntax for a text string without any interpolation or expressions. -``` -$nowdoc = <<<'EOD' -some text -EOD; -``` - -Invalid: Using heredoc syntax for a text string without any interpolation or expressions. -``` -$heredoc = <<prop--; -``` - -Invalid: Whitespace between variables and increment/decrement operators. -``` -++ $i; --- $i['key']['id']; -ClassName::$prop ++; -$obj->prop ---; -``` diff --git a/docs/description/Generic_WhiteSpace_LanguageConstructSpacing.md b/docs/description/Generic_WhiteSpace_LanguageConstructSpacing.md deleted file mode 100644 index 76959d1..0000000 --- a/docs/description/Generic_WhiteSpace_LanguageConstructSpacing.md +++ /dev/null @@ -1,32 +0,0 @@ -Language constructs that can be used without parentheses, must have a single space between the language construct keyword and its content. - -Valid: Single space after language construct. -``` -echo 'Hello, World!'; -throw new Exception(); -return $newLine; -``` - -Invalid: No space, more than one space or newline after language construct. -``` -echo'Hello, World!'; -throw new Exception(); -return -$newLine; -``` - -Valid: Single space between yield and from. -``` -function myGenerator() { - yield from [1, 2, 3]; -} -``` - -Invalid: More than one space or newline between yield and from. -``` -function myGenerator() { - yield from [1, 2, 3]; - yield - from [1, 2, 3]; -} -``` diff --git a/docs/description/Generic_WhiteSpace_ScopeIndent.md b/docs/description/Generic_WhiteSpace_ScopeIndent.md deleted file mode 100644 index 54cf145..0000000 --- a/docs/description/Generic_WhiteSpace_ScopeIndent.md +++ /dev/null @@ -1,15 +0,0 @@ -Indentation for control structures, classes, and functions should be 4 spaces per level. - -Valid: 4 spaces are used to indent a control structure. -``` -if ($test) { - $var = 1; -} -``` - -Invalid: 8 spaces are used to indent a control structure. -``` -if ($test) { - $var = 1; -} -``` diff --git a/docs/description/Generic_WhiteSpace_SpreadOperatorSpacingAfter.md b/docs/description/Generic_WhiteSpace_SpreadOperatorSpacingAfter.md deleted file mode 100644 index 3ef7ec6..0000000 --- a/docs/description/Generic_WhiteSpace_SpreadOperatorSpacingAfter.md +++ /dev/null @@ -1,26 +0,0 @@ -There should be no space between the spread operator and the variable/function call it applies to. - -Valid: No space between the spread operator and the variable/function call it applies to. -``` -function foo(&...$spread) { - bar(...$spread); - - bar( - [...$foo], - ...array_values($keyedArray) - ); -} -``` - -Invalid: Space found between the spread operator and the variable/function call it applies to. -``` -function bar(... $spread) { - bar(... - $spread - ); - - bar( - [... $foo ],.../*@*/array_values($keyed) - ); -} -``` diff --git a/docs/description/PEAR_Classes_ClassDeclaration.md b/docs/description/PEAR_Classes_ClassDeclaration.md deleted file mode 100644 index c92b51a..0000000 --- a/docs/description/PEAR_Classes_ClassDeclaration.md +++ /dev/null @@ -1,59 +0,0 @@ -The opening brace of an OO structure must be on the line directly after the OO signature. The opening brace must be on a line by itself. - -Valid: Opening brace on the correct line. -``` -class Foo -{ -} -``` - -Invalid: Opening brace on incorrect line. -``` -class BraceOnSignatureLine { -} - -class BlankLineBetween - -{ -} -``` - -Valid: Opening brace is on a line by itself. -``` -class Foo -{ -} -``` - -Invalid: Opening brace is not on a line by itself. -``` -class Foo -{ public function __construct() {} -} -``` - -Valid: Opening brace indentation depth matches the OO structure signature's depth. -``` -if (!class_exists('IndentedFourSpaces')) { - abstract class IndentedFourSpaces - { - } -} - -class NotIndented -{ -} -``` - -Invalid: Opening brace indentation depth does not match the OO structure signature's depth. -``` -if (!class_exists('IndentedFourSpaces')) { - abstract class IndentedFourSpaces -{ -} -} - -class NotIndented - { - } -``` diff --git a/docs/description/PEAR_Commenting_ClassComment.md b/docs/description/PEAR_Commenting_ClassComment.md deleted file mode 100644 index 458fbb1..0000000 --- a/docs/description/PEAR_Commenting_ClassComment.md +++ /dev/null @@ -1,157 +0,0 @@ -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. - -Valid: A doc comment for the class. -``` -/** - * The Foo class. - */ -class Foo -{ -} -``` - -Invalid: No doc comment for the class. -``` -class Foo -{ -} -``` - -Valid: A doc comment for the class. -``` -/** - * The Foo class. - */ -class Foo -{ -} -``` - -Invalid: Invalid comment type for the class. -``` -// The Foo class. -class Foo -{ -} -``` - -Valid: A doc comment for the class. -``` -/** - * The Foo class. - */ -class Foo -{ -} -``` - -Invalid: The blank line after the comment makes it appear as a file comment, not a class comment. -``` -/** - * The Foo class. - */ - -class Foo -{ -} -``` - -Valid: Short description is the second line of the comment. -``` -/** - * The Foo class. - */ -class Foo -{ -} -``` - -Invalid: An extra blank line before the short description. -``` -/** - * - * The Foo class. - */ -class Foo -{ -} -``` - -Valid: Exactly one blank line around descriptions. -``` -/** - * The Foo class. - * - * A helper for the Bar class. - * - * @see Bar - */ -class Foo -{ -} -``` - -Invalid: Extra blank lines around the descriptions. -``` -/** - * The Foo class. - * - * - * A helper for the Bar class. - * - * - * @see Bar - */ -class Foo -{ -} -``` - -Valid: Exactly one blank line before the tags. -``` -/** - * The Foo class. - * - * @see Bar - */ -class Foo -{ -} -``` - -Invalid: Extra blank lines before the tags. -``` -/** - * The Foo class. - * - * - * @see Bar - */ -class Foo -{ -} -``` - -Valid: Version tag is in the correct format. -``` -/** - * The Foo class. - * - * @version Release: 1.0 - */ -class Foo -{ -} -``` - -Invalid: No Release: text. -``` -/** - * The Foo class. - * - * @version 1.0 - */ -class Foo -{ -} -``` diff --git a/docs/description/PEAR_Commenting_FileComment.md b/docs/description/PEAR_Commenting_FileComment.md deleted file mode 100644 index 70462dd..0000000 --- a/docs/description/PEAR_Commenting_FileComment.md +++ /dev/null @@ -1,271 +0,0 @@ -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. - The tags must be in the order category, package, subpackage, author, copyright, license, version, link, see, since, and deprecated. - The PHP version must be specified. - -Valid: A file comment is used. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Invalid: No doc comment for the class. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Invalid: An extra blank line before the short description. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Valid: Exactly one blank line around descriptions. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Invalid: Extra blank lines around the descriptions. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Valid: Exactly one blank line before the tags. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Invalid: Extra blank lines before the tags. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Valid: All required tags are used. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Invalid: Missing an author tag. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Invalid: Multiple category tags. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Valid: PHP version specified. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Invalid: No PHP version specified. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Valid: Tags are in the correct order. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` - -Invalid: Category and package tags are swapped in order. -``` - - * @copyright 2013-2014 Foo Inc. - * @license MIT License - * @link http://example.com - */ -``` diff --git a/docs/description/PEAR_Commenting_FunctionComment.md b/docs/description/PEAR_Commenting_FunctionComment.md deleted file mode 100644 index 9c070c0..0000000 --- a/docs/description/PEAR_Commenting_FunctionComment.md +++ /dev/null @@ -1,208 +0,0 @@ -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. - -Valid: A function doc comment is used. -``` -/** - * Short description here. - * - * @return void - */ - function foo() - { - } -``` - -Invalid: No doc comment for the function. -``` -function foo() - { - } -``` - -Valid: Short description is the second line of the comment. -``` -/** - * Short description here. - * - * @return void - */ - function foo() - { - } -``` - -Invalid: An extra blank line before the short description. -``` -/** - * - * Short description here. - * - * @return void - */ - function foo() - { - } -``` - -Valid: Exactly one blank line around descriptions. -``` -/** - * Short description here. - * - * Long description here. - * - * @return void - */ - function foo() - { - } -``` - -Invalid: Extra blank lines around the descriptions. -``` -/** - * Short description here. - * - * - * Long description here. - * - * - * @return void - */ - function foo() - { - } -``` - -Valid: Exactly one blank line before the tags. -``` -/** - * Short description here. - * - * Long description here. - * - * @return void - */ - function foo() - { - } -``` - -Invalid: Extra blank lines before the tags. -``` -/** - * Short description here. - * - * Long description here. - * - * - * @return void - */ - function foo() - { - } -``` - -Valid: Throws tag has an exception class. -``` -/** - * Short description here. - * - * @return void - * @throws FooException - */ - function foo() - { - } -``` - -Invalid: No exception class given for throws tag. -``` -/** - * Short description here. - * - * @return void - * @throws - */ - function foo() - { - } -``` - -Valid: Return tag present. -``` -/** - * Short description here. - * - * @return void - */ - function foo() - { - } -``` - -Invalid: No return tag. -``` -/** - * Short description here. - */ - function foo() - { - } -``` - -Valid: Param names are correct. -``` -/** - * Short description here. - * - * @param string $foo Foo parameter - * @param string $bar Bar parameter - * @return void - */ - function foo($foo, $bar) - { - } -``` - -Invalid: Wrong parameter name doesn't match function signature. -``` -/** - * Short description here. - * - * @param string $foo Foo parameter - * @param string $qux Bar parameter - * @return void - */ - function foo($foo, $bar) - { - } -``` - -Valid: Param names are ordered correctly. -``` -/** - * Short description here. - * - * @param string $foo Foo parameter - * @param string $bar Bar parameter - * @return void - */ - function foo($foo, $bar) - { - } -``` - -Invalid: Wrong parameter order. -``` -/** - * Short description here. - * - * @param string $bar Bar parameter - * @param string $foo Foo parameter - * @return void - */ - function foo($foo, $bar) - { - } -``` diff --git a/docs/description/PEAR_Commenting_InlineComment.md b/docs/description/PEAR_Commenting_InlineComment.md deleted file mode 100644 index ae10b8a..0000000 --- a/docs/description/PEAR_Commenting_InlineComment.md +++ /dev/null @@ -1,11 +0,0 @@ -Perl-style # comments are not allowed. - -Valid: A // style comment. -``` -// A comment. -``` - -Invalid: A # style comment. -``` -# A comment. -``` diff --git a/docs/description/PEAR_ControlStructures_ControlSignature.md b/docs/description/PEAR_ControlStructures_ControlSignature.md deleted file mode 100644 index 4ea044f..0000000 --- a/docs/description/PEAR_ControlStructures_ControlSignature.md +++ /dev/null @@ -1,26 +0,0 @@ -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. - -Valid: Correct spacing around the condition. -``` -if ($foo) { -} -``` - -Invalid: Incorrect spacing around the condition. -``` -if($foo){ -} -``` - -Valid: Correct placement of the opening brace. -``` -if ($foo) { -} -``` - -Invalid: Incorrect placement of the opening brace on a new line. -``` -if ($foo) -{ -} -``` diff --git a/docs/description/PEAR_ControlStructures_MultiLineCondition.md b/docs/description/PEAR_ControlStructures_MultiLineCondition.md deleted file mode 100644 index abc527b..0000000 --- a/docs/description/PEAR_ControlStructures_MultiLineCondition.md +++ /dev/null @@ -1,48 +0,0 @@ -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. - -Valid: Correct indentation. -``` -if ($foo - && $bar -) { -} -``` - -Invalid: No indentation used on the condition lines. -``` -if ($foo -&& $bar -) { -} -``` - -Valid: Boolean operator at the start of the line. -``` -if ($foo - && $bar -) { -} -``` - -Invalid: Boolean operator at the end of the line. -``` -if ($foo && - $bar -) { -} -``` - -Valid: End parenthesis on a new line. -``` -if ($foo - && $bar -) { -} -``` - -Invalid: End parenthesis not moved to a new line. -``` -if ($foo - && $bar) { -} -``` diff --git a/docs/description/PEAR_Files_IncludingFile.md b/docs/description/PEAR_Files_IncludingFile.md deleted file mode 100644 index a679f24..0000000 --- a/docs/description/PEAR_Files_IncludingFile.md +++ /dev/null @@ -1,11 +0,0 @@ -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. - -Valid: Used as statement. -``` -require_once 'PHP/CodeSniffer.php'; -``` - -Invalid: Used as function. -``` -require_once('PHP/CodeSniffer.php'); -``` diff --git a/docs/description/PEAR_Formatting_MultiLineAssignment.md b/docs/description/PEAR_Formatting_MultiLineAssignment.md deleted file mode 100644 index c0cbbec..0000000 --- a/docs/description/PEAR_Formatting_MultiLineAssignment.md +++ /dev/null @@ -1,25 +0,0 @@ -Multi-line assignment should have the equals sign be the first item on the second line indented correctly. - -Valid: Assignment operator at the start of the second line. -``` -$foo - = $bar; -``` - -Invalid: Assignment operator at end of first line. -``` -$foo = - $bar; -``` - -Valid: Assignment operator indented one level. -``` -$foo - = $bar; -``` - -Invalid: Assignment operator not indented. -``` -$foo -= $bar; -``` diff --git a/docs/description/PEAR_Functions_FunctionCallSignature.md b/docs/description/PEAR_Functions_FunctionCallSignature.md deleted file mode 100644 index 3cce33d..0000000 --- a/docs/description/PEAR_Functions_FunctionCallSignature.md +++ /dev/null @@ -1,11 +0,0 @@ -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. - -Valid: Spaces between parameters. -``` -$var = foo($bar, $baz, $quux); -``` - -Invalid: Additional spaces used. -``` -$var = foo ( $bar, $baz, $quux ) ; -``` diff --git a/docs/description/PEAR_Functions_FunctionDeclaration.md b/docs/description/PEAR_Functions_FunctionDeclaration.md deleted file mode 100644 index bc2fec2..0000000 --- a/docs/description/PEAR_Functions_FunctionDeclaration.md +++ /dev/null @@ -1,31 +0,0 @@ -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. - -Valid: Correct spacing around function and use keywords. -``` -$foo = function () use ($bar) { -}; -``` - -Invalid: No spacing around function and use keywords. -``` -$foo = function()use($bar){ -}; -``` - -Valid: Multi-line function declaration formatted properly. -``` -function foo( - $bar, - $baz -) { -}; -``` - -Invalid: Invalid indentation and formatting of closing parenthesis. -``` -function foo( -$bar, -$baz) -{ -}; -``` diff --git a/docs/description/PEAR_Functions_ValidDefaultValue.md b/docs/description/PEAR_Functions_ValidDefaultValue.md deleted file mode 100644 index 2232cb1..0000000 --- a/docs/description/PEAR_Functions_ValidDefaultValue.md +++ /dev/null @@ -1,17 +0,0 @@ -Arguments with default values go at the end of the argument list. - -Valid: Argument with default value at end of declaration. -``` -function connect($dsn, $persistent = false) -{ - ... -} -``` - -Invalid: Argument with default value at start of declaration. -``` -function connect($persistent = false, $dsn) -{ - ... -} -``` diff --git a/docs/description/PEAR_NamingConventions_ValidClassName.md b/docs/description/PEAR_NamingConventions_ValidClassName.md deleted file mode 100644 index 378b1d1..0000000 --- a/docs/description/PEAR_NamingConventions_ValidClassName.md +++ /dev/null @@ -1,15 +0,0 @@ -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. - -Valid: Examples of valid class names. -``` -Log -Net_Finger -HTML_Upload_Error -``` - -Invalid: Examples of invalid class names. -``` -log -NetFinger -HTML-Upload-Error -``` diff --git a/docs/description/PEAR_NamingConventions_ValidFunctionName.md b/docs/description/PEAR_NamingConventions_ValidFunctionName.md deleted file mode 100644 index d337587..0000000 --- a/docs/description/PEAR_NamingConventions_ValidFunctionName.md +++ /dev/null @@ -1,15 +0,0 @@ -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. - -Valid: Examples of valid function names. -``` -connect() -getData() -buildSomeWidget() -XML_RPC_serializeData() -``` - -Invalid: Examples of invalid function names. -``` -Connect() -get_data() -``` diff --git a/docs/description/PEAR_NamingConventions_ValidVariableName.md b/docs/description/PEAR_NamingConventions_ValidVariableName.md deleted file mode 100644 index 40d8d9c..0000000 --- a/docs/description/PEAR_NamingConventions_ValidVariableName.md +++ /dev/null @@ -1,21 +0,0 @@ -Private member variable names should be prefixed with an underscore and public/protected variable names should not. - -Valid: Proper member variable names. -``` -class Foo -{ - public $publicVar; - protected $protectedVar; - private $_privateVar; -} -``` - -Invalid: Underscores used on public/protected variables and not used on private variables. -``` -class Foo -{ - public $_publicVar; - protected $_protectedVar; - private $privateVar; -} -``` diff --git a/docs/description/PEAR_WhiteSpace_ObjectOperatorIndent.md b/docs/description/PEAR_WhiteSpace_ObjectOperatorIndent.md deleted file mode 100644 index 3779f8f..0000000 --- a/docs/description/PEAR_WhiteSpace_ObjectOperatorIndent.md +++ /dev/null @@ -1,29 +0,0 @@ -Chained object operators when spread out over multiple lines should be the first thing on the line and be indented by 1 level. - -Valid: Object operator at the start of a new line. -``` -$foo - ->bar() - ->baz(); -``` - -Invalid: Object operator at the end of the line. -``` -$foo-> - bar()-> - baz(); -``` - -Valid: Object operator indented correctly. -``` -$foo - ->bar() - ->baz(); -``` - -Invalid: Object operator not indented correctly. -``` -$foo -->bar() -->baz(); -``` diff --git a/docs/description/PEAR_WhiteSpace_ScopeClosingBrace.md b/docs/description/PEAR_WhiteSpace_ScopeClosingBrace.md deleted file mode 100644 index 68559fd..0000000 --- a/docs/description/PEAR_WhiteSpace_ScopeClosingBrace.md +++ /dev/null @@ -1,15 +0,0 @@ -Closing braces should be indented at the same level as the beginning of the scope. - -Valid: Consistent indentation level for scope. -``` -if ($test) { - $var = 1; -} -``` - -Invalid: The ending brace is indented further than the if statement. -``` -if ($test) { - $var = 1; - } -``` diff --git a/docs/description/PEAR_WhiteSpace_ScopeIndent.md b/docs/description/PEAR_WhiteSpace_ScopeIndent.md deleted file mode 100644 index ccbcea3..0000000 --- a/docs/description/PEAR_WhiteSpace_ScopeIndent.md +++ /dev/null @@ -1,21 +0,0 @@ -Any scope openers except for switch statements should be indented 1 level. This includes classes, functions, and control structures. - -Valid: Consistent indentation level for scope. -``` -function foo() -{ - if ($test) { - $var = 1; - } -} -``` - -Invalid: Indentation is not used for scope. -``` -function foo() -{ -if ($test) { -$var = 1; -} -} -``` diff --git a/docs/description/PHPCompatibility_Attributes_NewAttributes.md b/docs/description/PHPCompatibility_Attributes_NewAttributes.md deleted file mode 100644 index 29e934d..0000000 --- a/docs/description/PHPCompatibility_Attributes_NewAttributes.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Attributes): New Attributes diff --git a/docs/description/PHPCompatibility_Classes_ForbiddenClassNameUnderscore.md b/docs/description/PHPCompatibility_Classes_ForbiddenClassNameUnderscore.md deleted file mode 100644 index 68265e4..0000000 --- a/docs/description/PHPCompatibility_Classes_ForbiddenClassNameUnderscore.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): Forbidden Class Name Underscore diff --git a/docs/description/PHPCompatibility_Classes_ForbiddenExtendingFinalPHPClass.md b/docs/description/PHPCompatibility_Classes_ForbiddenExtendingFinalPHPClass.md deleted file mode 100644 index 2f7acb5..0000000 --- a/docs/description/PHPCompatibility_Classes_ForbiddenExtendingFinalPHPClass.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): Forbidden Extending Final PHP Class diff --git a/docs/description/PHPCompatibility_Classes_NewAbstractProperties.md b/docs/description/PHPCompatibility_Classes_NewAbstractProperties.md deleted file mode 100644 index 79f2a5c..0000000 --- a/docs/description/PHPCompatibility_Classes_NewAbstractProperties.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Abstract Properties diff --git a/docs/description/PHPCompatibility_Classes_NewAnonymousClasses.md b/docs/description/PHPCompatibility_Classes_NewAnonymousClasses.md deleted file mode 100644 index 5838f7b..0000000 --- a/docs/description/PHPCompatibility_Classes_NewAnonymousClasses.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Anonymous Classes diff --git a/docs/description/PHPCompatibility_Classes_NewClasses.md b/docs/description/PHPCompatibility_Classes_NewClasses.md deleted file mode 100644 index 82d4bf8..0000000 --- a/docs/description/PHPCompatibility_Classes_NewClasses.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Classes diff --git a/docs/description/PHPCompatibility_Classes_NewConstVisibility.md b/docs/description/PHPCompatibility_Classes_NewConstVisibility.md deleted file mode 100644 index 56982b4..0000000 --- a/docs/description/PHPCompatibility_Classes_NewConstVisibility.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Const Visibility diff --git a/docs/description/PHPCompatibility_Classes_NewConstructorPropertyPromotion.md b/docs/description/PHPCompatibility_Classes_NewConstructorPropertyPromotion.md deleted file mode 100644 index 02b8683..0000000 --- a/docs/description/PHPCompatibility_Classes_NewConstructorPropertyPromotion.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Constructor Property Promotion diff --git a/docs/description/PHPCompatibility_Classes_NewFinalConstants.md b/docs/description/PHPCompatibility_Classes_NewFinalConstants.md deleted file mode 100644 index 9ea2410..0000000 --- a/docs/description/PHPCompatibility_Classes_NewFinalConstants.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Final Constants diff --git a/docs/description/PHPCompatibility_Classes_NewFinalProperties.md b/docs/description/PHPCompatibility_Classes_NewFinalProperties.md deleted file mode 100644 index cf86b97..0000000 --- a/docs/description/PHPCompatibility_Classes_NewFinalProperties.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Final Properties diff --git a/docs/description/PHPCompatibility_Classes_NewLateStaticBinding.md b/docs/description/PHPCompatibility_Classes_NewLateStaticBinding.md deleted file mode 100644 index 04bcd18..0000000 --- a/docs/description/PHPCompatibility_Classes_NewLateStaticBinding.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Late Static Binding diff --git a/docs/description/PHPCompatibility_Classes_NewReadonlyClasses.md b/docs/description/PHPCompatibility_Classes_NewReadonlyClasses.md deleted file mode 100644 index fcaf2f4..0000000 --- a/docs/description/PHPCompatibility_Classes_NewReadonlyClasses.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Readonly Classes diff --git a/docs/description/PHPCompatibility_Classes_NewReadonlyProperties.md b/docs/description/PHPCompatibility_Classes_NewReadonlyProperties.md deleted file mode 100644 index 00b000c..0000000 --- a/docs/description/PHPCompatibility_Classes_NewReadonlyProperties.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Readonly Properties diff --git a/docs/description/PHPCompatibility_Classes_NewStaticAvizProperties.md b/docs/description/PHPCompatibility_Classes_NewStaticAvizProperties.md deleted file mode 100644 index 93cdffa..0000000 --- a/docs/description/PHPCompatibility_Classes_NewStaticAvizProperties.md +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index c5c13db..0000000 --- a/docs/description/PHPCompatibility_Classes_NewTypedConstants.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Typed Constants diff --git a/docs/description/PHPCompatibility_Classes_NewTypedProperties.md b/docs/description/PHPCompatibility_Classes_NewTypedProperties.md deleted file mode 100644 index b4ee06b..0000000 --- a/docs/description/PHPCompatibility_Classes_NewTypedProperties.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): New Typed Properties diff --git a/docs/description/PHPCompatibility_Classes_RemovedClasses.md b/docs/description/PHPCompatibility_Classes_RemovedClasses.md deleted file mode 100644 index 1dec665..0000000 --- a/docs/description/PHPCompatibility_Classes_RemovedClasses.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): Removed Classes diff --git a/docs/description/PHPCompatibility_Classes_RemovedOrphanedParent.md b/docs/description/PHPCompatibility_Classes_RemovedOrphanedParent.md deleted file mode 100644 index f3a1df7..0000000 --- a/docs/description/PHPCompatibility_Classes_RemovedOrphanedParent.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Classes): Removed Orphaned Parent diff --git a/docs/description/PHPCompatibility_Constants_NewConstants.md b/docs/description/PHPCompatibility_Constants_NewConstants.md deleted file mode 100644 index f421bc7..0000000 --- a/docs/description/PHPCompatibility_Constants_NewConstants.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Constants): New Constants diff --git a/docs/description/PHPCompatibility_Constants_NewConstantsInTraits.md b/docs/description/PHPCompatibility_Constants_NewConstantsInTraits.md deleted file mode 100644 index 089ac8a..0000000 --- a/docs/description/PHPCompatibility_Constants_NewConstantsInTraits.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Constants): New Constants In Traits diff --git a/docs/description/PHPCompatibility_Constants_NewMagicClassConstant.md b/docs/description/PHPCompatibility_Constants_NewMagicClassConstant.md deleted file mode 100644 index ae4223c..0000000 --- a/docs/description/PHPCompatibility_Constants_NewMagicClassConstant.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Constants): New Magic Class Constant diff --git a/docs/description/PHPCompatibility_Constants_RemovedConstants.md b/docs/description/PHPCompatibility_Constants_RemovedConstants.md deleted file mode 100644 index 41a3506..0000000 --- a/docs/description/PHPCompatibility_Constants_RemovedConstants.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Constants): Removed Constants diff --git a/docs/description/PHPCompatibility_ControlStructures_DiscouragedSwitchContinue.md b/docs/description/PHPCompatibility_ControlStructures_DiscouragedSwitchContinue.md deleted file mode 100644 index 4d406b0..0000000 --- a/docs/description/PHPCompatibility_ControlStructures_DiscouragedSwitchContinue.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Control Structures): Discouraged Switch Continue diff --git a/docs/description/PHPCompatibility_ControlStructures_ForbiddenBreakContinueOutsideLoop.md b/docs/description/PHPCompatibility_ControlStructures_ForbiddenBreakContinueOutsideLoop.md deleted file mode 100644 index 871cb4a..0000000 --- a/docs/description/PHPCompatibility_ControlStructures_ForbiddenBreakContinueOutsideLoop.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Control Structures): Forbidden Break Continue Outside Loop diff --git a/docs/description/PHPCompatibility_ControlStructures_ForbiddenBreakContinueVariableArguments.md b/docs/description/PHPCompatibility_ControlStructures_ForbiddenBreakContinueVariableArguments.md deleted file mode 100644 index 1467922..0000000 --- a/docs/description/PHPCompatibility_ControlStructures_ForbiddenBreakContinueVariableArguments.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Control Structures): Forbidden Break Continue Variable Arguments diff --git a/docs/description/PHPCompatibility_ControlStructures_ForbiddenSwitchWithMultipleDefaultBlocks.md b/docs/description/PHPCompatibility_ControlStructures_ForbiddenSwitchWithMultipleDefaultBlocks.md deleted file mode 100644 index 9e61974..0000000 --- a/docs/description/PHPCompatibility_ControlStructures_ForbiddenSwitchWithMultipleDefaultBlocks.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Control Structures): Forbidden Switch With Multiple Default Blocks diff --git a/docs/description/PHPCompatibility_ControlStructures_NewExecutionDirectives.md b/docs/description/PHPCompatibility_ControlStructures_NewExecutionDirectives.md deleted file mode 100644 index 58a7cd3..0000000 --- a/docs/description/PHPCompatibility_ControlStructures_NewExecutionDirectives.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Control Structures): New Execution Directives diff --git a/docs/description/PHPCompatibility_ControlStructures_NewForeachExpressionReferencing.md b/docs/description/PHPCompatibility_ControlStructures_NewForeachExpressionReferencing.md deleted file mode 100644 index 6349dd1..0000000 --- a/docs/description/PHPCompatibility_ControlStructures_NewForeachExpressionReferencing.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Control Structures): New Foreach Expression Referencing diff --git a/docs/description/PHPCompatibility_ControlStructures_NewListInForeach.md b/docs/description/PHPCompatibility_ControlStructures_NewListInForeach.md deleted file mode 100644 index 1bd84a7..0000000 --- a/docs/description/PHPCompatibility_ControlStructures_NewListInForeach.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Control Structures): New List In Foreach diff --git a/docs/description/PHPCompatibility_ControlStructures_NewMultiCatch.md b/docs/description/PHPCompatibility_ControlStructures_NewMultiCatch.md deleted file mode 100644 index e7ca0a9..0000000 --- a/docs/description/PHPCompatibility_ControlStructures_NewMultiCatch.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Control Structures): New Multi Catch diff --git a/docs/description/PHPCompatibility_ControlStructures_NewNonCapturingCatch.md b/docs/description/PHPCompatibility_ControlStructures_NewNonCapturingCatch.md deleted file mode 100644 index 1013138..0000000 --- a/docs/description/PHPCompatibility_ControlStructures_NewNonCapturingCatch.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Control Structures): New Non Capturing Catch diff --git a/docs/description/PHPCompatibility_Extensions_RemovedExtensions.md b/docs/description/PHPCompatibility_Extensions_RemovedExtensions.md deleted file mode 100644 index 21f8303..0000000 --- a/docs/description/PHPCompatibility_Extensions_RemovedExtensions.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Extensions): Removed Extensions diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_AbstractPrivateMethods.md b/docs/description/PHPCompatibility_FunctionDeclarations_AbstractPrivateMethods.md deleted file mode 100644 index 36e59de..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_AbstractPrivateMethods.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Abstract Private Methods diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenFinalPrivateMethods.md b/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenFinalPrivateMethods.md deleted file mode 100644 index 0af1ed1..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenFinalPrivateMethods.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Forbidden Final Private Methods diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals.md b/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals.md deleted file mode 100644 index 035fd31..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Forbidden Parameter Shadow Super Globals diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenParametersWithSameName.md b/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenParametersWithSameName.md deleted file mode 100644 index c798128..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenParametersWithSameName.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Forbidden Parameters With Same Name diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenToStringParameters.md b/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenToStringParameters.md deleted file mode 100644 index 94b8ea2..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenToStringParameters.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Forbidden To String Parameters diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenVariableNamesInClosureUse.md b/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenVariableNamesInClosureUse.md deleted file mode 100644 index c6de883..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_ForbiddenVariableNamesInClosureUse.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Forbidden Variable Names In Closure Use diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_NewClosure.md b/docs/description/PHPCompatibility_FunctionDeclarations_NewClosure.md deleted file mode 100644 index f777508..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_NewClosure.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): New Closure diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_NewExceptionsFromToString.md b/docs/description/PHPCompatibility_FunctionDeclarations_NewExceptionsFromToString.md deleted file mode 100644 index d5bd963..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_NewExceptionsFromToString.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): New Exceptions From To String diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_NewNullableTypes.md b/docs/description/PHPCompatibility_FunctionDeclarations_NewNullableTypes.md deleted file mode 100644 index 9840cd1..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_NewNullableTypes.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): New Nullable Types diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_NewParamTypeDeclarations.md b/docs/description/PHPCompatibility_FunctionDeclarations_NewParamTypeDeclarations.md deleted file mode 100644 index 0041b23..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_NewParamTypeDeclarations.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): New Param Type Declarations diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_NewReturnTypeDeclarations.md b/docs/description/PHPCompatibility_FunctionDeclarations_NewReturnTypeDeclarations.md deleted file mode 100644 index 5412aa5..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_NewReturnTypeDeclarations.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): New Return Type Declarations diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_NewTrailingComma.md b/docs/description/PHPCompatibility_FunctionDeclarations_NewTrailingComma.md deleted file mode 100644 index 4ba8e44..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_NewTrailingComma.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): New Trailing Comma diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods.md b/docs/description/PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods.md deleted file mode 100644 index a3571b1..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Non Static Magic Methods diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_RemovedCallingDestructAfterConstructorExit.md b/docs/description/PHPCompatibility_FunctionDeclarations_RemovedCallingDestructAfterConstructorExit.md deleted file mode 100644 index 5b8d988..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_RemovedCallingDestructAfterConstructorExit.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Removed Calling Destruct After Constructor Exit diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_RemovedImplicitlyNullableParam.md b/docs/description/PHPCompatibility_FunctionDeclarations_RemovedImplicitlyNullableParam.md deleted file mode 100644 index ad33b21..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_RemovedImplicitlyNullableParam.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Removed Implicitly Nullable Param diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_RemovedOptionalBeforeRequiredParam.md b/docs/description/PHPCompatibility_FunctionDeclarations_RemovedOptionalBeforeRequiredParam.md deleted file mode 100644 index 603db85..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_RemovedOptionalBeforeRequiredParam.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Removed Optional Before Required Param diff --git a/docs/description/PHPCompatibility_FunctionDeclarations_RemovedReturnByReferenceFromVoid.md b/docs/description/PHPCompatibility_FunctionDeclarations_RemovedReturnByReferenceFromVoid.md deleted file mode 100644 index 0ea95db..0000000 --- a/docs/description/PHPCompatibility_FunctionDeclarations_RemovedReturnByReferenceFromVoid.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Declarations): Removed Return By Reference From Void diff --git a/docs/description/PHPCompatibility_FunctionNameRestrictions_NewMagicMethods.md b/docs/description/PHPCompatibility_FunctionNameRestrictions_NewMagicMethods.md deleted file mode 100644 index 11488e8..0000000 --- a/docs/description/PHPCompatibility_FunctionNameRestrictions_NewMagicMethods.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Name Restrictions): New Magic Methods diff --git a/docs/description/PHPCompatibility_FunctionNameRestrictions_RemovedMagicAutoload.md b/docs/description/PHPCompatibility_FunctionNameRestrictions_RemovedMagicAutoload.md deleted file mode 100644 index ac04809..0000000 --- a/docs/description/PHPCompatibility_FunctionNameRestrictions_RemovedMagicAutoload.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Name Restrictions): Removed Magic Autoload diff --git a/docs/description/PHPCompatibility_FunctionNameRestrictions_RemovedNamespacedAssert.md b/docs/description/PHPCompatibility_FunctionNameRestrictions_RemovedNamespacedAssert.md deleted file mode 100644 index b20c632..0000000 --- a/docs/description/PHPCompatibility_FunctionNameRestrictions_RemovedNamespacedAssert.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Name Restrictions): Removed Namespaced Assert diff --git a/docs/description/PHPCompatibility_FunctionNameRestrictions_RemovedPHP4StyleConstructors.md b/docs/description/PHPCompatibility_FunctionNameRestrictions_RemovedPHP4StyleConstructors.md deleted file mode 100644 index ffe9cfb..0000000 --- a/docs/description/PHPCompatibility_FunctionNameRestrictions_RemovedPHP4StyleConstructors.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Name Restrictions): Removed PHP4 Style Constructors diff --git a/docs/description/PHPCompatibility_FunctionNameRestrictions_ReservedFunctionNames.md b/docs/description/PHPCompatibility_FunctionNameRestrictions_ReservedFunctionNames.md deleted file mode 100644 index 539e8a7..0000000 --- a/docs/description/PHPCompatibility_FunctionNameRestrictions_ReservedFunctionNames.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Name Restrictions): Reserved Function Names diff --git a/docs/description/PHPCompatibility_FunctionUse_ArgumentFunctionsReportCurrentValue.md b/docs/description/PHPCompatibility_FunctionUse_ArgumentFunctionsReportCurrentValue.md deleted file mode 100644 index e87576b..0000000 --- a/docs/description/PHPCompatibility_FunctionUse_ArgumentFunctionsReportCurrentValue.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Use): Argument Functions Report Current Value diff --git a/docs/description/PHPCompatibility_FunctionUse_ArgumentFunctionsUsage.md b/docs/description/PHPCompatibility_FunctionUse_ArgumentFunctionsUsage.md deleted file mode 100644 index 789b9a2..0000000 --- a/docs/description/PHPCompatibility_FunctionUse_ArgumentFunctionsUsage.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Use): Argument Functions Usage diff --git a/docs/description/PHPCompatibility_FunctionUse_NewFunctionParameters.md b/docs/description/PHPCompatibility_FunctionUse_NewFunctionParameters.md deleted file mode 100644 index 9edbddd..0000000 --- a/docs/description/PHPCompatibility_FunctionUse_NewFunctionParameters.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Use): New Function Parameters diff --git a/docs/description/PHPCompatibility_FunctionUse_NewFunctions.md b/docs/description/PHPCompatibility_FunctionUse_NewFunctions.md deleted file mode 100644 index ac370dc..0000000 --- a/docs/description/PHPCompatibility_FunctionUse_NewFunctions.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Use): New Functions diff --git a/docs/description/PHPCompatibility_FunctionUse_NewNamedParameters.md b/docs/description/PHPCompatibility_FunctionUse_NewNamedParameters.md deleted file mode 100644 index 4908a48..0000000 --- a/docs/description/PHPCompatibility_FunctionUse_NewNamedParameters.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Use): New Named Parameters diff --git a/docs/description/PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters.md b/docs/description/PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters.md deleted file mode 100644 index 262ca0a..0000000 --- a/docs/description/PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Use): Optional To Required Function Parameters diff --git a/docs/description/PHPCompatibility_FunctionUse_RemovedFunctionParameters.md b/docs/description/PHPCompatibility_FunctionUse_RemovedFunctionParameters.md deleted file mode 100644 index 9be1c4c..0000000 --- a/docs/description/PHPCompatibility_FunctionUse_RemovedFunctionParameters.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Use): Removed Function Parameters diff --git a/docs/description/PHPCompatibility_FunctionUse_RemovedFunctions.md b/docs/description/PHPCompatibility_FunctionUse_RemovedFunctions.md deleted file mode 100644 index 0721dd1..0000000 --- a/docs/description/PHPCompatibility_FunctionUse_RemovedFunctions.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Use): Removed Functions diff --git a/docs/description/PHPCompatibility_FunctionUse_RequiredToOptionalFunctionParameters.md b/docs/description/PHPCompatibility_FunctionUse_RequiredToOptionalFunctionParameters.md deleted file mode 100644 index d69759d..0000000 --- a/docs/description/PHPCompatibility_FunctionUse_RequiredToOptionalFunctionParameters.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Function Use): Required To Optional Function Parameters diff --git a/docs/description/PHPCompatibility_Generators_NewGeneratorReturn.md b/docs/description/PHPCompatibility_Generators_NewGeneratorReturn.md deleted file mode 100644 index bccd342..0000000 --- a/docs/description/PHPCompatibility_Generators_NewGeneratorReturn.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Generators): New Generator Return diff --git a/docs/description/PHPCompatibility_Generators_NewYieldFromComment.md b/docs/description/PHPCompatibility_Generators_NewYieldFromComment.md deleted file mode 100644 index d7e2123..0000000 --- a/docs/description/PHPCompatibility_Generators_NewYieldFromComment.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Generators): New Yield From Comment diff --git a/docs/description/PHPCompatibility_IniDirectives_NewIniDirectives.md b/docs/description/PHPCompatibility_IniDirectives_NewIniDirectives.md deleted file mode 100644 index 762cdaf..0000000 --- a/docs/description/PHPCompatibility_IniDirectives_NewIniDirectives.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Ini Directives): New Ini Directives diff --git a/docs/description/PHPCompatibility_IniDirectives_RemovedIniDirectives.md b/docs/description/PHPCompatibility_IniDirectives_RemovedIniDirectives.md deleted file mode 100644 index bd50025..0000000 --- a/docs/description/PHPCompatibility_IniDirectives_RemovedIniDirectives.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Ini Directives): Removed Ini Directives diff --git a/docs/description/PHPCompatibility_InitialValue_NewConstantArraysUsingConst.md b/docs/description/PHPCompatibility_InitialValue_NewConstantArraysUsingConst.md deleted file mode 100644 index eb6c181..0000000 --- a/docs/description/PHPCompatibility_InitialValue_NewConstantArraysUsingConst.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Initial Value): New Constant Arrays Using Const diff --git a/docs/description/PHPCompatibility_InitialValue_NewConstantArraysUsingDefine.md b/docs/description/PHPCompatibility_InitialValue_NewConstantArraysUsingDefine.md deleted file mode 100644 index 7f2556a..0000000 --- a/docs/description/PHPCompatibility_InitialValue_NewConstantArraysUsingDefine.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Initial Value): New Constant Arrays Using Define diff --git a/docs/description/PHPCompatibility_InitialValue_NewConstantScalarExpressions.md b/docs/description/PHPCompatibility_InitialValue_NewConstantScalarExpressions.md deleted file mode 100644 index 853e90d..0000000 --- a/docs/description/PHPCompatibility_InitialValue_NewConstantScalarExpressions.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Initial Value): New Constant Scalar Expressions diff --git a/docs/description/PHPCompatibility_InitialValue_NewHeredoc.md b/docs/description/PHPCompatibility_InitialValue_NewHeredoc.md deleted file mode 100644 index 903555d..0000000 --- a/docs/description/PHPCompatibility_InitialValue_NewHeredoc.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Initial Value): New Heredoc diff --git a/docs/description/PHPCompatibility_InitialValue_NewNewInDefine.md b/docs/description/PHPCompatibility_InitialValue_NewNewInDefine.md deleted file mode 100644 index bb3b839..0000000 --- a/docs/description/PHPCompatibility_InitialValue_NewNewInDefine.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Initial Value): New New In Define diff --git a/docs/description/PHPCompatibility_InitialValue_NewNewInInitializers.md b/docs/description/PHPCompatibility_InitialValue_NewNewInInitializers.md deleted file mode 100644 index e4320c5..0000000 --- a/docs/description/PHPCompatibility_InitialValue_NewNewInInitializers.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Initial Value): New New In Initializers diff --git a/docs/description/PHPCompatibility_Interfaces_InternalInterfaces.md b/docs/description/PHPCompatibility_Interfaces_InternalInterfaces.md deleted file mode 100644 index 26bd4a6..0000000 --- a/docs/description/PHPCompatibility_Interfaces_InternalInterfaces.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Interfaces): Internal Interfaces diff --git a/docs/description/PHPCompatibility_Interfaces_NewInterfaces.md b/docs/description/PHPCompatibility_Interfaces_NewInterfaces.md deleted file mode 100644 index e11b795..0000000 --- a/docs/description/PHPCompatibility_Interfaces_NewInterfaces.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Interfaces): New Interfaces diff --git a/docs/description/PHPCompatibility_Interfaces_NewPropertiesInInterfaces.md b/docs/description/PHPCompatibility_Interfaces_NewPropertiesInInterfaces.md deleted file mode 100644 index 2f4786f..0000000 --- a/docs/description/PHPCompatibility_Interfaces_NewPropertiesInInterfaces.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Interfaces): New Properties In Interfaces diff --git a/docs/description/PHPCompatibility_Interfaces_RemovedSerializable.md b/docs/description/PHPCompatibility_Interfaces_RemovedSerializable.md deleted file mode 100644 index 4569e76..0000000 --- a/docs/description/PHPCompatibility_Interfaces_RemovedSerializable.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Interfaces): Removed Serializable diff --git a/docs/description/PHPCompatibility_Keywords_CaseSensitiveKeywords.md b/docs/description/PHPCompatibility_Keywords_CaseSensitiveKeywords.md deleted file mode 100644 index 212bc90..0000000 --- a/docs/description/PHPCompatibility_Keywords_CaseSensitiveKeywords.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Keywords): Case Sensitive Keywords diff --git a/docs/description/PHPCompatibility_Keywords_ForbiddenClassAlias.md b/docs/description/PHPCompatibility_Keywords_ForbiddenClassAlias.md deleted file mode 100644 index 905a420..0000000 --- a/docs/description/PHPCompatibility_Keywords_ForbiddenClassAlias.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Keywords): Forbidden Class Alias diff --git a/docs/description/PHPCompatibility_Keywords_ForbiddenNames.md b/docs/description/PHPCompatibility_Keywords_ForbiddenNames.md deleted file mode 100644 index e6267b2..0000000 --- a/docs/description/PHPCompatibility_Keywords_ForbiddenNames.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Keywords): Forbidden Names diff --git a/docs/description/PHPCompatibility_Keywords_NewKeywords.md b/docs/description/PHPCompatibility_Keywords_NewKeywords.md deleted file mode 100644 index cb783a8..0000000 --- a/docs/description/PHPCompatibility_Keywords_NewKeywords.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Keywords): New Keywords diff --git a/docs/description/PHPCompatibility_LanguageConstructs_NewEmptyNonVariable.md b/docs/description/PHPCompatibility_LanguageConstructs_NewEmptyNonVariable.md deleted file mode 100644 index 68333eb..0000000 --- a/docs/description/PHPCompatibility_LanguageConstructs_NewEmptyNonVariable.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Language Constructs): New Empty Non Variable diff --git a/docs/description/PHPCompatibility_LanguageConstructs_NewLanguageConstructs.md b/docs/description/PHPCompatibility_LanguageConstructs_NewLanguageConstructs.md deleted file mode 100644 index 0a3901a..0000000 --- a/docs/description/PHPCompatibility_LanguageConstructs_NewLanguageConstructs.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Language Constructs): New Language Constructs diff --git a/docs/description/PHPCompatibility_LanguageConstructs_RemovedLanguageConstructs.md b/docs/description/PHPCompatibility_LanguageConstructs_RemovedLanguageConstructs.md deleted file mode 100644 index 95631b7..0000000 --- a/docs/description/PHPCompatibility_LanguageConstructs_RemovedLanguageConstructs.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Language Constructs): Removed Language Constructs diff --git a/docs/description/PHPCompatibility_Lists_AssignmentOrder.md b/docs/description/PHPCompatibility_Lists_AssignmentOrder.md deleted file mode 100644 index 52ce61a..0000000 --- a/docs/description/PHPCompatibility_Lists_AssignmentOrder.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Lists): Assignment Order diff --git a/docs/description/PHPCompatibility_Lists_ForbiddenEmptyListAssignment.md b/docs/description/PHPCompatibility_Lists_ForbiddenEmptyListAssignment.md deleted file mode 100644 index 505c6b9..0000000 --- a/docs/description/PHPCompatibility_Lists_ForbiddenEmptyListAssignment.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Lists): Forbidden Empty List Assignment diff --git a/docs/description/PHPCompatibility_Lists_NewKeyedList.md b/docs/description/PHPCompatibility_Lists_NewKeyedList.md deleted file mode 100644 index 3740e65..0000000 --- a/docs/description/PHPCompatibility_Lists_NewKeyedList.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Lists): New Keyed List diff --git a/docs/description/PHPCompatibility_Lists_NewListReferenceAssignment.md b/docs/description/PHPCompatibility_Lists_NewListReferenceAssignment.md deleted file mode 100644 index d309bc7..0000000 --- a/docs/description/PHPCompatibility_Lists_NewListReferenceAssignment.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Lists): New List Reference Assignment diff --git a/docs/description/PHPCompatibility_Lists_NewShortList.md b/docs/description/PHPCompatibility_Lists_NewShortList.md deleted file mode 100644 index a2ef13a..0000000 --- a/docs/description/PHPCompatibility_Lists_NewShortList.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Lists): New Short List diff --git a/docs/description/PHPCompatibility_MethodUse_ForbiddenToStringParameters.md b/docs/description/PHPCompatibility_MethodUse_ForbiddenToStringParameters.md deleted file mode 100644 index 7ef63ee..0000000 --- a/docs/description/PHPCompatibility_MethodUse_ForbiddenToStringParameters.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Method Use): Forbidden To String Parameters diff --git a/docs/description/PHPCompatibility_MethodUse_NewDirectCallsToClone.md b/docs/description/PHPCompatibility_MethodUse_NewDirectCallsToClone.md deleted file mode 100644 index 505a163..0000000 --- a/docs/description/PHPCompatibility_MethodUse_NewDirectCallsToClone.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Method Use): New Direct Calls To Clone diff --git a/docs/description/PHPCompatibility_Miscellaneous_NewPHPOpenTagEOF.md b/docs/description/PHPCompatibility_Miscellaneous_NewPHPOpenTagEOF.md deleted file mode 100644 index 710629e..0000000 --- a/docs/description/PHPCompatibility_Miscellaneous_NewPHPOpenTagEOF.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Miscellaneous): New PHP Open Tag EOF diff --git a/docs/description/PHPCompatibility_Miscellaneous_RemovedAlternativePHPTags.md b/docs/description/PHPCompatibility_Miscellaneous_RemovedAlternativePHPTags.md deleted file mode 100644 index fb1acc9..0000000 --- a/docs/description/PHPCompatibility_Miscellaneous_RemovedAlternativePHPTags.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Miscellaneous): Removed Alternative PHP Tags diff --git a/docs/description/PHPCompatibility_Namespaces_ReservedNames.md b/docs/description/PHPCompatibility_Namespaces_ReservedNames.md deleted file mode 100644 index 1408ed0..0000000 --- a/docs/description/PHPCompatibility_Namespaces_ReservedNames.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Namespaces): Reserved Names diff --git a/docs/description/PHPCompatibility_Numbers_NewExplicitOctalNotation.md b/docs/description/PHPCompatibility_Numbers_NewExplicitOctalNotation.md deleted file mode 100644 index 0529377..0000000 --- a/docs/description/PHPCompatibility_Numbers_NewExplicitOctalNotation.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Numbers): New Explicit Octal Notation diff --git a/docs/description/PHPCompatibility_Numbers_NewNumericLiteralSeparator.md b/docs/description/PHPCompatibility_Numbers_NewNumericLiteralSeparator.md deleted file mode 100644 index 9f2b01c..0000000 --- a/docs/description/PHPCompatibility_Numbers_NewNumericLiteralSeparator.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Numbers): New Numeric Literal Separator diff --git a/docs/description/PHPCompatibility_Numbers_RemovedHexadecimalNumericStrings.md b/docs/description/PHPCompatibility_Numbers_RemovedHexadecimalNumericStrings.md deleted file mode 100644 index e343694..0000000 --- a/docs/description/PHPCompatibility_Numbers_RemovedHexadecimalNumericStrings.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Numbers): Removed Hexadecimal Numeric Strings diff --git a/docs/description/PHPCompatibility_Numbers_ValidIntegers.md b/docs/description/PHPCompatibility_Numbers_ValidIntegers.md deleted file mode 100644 index 698db9b..0000000 --- a/docs/description/PHPCompatibility_Numbers_ValidIntegers.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Numbers): Valid Integers diff --git a/docs/description/PHPCompatibility_Operators_ChangedConcatOperatorPrecedence.md b/docs/description/PHPCompatibility_Operators_ChangedConcatOperatorPrecedence.md deleted file mode 100644 index 85b0f9a..0000000 --- a/docs/description/PHPCompatibility_Operators_ChangedConcatOperatorPrecedence.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Operators): Changed Concat Operator Precedence diff --git a/docs/description/PHPCompatibility_Operators_ForbiddenNegativeBitshift.md b/docs/description/PHPCompatibility_Operators_ForbiddenNegativeBitshift.md deleted file mode 100644 index e40b622..0000000 --- a/docs/description/PHPCompatibility_Operators_ForbiddenNegativeBitshift.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Operators): Forbidden Negative Bitshift diff --git a/docs/description/PHPCompatibility_Operators_NewOperators.md b/docs/description/PHPCompatibility_Operators_NewOperators.md deleted file mode 100644 index 14e7ad6..0000000 --- a/docs/description/PHPCompatibility_Operators_NewOperators.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Operators): New Operators diff --git a/docs/description/PHPCompatibility_Operators_NewShortTernary.md b/docs/description/PHPCompatibility_Operators_NewShortTernary.md deleted file mode 100644 index 05b184e..0000000 --- a/docs/description/PHPCompatibility_Operators_NewShortTernary.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Operators): New Short Ternary diff --git a/docs/description/PHPCompatibility_Operators_RemovedTernaryAssociativity.md b/docs/description/PHPCompatibility_Operators_RemovedTernaryAssociativity.md deleted file mode 100644 index 1ac61ad..0000000 --- a/docs/description/PHPCompatibility_Operators_RemovedTernaryAssociativity.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Operators): Removed Ternary Associativity diff --git a/docs/description/PHPCompatibility_ParameterValues_ChangedIntToBoolParamType.md b/docs/description/PHPCompatibility_ParameterValues_ChangedIntToBoolParamType.md deleted file mode 100644 index d20ff81..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_ChangedIntToBoolParamType.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Changed Int To Bool Param Type diff --git a/docs/description/PHPCompatibility_ParameterValues_ChangedObStartEraseFlags.md b/docs/description/PHPCompatibility_ParameterValues_ChangedObStartEraseFlags.md deleted file mode 100644 index 213d0a8..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_ChangedObStartEraseFlags.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Changed Ob Start Erase Flags diff --git a/docs/description/PHPCompatibility_ParameterValues_ForbiddenGetClassNoArgsOutsideOO.md b/docs/description/PHPCompatibility_ParameterValues_ForbiddenGetClassNoArgsOutsideOO.md deleted file mode 100644 index 54679d2..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_ForbiddenGetClassNoArgsOutsideOO.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Forbidden Get Class No Args Outside OO diff --git a/docs/description/PHPCompatibility_ParameterValues_ForbiddenGetClassNull.md b/docs/description/PHPCompatibility_ParameterValues_ForbiddenGetClassNull.md deleted file mode 100644 index 8da61cc..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_ForbiddenGetClassNull.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Forbidden Get Class Null diff --git a/docs/description/PHPCompatibility_ParameterValues_ForbiddenSessionModuleNameUser.md b/docs/description/PHPCompatibility_ParameterValues_ForbiddenSessionModuleNameUser.md deleted file mode 100644 index ad3259c..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_ForbiddenSessionModuleNameUser.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Forbidden Session Module Name User diff --git a/docs/description/PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML.md b/docs/description/PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML.md deleted file mode 100644 index 117fa97..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Forbidden Strip Tags Self Closing XHTML diff --git a/docs/description/PHPCompatibility_ParameterValues_NewArrayMergeRecursiveWithGlobalsVar.md b/docs/description/PHPCompatibility_ParameterValues_NewArrayMergeRecursiveWithGlobalsVar.md deleted file mode 100644 index ab2ac9d..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewArrayMergeRecursiveWithGlobalsVar.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Array Merge Recursive With Globals Var diff --git a/docs/description/PHPCompatibility_ParameterValues_NewArrayReduceInitialType.md b/docs/description/PHPCompatibility_ParameterValues_NewArrayReduceInitialType.md deleted file mode 100644 index 8f6b544..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewArrayReduceInitialType.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Array Reduce Initial Type diff --git a/docs/description/PHPCompatibility_ParameterValues_NewAssertCustomException.md b/docs/description/PHPCompatibility_ParameterValues_NewAssertCustomException.md deleted file mode 100644 index 967c560..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewAssertCustomException.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Assert Custom Exception diff --git a/docs/description/PHPCompatibility_ParameterValues_NewClassAliasInternalClass.md b/docs/description/PHPCompatibility_ParameterValues_NewClassAliasInternalClass.md deleted file mode 100644 index e60a2cf..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewClassAliasInternalClass.md +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index ee54000..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewExitAsFunctionCall.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Exit As Function Call diff --git a/docs/description/PHPCompatibility_ParameterValues_NewFopenModes.md b/docs/description/PHPCompatibility_ParameterValues_NewFopenModes.md deleted file mode 100644 index 56db21d..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewFopenModes.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Fopen Modes diff --git a/docs/description/PHPCompatibility_ParameterValues_NewHTMLEntitiesEncodingDefault.md b/docs/description/PHPCompatibility_ParameterValues_NewHTMLEntitiesEncodingDefault.md deleted file mode 100644 index c9f7400..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewHTMLEntitiesEncodingDefault.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New HTML Entities Encoding Default diff --git a/docs/description/PHPCompatibility_ParameterValues_NewHTMLEntitiesFlagsDefault.md b/docs/description/PHPCompatibility_ParameterValues_NewHTMLEntitiesFlagsDefault.md deleted file mode 100644 index a8f4c5c..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewHTMLEntitiesFlagsDefault.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New HTML Entities Flags Default diff --git a/docs/description/PHPCompatibility_ParameterValues_NewHashAlgorithms.md b/docs/description/PHPCompatibility_ParameterValues_NewHashAlgorithms.md deleted file mode 100644 index e700858..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewHashAlgorithms.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Hash Algorithms diff --git a/docs/description/PHPCompatibility_ParameterValues_NewIDNVariantDefault.md b/docs/description/PHPCompatibility_ParameterValues_NewIDNVariantDefault.md deleted file mode 100644 index 12f9ed0..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewIDNVariantDefault.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New IDN Variant Default diff --git a/docs/description/PHPCompatibility_ParameterValues_NewIconvMbstringCharsetDefault.md b/docs/description/PHPCompatibility_ParameterValues_NewIconvMbstringCharsetDefault.md deleted file mode 100644 index 623dd78..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewIconvMbstringCharsetDefault.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Iconv Mbstring Charset Default diff --git a/docs/description/PHPCompatibility_ParameterValues_NewNegativeStringOffset.md b/docs/description/PHPCompatibility_ParameterValues_NewNegativeStringOffset.md deleted file mode 100644 index e4fd444..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewNegativeStringOffset.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Negative String Offset diff --git a/docs/description/PHPCompatibility_ParameterValues_NewNumberFormatMultibyteSeparators.md b/docs/description/PHPCompatibility_ParameterValues_NewNumberFormatMultibyteSeparators.md deleted file mode 100644 index a2c5573..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewNumberFormatMultibyteSeparators.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Number Format Multibyte Separators diff --git a/docs/description/PHPCompatibility_ParameterValues_NewPCREModifiers.md b/docs/description/PHPCompatibility_ParameterValues_NewPCREModifiers.md deleted file mode 100644 index c0ec8a9..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewPCREModifiers.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New PCRE Modifiers diff --git a/docs/description/PHPCompatibility_ParameterValues_NewPackFormat.md b/docs/description/PHPCompatibility_ParameterValues_NewPackFormat.md deleted file mode 100644 index 6a456a5..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewPackFormat.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Pack Format diff --git a/docs/description/PHPCompatibility_ParameterValues_NewPasswordAlgoConstantValues.md b/docs/description/PHPCompatibility_ParameterValues_NewPasswordAlgoConstantValues.md deleted file mode 100644 index a9d6d01..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewPasswordAlgoConstantValues.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Password Algo Constant Values diff --git a/docs/description/PHPCompatibility_ParameterValues_NewProcOpenCmdArray.md b/docs/description/PHPCompatibility_ParameterValues_NewProcOpenCmdArray.md deleted file mode 100644 index fe449a3..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewProcOpenCmdArray.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Proc Open Cmd Array diff --git a/docs/description/PHPCompatibility_ParameterValues_NewStripTagsAllowableTagsArray.md b/docs/description/PHPCompatibility_ParameterValues_NewStripTagsAllowableTagsArray.md deleted file mode 100644 index 868d44b..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_NewStripTagsAllowableTagsArray.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): New Strip Tags Allowable Tags Array diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedAssertStringAssertion.md b/docs/description/PHPCompatibility_ParameterValues_RemovedAssertStringAssertion.md deleted file mode 100644 index 7abe72a..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedAssertStringAssertion.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Assert String Assertion diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedDbaKeySplitNullFalse.md b/docs/description/PHPCompatibility_ParameterValues_RemovedDbaKeySplitNullFalse.md deleted file mode 100644 index 5aadba4..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedDbaKeySplitNullFalse.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Dba Key Split Null False diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedGetClassNoArgs.md b/docs/description/PHPCompatibility_ParameterValues_RemovedGetClassNoArgs.md deleted file mode 100644 index 0a6e19d..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedGetClassNoArgs.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Get Class No Args diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedGetDefinedFunctionsExcludeDisabledFalse.md b/docs/description/PHPCompatibility_ParameterValues_RemovedGetDefinedFunctionsExcludeDisabledFalse.md deleted file mode 100644 index 49ac511..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedGetDefinedFunctionsExcludeDisabledFalse.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Get Defined Functions Exclude Disabled False diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedHashAlgorithms.md b/docs/description/PHPCompatibility_ParameterValues_RemovedHashAlgorithms.md deleted file mode 100644 index 9e926c5..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedHashAlgorithms.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Hash Algorithms diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedIconvEncoding.md b/docs/description/PHPCompatibility_ParameterValues_RemovedIconvEncoding.md deleted file mode 100644 index 231ecc8..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedIconvEncoding.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Iconv Encoding diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedImplodeFlexibleParamOrder.md b/docs/description/PHPCompatibility_ParameterValues_RemovedImplodeFlexibleParamOrder.md deleted file mode 100644 index 942eeb2..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedImplodeFlexibleParamOrder.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Implode Flexible Param Order diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedLdapConnectSignatures.md b/docs/description/PHPCompatibility_ParameterValues_RemovedLdapConnectSignatures.md deleted file mode 100644 index f7d0885..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedLdapConnectSignatures.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Ldap Connect Signatures diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedMbCheckEncodingNoArgs.md b/docs/description/PHPCompatibility_ParameterValues_RemovedMbCheckEncodingNoArgs.md deleted file mode 100644 index 1dec755..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedMbCheckEncodingNoArgs.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Mb Check Encoding No Args diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedMbStrimWidthNegativeWidth.md b/docs/description/PHPCompatibility_ParameterValues_RemovedMbStrimWidthNegativeWidth.md deleted file mode 100644 index 41132cb..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedMbStrimWidthNegativeWidth.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Mb Strim Width Negative Width diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedMbStrrposEncodingThirdParam.md b/docs/description/PHPCompatibility_ParameterValues_RemovedMbStrrposEncodingThirdParam.md deleted file mode 100644 index ebc3a22..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedMbStrrposEncodingThirdParam.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Mb Strrpos Encoding Third Param diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedMbstringModifiers.md b/docs/description/PHPCompatibility_ParameterValues_RemovedMbstringModifiers.md deleted file mode 100644 index 4c0b71e..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedMbstringModifiers.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Mbstring Modifiers diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedNonCryptoHash.md b/docs/description/PHPCompatibility_ParameterValues_RemovedNonCryptoHash.md deleted file mode 100644 index 2fb62dd..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedNonCryptoHash.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Non Crypto Hash diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedPCREModifiers.md b/docs/description/PHPCompatibility_ParameterValues_RemovedPCREModifiers.md deleted file mode 100644 index e543618..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedPCREModifiers.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed PCRE Modifiers diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedProprietaryCSVEscaping.md b/docs/description/PHPCompatibility_ParameterValues_RemovedProprietaryCSVEscaping.md deleted file mode 100644 index 7fac724..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedProprietaryCSVEscaping.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Proprietary CSV Escaping diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedSetlocaleString.md b/docs/description/PHPCompatibility_ParameterValues_RemovedSetlocaleString.md deleted file mode 100644 index 540925f..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedSetlocaleString.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Setlocale String diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedSplAutoloadRegisterThrowFalse.md b/docs/description/PHPCompatibility_ParameterValues_RemovedSplAutoloadRegisterThrowFalse.md deleted file mode 100644 index 51b88c0..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedSplAutoloadRegisterThrowFalse.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Spl Autoload Register Throw False diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedTriggerErrorLevel.md b/docs/description/PHPCompatibility_ParameterValues_RemovedTriggerErrorLevel.md deleted file mode 100644 index e50c852..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedTriggerErrorLevel.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Trigger Error Level diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedVersionCompareOperators.md b/docs/description/PHPCompatibility_ParameterValues_RemovedVersionCompareOperators.md deleted file mode 100644 index ebfaaf0..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedVersionCompareOperators.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Version Compare Operators diff --git a/docs/description/PHPCompatibility_ParameterValues_RemovedXmlSetHandlerCallbackUnset.md b/docs/description/PHPCompatibility_ParameterValues_RemovedXmlSetHandlerCallbackUnset.md deleted file mode 100644 index cccec6d..0000000 --- a/docs/description/PHPCompatibility_ParameterValues_RemovedXmlSetHandlerCallbackUnset.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Parameter Values): Removed Xml Set Handler Callback Unset diff --git a/docs/description/PHPCompatibility_Syntax_ForbiddenCallTimePassByReference.md b/docs/description/PHPCompatibility_Syntax_ForbiddenCallTimePassByReference.md deleted file mode 100644 index 349f789..0000000 --- a/docs/description/PHPCompatibility_Syntax_ForbiddenCallTimePassByReference.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): Forbidden Call Time Pass By Reference diff --git a/docs/description/PHPCompatibility_Syntax_NewArrayStringDereferencing.md b/docs/description/PHPCompatibility_Syntax_NewArrayStringDereferencing.md deleted file mode 100644 index 9d54e32..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewArrayStringDereferencing.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Array String Dereferencing diff --git a/docs/description/PHPCompatibility_Syntax_NewArrayUnpacking.md b/docs/description/PHPCompatibility_Syntax_NewArrayUnpacking.md deleted file mode 100644 index 77e1fa2..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewArrayUnpacking.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Array Unpacking diff --git a/docs/description/PHPCompatibility_Syntax_NewClassMemberAccess.md b/docs/description/PHPCompatibility_Syntax_NewClassMemberAccess.md deleted file mode 100644 index d109d98..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewClassMemberAccess.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Class Member Access diff --git a/docs/description/PHPCompatibility_Syntax_NewClassMemberAccessWithoutParentheses.md b/docs/description/PHPCompatibility_Syntax_NewClassMemberAccessWithoutParentheses.md deleted file mode 100644 index 731b820..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewClassMemberAccessWithoutParentheses.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Class Member Access Without Parentheses diff --git a/docs/description/PHPCompatibility_Syntax_NewDynamicAccessToStatic.md b/docs/description/PHPCompatibility_Syntax_NewDynamicAccessToStatic.md deleted file mode 100644 index 477e344..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewDynamicAccessToStatic.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Dynamic Access To Static diff --git a/docs/description/PHPCompatibility_Syntax_NewDynamicClassConstantFetch.md b/docs/description/PHPCompatibility_Syntax_NewDynamicClassConstantFetch.md deleted file mode 100644 index 5d65951..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewDynamicClassConstantFetch.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Dynamic Class Constant Fetch diff --git a/docs/description/PHPCompatibility_Syntax_NewFirstClassCallables.md b/docs/description/PHPCompatibility_Syntax_NewFirstClassCallables.md deleted file mode 100644 index 27dc1fb..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewFirstClassCallables.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New First Class Callables diff --git a/docs/description/PHPCompatibility_Syntax_NewFlexibleHeredocNowdoc.md b/docs/description/PHPCompatibility_Syntax_NewFlexibleHeredocNowdoc.md deleted file mode 100644 index 96972ca..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewFlexibleHeredocNowdoc.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Flexible Heredoc Nowdoc diff --git a/docs/description/PHPCompatibility_Syntax_NewFunctionArrayDereferencing.md b/docs/description/PHPCompatibility_Syntax_NewFunctionArrayDereferencing.md deleted file mode 100644 index eb23ffb..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewFunctionArrayDereferencing.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Function Array Dereferencing diff --git a/docs/description/PHPCompatibility_Syntax_NewFunctionCallTrailingComma.md b/docs/description/PHPCompatibility_Syntax_NewFunctionCallTrailingComma.md deleted file mode 100644 index dde358b..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewFunctionCallTrailingComma.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Function Call Trailing Comma diff --git a/docs/description/PHPCompatibility_Syntax_NewInterpolatedStringDereferencing.md b/docs/description/PHPCompatibility_Syntax_NewInterpolatedStringDereferencing.md deleted file mode 100644 index 8a881d1..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewInterpolatedStringDereferencing.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Interpolated String Dereferencing diff --git a/docs/description/PHPCompatibility_Syntax_NewMagicConstantDereferencing.md b/docs/description/PHPCompatibility_Syntax_NewMagicConstantDereferencing.md deleted file mode 100644 index 9a8e166..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewMagicConstantDereferencing.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Magic Constant Dereferencing diff --git a/docs/description/PHPCompatibility_Syntax_NewNestedStaticAccess.md b/docs/description/PHPCompatibility_Syntax_NewNestedStaticAccess.md deleted file mode 100644 index a3718a3..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewNestedStaticAccess.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Nested Static Access diff --git a/docs/description/PHPCompatibility_Syntax_NewShortArray.md b/docs/description/PHPCompatibility_Syntax_NewShortArray.md deleted file mode 100644 index c7b3b73..0000000 --- a/docs/description/PHPCompatibility_Syntax_NewShortArray.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): New Short Array diff --git a/docs/description/PHPCompatibility_Syntax_RemovedCurlyBraceArrayAccess.md b/docs/description/PHPCompatibility_Syntax_RemovedCurlyBraceArrayAccess.md deleted file mode 100644 index 2f15b42..0000000 --- a/docs/description/PHPCompatibility_Syntax_RemovedCurlyBraceArrayAccess.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): Removed Curly Brace Array Access diff --git a/docs/description/PHPCompatibility_Syntax_RemovedNewReference.md b/docs/description/PHPCompatibility_Syntax_RemovedNewReference.md deleted file mode 100644 index f864d7b..0000000 --- a/docs/description/PHPCompatibility_Syntax_RemovedNewReference.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Syntax): Removed New Reference diff --git a/docs/description/PHPCompatibility_TextStrings_NewUnicodeEscapeSequence.md b/docs/description/PHPCompatibility_TextStrings_NewUnicodeEscapeSequence.md deleted file mode 100644 index b05abe8..0000000 --- a/docs/description/PHPCompatibility_TextStrings_NewUnicodeEscapeSequence.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Text Strings): New Unicode Escape Sequence diff --git a/docs/description/PHPCompatibility_TextStrings_RemovedDollarBraceStringEmbeds.md b/docs/description/PHPCompatibility_TextStrings_RemovedDollarBraceStringEmbeds.md deleted file mode 100644 index 487553d..0000000 --- a/docs/description/PHPCompatibility_TextStrings_RemovedDollarBraceStringEmbeds.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Text Strings): Removed Dollar Brace String Embeds diff --git a/docs/description/PHPCompatibility_TypeCasts_NewTypeCasts.md b/docs/description/PHPCompatibility_TypeCasts_NewTypeCasts.md deleted file mode 100644 index 3c78d79..0000000 --- a/docs/description/PHPCompatibility_TypeCasts_NewTypeCasts.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Type Casts): New Type Casts diff --git a/docs/description/PHPCompatibility_TypeCasts_RemovedTypeCasts.md b/docs/description/PHPCompatibility_TypeCasts_RemovedTypeCasts.md deleted file mode 100644 index 5b3a743..0000000 --- a/docs/description/PHPCompatibility_TypeCasts_RemovedTypeCasts.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Type Casts): Removed Type Casts diff --git a/docs/description/PHPCompatibility_Upgrade_LowPHP.md b/docs/description/PHPCompatibility_Upgrade_LowPHP.md deleted file mode 100644 index 12aa4a5..0000000 --- a/docs/description/PHPCompatibility_Upgrade_LowPHP.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Upgrade): Low PHP diff --git a/docs/description/PHPCompatibility_UseDeclarations_NewGroupUseDeclarations.md b/docs/description/PHPCompatibility_UseDeclarations_NewGroupUseDeclarations.md deleted file mode 100644 index 71dfed3..0000000 --- a/docs/description/PHPCompatibility_UseDeclarations_NewGroupUseDeclarations.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Use Declarations): New Group Use Declarations diff --git a/docs/description/PHPCompatibility_UseDeclarations_NewUseConstFunction.md b/docs/description/PHPCompatibility_UseDeclarations_NewUseConstFunction.md deleted file mode 100644 index 3d4bf3c..0000000 --- a/docs/description/PHPCompatibility_UseDeclarations_NewUseConstFunction.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Use Declarations): New Use Const Function diff --git a/docs/description/PHPCompatibility_Variables_ForbiddenGlobalVariableVariable.md b/docs/description/PHPCompatibility_Variables_ForbiddenGlobalVariableVariable.md deleted file mode 100644 index 29b9ed9..0000000 --- a/docs/description/PHPCompatibility_Variables_ForbiddenGlobalVariableVariable.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Variables): Forbidden Global Variable Variable diff --git a/docs/description/PHPCompatibility_Variables_ForbiddenThisUseContexts.md b/docs/description/PHPCompatibility_Variables_ForbiddenThisUseContexts.md deleted file mode 100644 index d81ae98..0000000 --- a/docs/description/PHPCompatibility_Variables_ForbiddenThisUseContexts.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Variables): Forbidden This Use Contexts diff --git a/docs/description/PHPCompatibility_Variables_NewUniformVariableSyntax.md b/docs/description/PHPCompatibility_Variables_NewUniformVariableSyntax.md deleted file mode 100644 index c71fc11..0000000 --- a/docs/description/PHPCompatibility_Variables_NewUniformVariableSyntax.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Variables): New Uniform Variable Syntax diff --git a/docs/description/PHPCompatibility_Variables_RemovedIndirectModificationOfGlobals.md b/docs/description/PHPCompatibility_Variables_RemovedIndirectModificationOfGlobals.md deleted file mode 100644 index 091b123..0000000 --- a/docs/description/PHPCompatibility_Variables_RemovedIndirectModificationOfGlobals.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Variables): Removed Indirect Modification Of Globals diff --git a/docs/description/PHPCompatibility_Variables_RemovedPredefinedGlobalVariables.md b/docs/description/PHPCompatibility_Variables_RemovedPredefinedGlobalVariables.md deleted file mode 100644 index 2e0db92..0000000 --- a/docs/description/PHPCompatibility_Variables_RemovedPredefinedGlobalVariables.md +++ /dev/null @@ -1 +0,0 @@ -PHP Compatibility related issue (Variables): Removed Predefined Global Variables diff --git a/docs/description/PSR12_Classes_AnonClassDeclaration.md b/docs/description/PSR12_Classes_AnonClassDeclaration.md deleted file mode 100644 index 8b897ce..0000000 --- a/docs/description/PSR12_Classes_AnonClassDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Anon Class Declaration diff --git a/docs/description/PSR12_Classes_ClassInstantiation.md b/docs/description/PSR12_Classes_ClassInstantiation.md deleted file mode 100644 index f1ccdb8..0000000 --- a/docs/description/PSR12_Classes_ClassInstantiation.md +++ /dev/null @@ -1,11 +0,0 @@ -When instantiating a new class, parenthesis MUST always be present even when there are no arguments passed to the constructor. - -Valid: Parenthesis used. -``` -new Foo(); -``` - -Invalid: Parenthesis not used. -``` -new Foo; -``` diff --git a/docs/description/PSR12_Classes_ClosingBrace.md b/docs/description/PSR12_Classes_ClosingBrace.md deleted file mode 100644 index 96dd2cf..0000000 --- a/docs/description/PSR12_Classes_ClosingBrace.md +++ /dev/null @@ -1,27 +0,0 @@ -The closing brace of object-oriented constructs and functions must not be followed by any comment or statement on the same line. - -Valid: Closing brace is the last content on the line. -``` -class Foo -{ - // Class content. -} - -function bar() -{ - // Function content. -} -``` - -Invalid: Comment or statement following the closing brace on the same line. -``` -interface Foo2 -{ - // Interface content. -} echo 'Hello!'; - -function bar() -{ - // Function content. -} //end bar() -``` diff --git a/docs/description/PSR12_Classes_OpeningBraceSpace.md b/docs/description/PSR12_Classes_OpeningBraceSpace.md deleted file mode 100644 index 91296ad..0000000 --- a/docs/description/PSR12_Classes_OpeningBraceSpace.md +++ /dev/null @@ -1,24 +0,0 @@ -The opening brace of an object-oriented construct must not be followed by a blank line. - -Valid: No blank lines after opening brace. -``` -class Foo -{ - public function bar() - { - // Method content. - } -} -``` - -Invalid: Blank line after opening brace. -``` -class Foo -{ - - public function bar() - { - // Method content. - } -} -``` diff --git a/docs/description/PSR12_ControlStructures_BooleanOperatorPlacement.md b/docs/description/PSR12_ControlStructures_BooleanOperatorPlacement.md deleted file mode 100644 index 426a82d..0000000 --- a/docs/description/PSR12_ControlStructures_BooleanOperatorPlacement.md +++ /dev/null @@ -1,49 +0,0 @@ -Boolean operators between conditions in control structures must always be at the beginning or at the end of the line, not a mix of both. - - This rule applies to if/else conditions, while loops and switch/match statements. - -Valid: Boolean operator between conditions consistently at the beginning of the line. -``` -if ( - $expr1 - && $expr2 - && ($expr3 -| $expr4) - && $expr5 -) { - // if body. -} -``` - -Invalid: Mix of boolean operators at the beginning and the end of the line. -``` -if ( - $expr1 && - ($expr2 || $expr3) - && $expr4 -) { - // if body. -} -``` - -Valid: Boolean operator between conditions consistently at the end of the line. -``` -if ( - $expr1 || - ($expr2 || $expr3) && - $expr4 -) { - // if body. -} -``` - -Invalid: Mix of boolean operators at the beginning and the end of the line. -``` -match ( - $expr1 - && $expr2 || - $expr3 -) { - // structure body. -}; -``` diff --git a/docs/description/PSR12_ControlStructures_ControlStructureSpacing.md b/docs/description/PSR12_ControlStructures_ControlStructureSpacing.md deleted file mode 100644 index 43d63fa..0000000 --- a/docs/description/PSR12_ControlStructures_ControlStructureSpacing.md +++ /dev/null @@ -1,96 +0,0 @@ -Single line control structures must have no spaces after the condition opening parenthesis and before the condition closing parenthesis. - -Valid: No space after the opening parenthesis in a single-line condition. -``` -if ($expr) { -} -``` - -Invalid: Space after the opening parenthesis in a single-line condition. -``` -if ( $expr) { -} -``` - -Valid: No space before the closing parenthesis in a single-line condition. -``` -if ($expr) { -} -``` - -Invalid: Space before the closing parenthesis in a single-line condition. -``` -if ($expr ) { -} -``` - -Valid: First expression of a multi-line control structure condition block is on the line after the opening parenthesis. -``` -while ( - $expr1 - && $expr2 -) { -} -``` - -Invalid: First expression of a multi-line control structure condition block is on the same line as the opening parenthesis. -``` -while ($expr1 - && $expr2 -) { -} -``` - -Valid: Each line in a multi-line control structure condition block indented at least once. Default indentation is 4 spaces. -``` -while ( - $expr1 - && $expr2 -) { -} -``` - -Invalid: Some lines in a multi-line control structure condition block not indented correctly. -``` -while ( -$expr1 - && $expr2 - && $expr3 -) { -} -``` - -Valid: The closing parenthesis of a multi-line control structure condition block is on the line after the last expression. -``` -while ( - $expr1 - && $expr2 -) { -} -``` - -Invalid: The closing parenthesis of a multi-line control structure condition block is on the same line as the last expression. -``` -while ( - $expr1 - && $expr2) { -} -``` - -Valid: The closing parenthesis of a multi-line control structure condition block is indented to the same level as start of the control structure. -``` -while ( - $expr1 - && $expr2 -) { -} -``` - -Invalid: The closing parenthesis of a multi-line control structure condition block is not indented to the same level as start of the control structure. -``` -while ( - $expr1 - && $expr2 - ) { -} -``` diff --git a/docs/description/PSR12_Files_DeclareStatement.md b/docs/description/PSR12_Files_DeclareStatement.md deleted file mode 100644 index 75e592c..0000000 --- a/docs/description/PSR12_Files_DeclareStatement.md +++ /dev/null @@ -1 +0,0 @@ -Files: Declare Statement diff --git a/docs/description/PSR12_Files_FileHeader.md b/docs/description/PSR12_Files_FileHeader.md deleted file mode 100644 index e51c369..0000000 --- a/docs/description/PSR12_Files_FileHeader.md +++ /dev/null @@ -1 +0,0 @@ -Files: File Header diff --git a/docs/description/PSR12_Files_ImportStatement.md b/docs/description/PSR12_Files_ImportStatement.md deleted file mode 100644 index 97fd138..0000000 --- a/docs/description/PSR12_Files_ImportStatement.md +++ /dev/null @@ -1,25 +0,0 @@ -Import use statements must not begin with a leading backslash. - -Valid: Import statement doesn't begin with a leading backslash. -``` - - - - - - -``` - -Invalid: Opening PHP tag not on a line by itself without any markup in the file. -``` - -``` diff --git a/docs/description/PSR12_Functions_NullableTypeDeclaration.md b/docs/description/PSR12_Functions_NullableTypeDeclaration.md deleted file mode 100644 index da04747..0000000 --- a/docs/description/PSR12_Functions_NullableTypeDeclaration.md +++ /dev/null @@ -1,35 +0,0 @@ -In nullable type declarations there MUST NOT be a space between the question mark and the type. - -Valid: No whitespace used. -``` -public function functionName( - ?string $arg1, - ?int $arg2 -): ?string { -} -``` - -Invalid: Superfluous whitespace used. -``` -public function functionName( - ? string $arg1, - ? int $arg2 -): ? string { -} -``` - -Valid: No unexpected characters. -``` -public function foo(?int $arg): ?string -{ -} -``` - -Invalid: Unexpected characters used. -``` -public function bar(? /* comment */ int $arg): ? - // nullable for a reason - string -{ -} -``` diff --git a/docs/description/PSR12_Functions_ReturnTypeDeclaration.md b/docs/description/PSR12_Functions_ReturnTypeDeclaration.md deleted file mode 100644 index 7179c50..0000000 --- a/docs/description/PSR12_Functions_ReturnTypeDeclaration.md +++ /dev/null @@ -1,31 +0,0 @@ -For function and closure return type declarations, there must be one space after the colon followed by the type declaration, and no space before the colon. - - The colon and the return type declaration have to be on the same line as the argument list closing parenthesis. - -Valid: A single space between the colon and type in a return type declaration. -``` -$closure = function ( $arg ): string { - // Closure body. -}; -``` - -Invalid: No space between the colon and the type in a return type declaration. -``` -$closure = function ( $arg ):string { - // Closure body. -}; -``` - -Valid: No space before the colon in a return type declaration. -``` -function someFunction( $arg ): string { - // Function body. -}; -``` - -Invalid: One or more spaces before the colon in a return type declaration. -``` -function someFunction( $arg ) : string { - // Function body. -}; -``` diff --git a/docs/description/PSR12_Keywords_ShortFormTypeKeywords.md b/docs/description/PSR12_Keywords_ShortFormTypeKeywords.md deleted file mode 100644 index 9c69f75..0000000 --- a/docs/description/PSR12_Keywords_ShortFormTypeKeywords.md +++ /dev/null @@ -1,11 +0,0 @@ -Short form of type keywords MUST be used i.e. bool instead of boolean, int instead of integer etc. - -Valid: Short form type used. -``` -$foo = (bool) $isValid; -``` - -Invalid: Long form type type used. -``` -$foo = (boolean) $isValid; -``` diff --git a/docs/description/PSR12_Namespaces_CompoundNamespaceDepth.md b/docs/description/PSR12_Namespaces_CompoundNamespaceDepth.md deleted file mode 100644 index 230246e..0000000 --- a/docs/description/PSR12_Namespaces_CompoundNamespaceDepth.md +++ /dev/null @@ -1,20 +0,0 @@ -Compound namespaces with a depth of more than two MUST NOT be used. - -Valid: Max depth of 2. -``` -use Vendor\Package\SomeNamespace\{ - SubnamespaceOne\ClassA, - SubnamespaceOne\ClassB, - SubnamespaceTwo\ClassY, - ClassZ, -}; -``` - -Invalid: Max depth of 3. -``` -use Vendor\Package\SomeNamespace\{ - SubnamespaceOne\AnotherNamespace\ClassA, - SubnamespaceOne\ClassB, - ClassZ, -}; -``` diff --git a/docs/description/PSR12_Operators_OperatorSpacing.md b/docs/description/PSR12_Operators_OperatorSpacing.md deleted file mode 100644 index 103e7e8..0000000 --- a/docs/description/PSR12_Operators_OperatorSpacing.md +++ /dev/null @@ -1,19 +0,0 @@ -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). - -Valid: At least 1 space used. -``` -if ($a === $b) { - $foo = $bar ?? $a ?? $b; -} elseif ($a > $b) { - $variable = $foo ? 'foo' : 'bar'; -} -``` - -Invalid: No spacing used. -``` -if ($a===$b) { - $foo=$bar??$a??$b; -} elseif ($a>$b) { - $variable=$foo?'foo':'bar'; -} -``` diff --git a/docs/description/PSR12_Properties_ConstantVisibility.md b/docs/description/PSR12_Properties_ConstantVisibility.md deleted file mode 100644 index 9b30890..0000000 --- a/docs/description/PSR12_Properties_ConstantVisibility.md +++ /dev/null @@ -1,19 +0,0 @@ -Visibility must be declared on all class constants if your project PHP minimum version supports constant visibilities (PHP 7.1 or later). - - The term "class" refers to all classes, interfaces, enums and traits. - -Valid: Constant visibility declared. -``` -class Foo -{ - private const BAR = 'bar'; -} -``` - -Invalid: Constant visibility not declared. -``` -class Foo -{ - const BAR = 'bar'; -} -``` diff --git a/docs/description/PSR12_Traits_UseDeclaration.md b/docs/description/PSR12_Traits_UseDeclaration.md deleted file mode 100644 index 3a40338..0000000 --- a/docs/description/PSR12_Traits_UseDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Traits: Use Declaration diff --git a/docs/description/PSR1_Classes_ClassDeclaration.md b/docs/description/PSR1_Classes_ClassDeclaration.md deleted file mode 100644 index 3503def..0000000 --- a/docs/description/PSR1_Classes_ClassDeclaration.md +++ /dev/null @@ -1,38 +0,0 @@ -Each class must be in a file by itself and must be under a namespace (a top-level vendor name). - -Valid: One class in a file. -``` - -``` diff --git a/docs/description/PSR2_Files_EndFileNewline.md b/docs/description/PSR2_Files_EndFileNewline.md deleted file mode 100644 index 26e09dd..0000000 --- a/docs/description/PSR2_Files_EndFileNewline.md +++ /dev/null @@ -1 +0,0 @@ -PHP Files should end with exactly one newline. diff --git a/docs/description/PSR2_Methods_FunctionCallSignature.md b/docs/description/PSR2_Methods_FunctionCallSignature.md deleted file mode 100644 index 4770a12..0000000 --- a/docs/description/PSR2_Methods_FunctionCallSignature.md +++ /dev/null @@ -1,89 +0,0 @@ -Checks that the function call format is correct. - -Valid: Correct spacing is used around parentheses. -``` -foo($bar, $baz); -``` - -Invalid: Incorrect spacing used, too much space around the parentheses. -``` -foo ( $bar, $baz ); -``` - -Valid: Correct number of spaces used for indent in a multi-line function call. -``` -foo( - $bar, - $baz -); -``` - -Invalid: Incorrect number of spaces used for indent in a multi-line function call. -``` -foo( - $bar, - $baz -); -``` - -Valid: Closing parenthesis for a multi-line function call is on a new line after the last parameter. -``` -foo( - $bar, - $baz -); -``` - -Invalid: Closing parenthesis for a multi-line function call is not on a new line after the last parameter. -``` -foo( - $bar, - $baz); -``` - -Valid: The first argument of a multi-line function call is on a new line. -``` -foo( - $bar, - $baz -); -``` - -Invalid: The first argument of a multi-line function call is not on a new line. -``` -foo($bar, - $baz -); -``` - -Valid: Only one argument per line in a multi-line function call. -``` -foo( - $bar, - $baz -); -``` - -Invalid: Two or more arguments per line in a multi-line function call. -``` -foo( - $bar, $baz -); -``` - -Valid: No blank lines in a multi-line function call. -``` -foo( - $bar, - $baz -); -``` - -Invalid: Blank line in multi-line function call. -``` -foo( - $bar, - - $baz -); -``` diff --git a/docs/description/PSR2_Methods_FunctionClosingBrace.md b/docs/description/PSR2_Methods_FunctionClosingBrace.md deleted file mode 100644 index eab46a7..0000000 --- a/docs/description/PSR2_Methods_FunctionClosingBrace.md +++ /dev/null @@ -1,18 +0,0 @@ -Checks that the closing brace of a function goes directly after the body. - -Valid: Closing brace directly follows the function body. -``` -function foo() -{ - echo 'foo'; -} -``` - -Invalid: Blank line between the function body and the closing brace. -``` -function foo() -{ - echo 'foo'; - -} -``` diff --git a/docs/description/PSR2_Methods_MethodDeclaration.md b/docs/description/PSR2_Methods_MethodDeclaration.md deleted file mode 100644 index 3cff85e..0000000 --- a/docs/description/PSR2_Methods_MethodDeclaration.md +++ /dev/null @@ -1,41 +0,0 @@ -Method names should not be prefixed with an underscore to indicate visibility. The static keyword, when present, should come after the visibility declaration, and the final and abstract keywords should come before. - -Valid: Correct method naming. -``` -class Foo -{ - private function bar() - { - } -} -``` - -Invalid: An underscore prefix used to indicate visibility. -``` -class Foo -{ - private function _bar() - { - } -} -``` - -Valid: Correct ordering of method prefixes. -``` -class Foo -{ - final public static function bar() - { - } -} -``` - -Invalid: `static` keyword used before visibility and final used after. -``` -class Foo -{ - static public final function bar() - { - } -} -``` diff --git a/docs/description/PSR2_Namespaces_NamespaceDeclaration.md b/docs/description/PSR2_Namespaces_NamespaceDeclaration.md deleted file mode 100644 index 8019dae..0000000 --- a/docs/description/PSR2_Namespaces_NamespaceDeclaration.md +++ /dev/null @@ -1,14 +0,0 @@ -There must be one blank line after the namespace declaration. - -Valid: One blank line after the namespace declaration. -``` -namespace Foo\Bar; - -use \Baz; -``` - -Invalid: No blank line after the namespace declaration. -``` -namespace Foo\Bar; -use \Baz; -``` diff --git a/docs/description/PSR2_Namespaces_UseDeclaration.md b/docs/description/PSR2_Namespaces_UseDeclaration.md deleted file mode 100644 index 2e1eeae..0000000 --- a/docs/description/PSR2_Namespaces_UseDeclaration.md +++ /dev/null @@ -1,45 +0,0 @@ -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. - -Valid: One use declaration per namespace. -``` -use \Foo; -use \Bar; -``` - -Invalid: Multiple namespaces in a use declaration. -``` -use \Foo, \Bar; -``` - -Valid: Use statements come after first namespace. -``` -namespace \Foo; - -use \Bar; -``` - -Invalid: Namespace declared after use. -``` -use \Bar; - -namespace \Foo; -``` - -Valid: A single blank line after the final use statement. -``` -use \Foo; -use \Bar; - -class Baz -{ -} -``` - -Invalid: No blank line after the final use statement. -``` -use \Foo; -use \Bar; -class Baz -{ -} -``` diff --git a/docs/description/SlevomatCodingStandard_Arrays_AlphabeticallySortedByKeys.md b/docs/description/SlevomatCodingStandard_Arrays_AlphabeticallySortedByKeys.md deleted file mode 100644 index 2dd151c..0000000 --- a/docs/description/SlevomatCodingStandard_Arrays_AlphabeticallySortedByKeys.md +++ /dev/null @@ -1,7 +0,0 @@ -## Arrays: Alphabetically Sorted By Keys - -Arrays should be defined with keys in alphabetical order. -It defines where new entries should be inserted. -It reduces merge conflicts and duplicate entries. - -This sniff enforces natural sorting of array definitions by key in multi-line arrays. diff --git a/docs/description/SlevomatCodingStandard_Arrays_ArrayAccess.md b/docs/description/SlevomatCodingStandard_Arrays_ArrayAccess.md deleted file mode 100644 index e8f3418..0000000 --- a/docs/description/SlevomatCodingStandard_Arrays_ArrayAccess.md +++ /dev/null @@ -1,3 +0,0 @@ -## Arrays: Array Access - -Disallow whitespace between array access operator and the variable, or between array access operators. diff --git a/docs/description/SlevomatCodingStandard_Arrays_DisallowImplicitArrayCreation.md b/docs/description/SlevomatCodingStandard_Arrays_DisallowImplicitArrayCreation.md deleted file mode 100644 index 36be5bc..0000000 --- a/docs/description/SlevomatCodingStandard_Arrays_DisallowImplicitArrayCreation.md +++ /dev/null @@ -1,3 +0,0 @@ -## Arrays: Disallow Implicit Array Creation - -Disallows implicit array creation. diff --git a/docs/description/SlevomatCodingStandard_Arrays_DisallowPartiallyKeyed.md b/docs/description/SlevomatCodingStandard_Arrays_DisallowPartiallyKeyed.md deleted file mode 100644 index 9729edf..0000000 --- a/docs/description/SlevomatCodingStandard_Arrays_DisallowPartiallyKeyed.md +++ /dev/null @@ -1,3 +0,0 @@ -## Arrays: Disallow Partially Keyed - -Array must have keys specified for either all or none of the values. diff --git a/docs/description/SlevomatCodingStandard_Arrays_MultiLineArrayEndBracketPlacement.md b/docs/description/SlevomatCodingStandard_Arrays_MultiLineArrayEndBracketPlacement.md deleted file mode 100644 index f0e3d97..0000000 --- a/docs/description/SlevomatCodingStandard_Arrays_MultiLineArrayEndBracketPlacement.md +++ /dev/null @@ -1,3 +0,0 @@ -## Arrays: Multi Line Array End Bracket Placement - -Enforces reasonable end bracket placement for multi-line arrays. diff --git a/docs/description/SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace.md b/docs/description/SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace.md deleted file mode 100644 index 922c48e..0000000 --- a/docs/description/SlevomatCodingStandard_Arrays_SingleLineArrayWhitespace.md +++ /dev/null @@ -1,8 +0,0 @@ -## Arrays: Single Line Array Whitespace - -Checks whitespace in single line array declarations (whitespace between brackets, around commas, ...). - -Sniff provides the following settings: - -* `spacesAroundBrackets`: number of spaces you require to have around array brackets -* `enableEmptyArrayCheck` (default: `false`): enables check for empty arrays diff --git a/docs/description/SlevomatCodingStandard_Arrays_TrailingArrayComma.md b/docs/description/SlevomatCodingStandard_Arrays_TrailingArrayComma.md deleted file mode 100644 index 91190cc..0000000 --- a/docs/description/SlevomatCodingStandard_Arrays_TrailingArrayComma.md +++ /dev/null @@ -1,9 +0,0 @@ -## Arrays: Trailing Array Comma - -Commas after last element in an array make adding a new element easier and result in a cleaner versioning diff. - -This sniff enforces trailing commas in multi-line arrays. - -Sniff provides the following settings: - -* `enableAfterHeredoc`: enables/disables trailing commas after HEREDOC/NOWDOC, default based on PHP version. diff --git a/docs/description/SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing.md b/docs/description/SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing.md deleted file mode 100644 index f5ac92e..0000000 --- a/docs/description/SlevomatCodingStandard_Attributes_AttributeAndTargetSpacing.md +++ /dev/null @@ -1,8 +0,0 @@ -## Attributes: Attribute And Target Spacing - -Sniff checks lines count between attribute and its target (or target's documentation comment). - -Sniff provides the following settings: - -* `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_Attributes_AttributesOrder.md b/docs/description/SlevomatCodingStandard_Attributes_AttributesOrder.md deleted file mode 100644 index 17c9279..0000000 --- a/docs/description/SlevomatCodingStandard_Attributes_AttributesOrder.md +++ /dev/null @@ -1,23 +0,0 @@ -## Attributes: Attributes Order - -Requires order of attributes. When more attributes are in one `#[]`, e.g. `#[One, Two]`, the first attribute name is used to resolve the order. - -Sniff provides the following settings: - -* `order`: required order of attributes. Supports prefixes, eg. `ORM\`, and mask , eg. `AppAssert* `. -* `orderAlphabetically`: order attributes alphabetically. Boolean value, default `false`. - -Only one order can be set. - -```xml - - - - - - - - - - -``` diff --git a/docs/description/SlevomatCodingStandard_Attributes_DisallowAttributesJoining.md b/docs/description/SlevomatCodingStandard_Attributes_DisallowAttributesJoining.md deleted file mode 100644 index 8d6c58f..0000000 --- a/docs/description/SlevomatCodingStandard_Attributes_DisallowAttributesJoining.md +++ /dev/null @@ -1,3 +0,0 @@ -## Attributes: Disallow Attributes Joining - -Requires that only one attribute can be placed inside `#[]` (no comma-separated list). In case of more attributes applied, they are split into individual `#[]` blocks. diff --git a/docs/description/SlevomatCodingStandard_Attributes_DisallowMultipleAttributesPerLine.md b/docs/description/SlevomatCodingStandard_Attributes_DisallowMultipleAttributesPerLine.md deleted file mode 100644 index 79a9831..0000000 --- a/docs/description/SlevomatCodingStandard_Attributes_DisallowMultipleAttributesPerLine.md +++ /dev/null @@ -1,4 +0,0 @@ -## Attributes: Disallow Multiple Attributes Per Line - -Disallows multiple attributes of some target on same line. -This sniff treats multiple attributes declared inside one `#[]` as a single attribute. See `DisallowAttributesJoining` to modify this behavior. diff --git a/docs/description/SlevomatCodingStandard_Attributes_RequireAttributeAfterDocComment.md b/docs/description/SlevomatCodingStandard_Attributes_RequireAttributeAfterDocComment.md deleted file mode 100644 index a22225d..0000000 --- a/docs/description/SlevomatCodingStandard_Attributes_RequireAttributeAfterDocComment.md +++ /dev/null @@ -1,3 +0,0 @@ -## Attributes: Require Attribute After Doc Comment - -Requires that attributes are always after documentation comment. diff --git a/docs/description/SlevomatCodingStandard_Classes_BackedEnumTypeSpacing.md b/docs/description/SlevomatCodingStandard_Classes_BackedEnumTypeSpacing.md deleted file mode 100644 index 56a9c42..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_BackedEnumTypeSpacing.md +++ /dev/null @@ -1,8 +0,0 @@ -## Classes: Backed Enum Type Spacing - -* Checks number of spaces before `:` and before type. - -Sniff provides the following settings: - -* `spacesCountBeforeColon`: the number of spaces before `:`. -* `spacesCountBeforeType`: the number of spaces before type. diff --git a/docs/description/SlevomatCodingStandard_Classes_ClassConstantVisibility.md b/docs/description/SlevomatCodingStandard_Classes_ClassConstantVisibility.md deleted file mode 100644 index 7f2a5c8..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_ClassConstantVisibility.md +++ /dev/null @@ -1,12 +0,0 @@ -## Classes: Class Constant Visibility - -In PHP 7.1+ it's possible to declare [visibility of class constants](https://wiki.php.net/rfc/class_const_visibility). In a similar vein to optional declaration of visibility for properties and methods which is actually required in sane coding standards, this sniff also requires declaring visibility for all class constants. - -Sniff provides the following settings: - -* `fixable`: the sniff is not fixable by default because we think it's better to decide about each constant one by one, however you can enable fixability with this option. - -```php -const FOO = 1; // visibility missing! -public const BAR = 2; // correct -``` diff --git a/docs/description/SlevomatCodingStandard_Classes_ClassKeywordOrder.md b/docs/description/SlevomatCodingStandard_Classes_ClassKeywordOrder.md deleted file mode 100644 index 9d3d4f4..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_ClassKeywordOrder.md +++ /dev/null @@ -1,5 +0,0 @@ -## 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 deleted file mode 100644 index c640c7c..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_ClassLength.md +++ /dev/null @@ -1,7 +0,0 @@ -## Classes: Class Length - -Disallows long classes. This sniff provides the following settings: - -* `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_ClassMemberSpacing.md b/docs/description/SlevomatCodingStandard_Classes_ClassMemberSpacing.md deleted file mode 100644 index 885e17c..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_ClassMemberSpacing.md +++ /dev/null @@ -1,7 +0,0 @@ -## Classes: Class Member Spacing - -Sniff checks lines count between different class members, e.g. between last property and first method. - -Sniff provides the following settings: - -* `linesCountBetweenMembers`: lines count between different class members diff --git a/docs/description/SlevomatCodingStandard_Classes_ClassStructure.md b/docs/description/SlevomatCodingStandard_Classes_ClassStructure.md deleted file mode 100644 index 0c8be21..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_ClassStructure.md +++ /dev/null @@ -1,69 +0,0 @@ -## Classes: Class Structure - -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, 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 - -* * List of supported shortcuts* * : -constants, properties, static properties, methods, all public methods, all protected methods, all private methods, static methods, final methods, abstract methods - -```xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -``` diff --git a/docs/description/SlevomatCodingStandard_Classes_ConstantSpacing.md b/docs/description/SlevomatCodingStandard_Classes_ConstantSpacing.md deleted file mode 100644 index 8240854..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_ConstantSpacing.md +++ /dev/null @@ -1,12 +0,0 @@ -## Classes: Constant Spacing - -Checks that there is a certain number of blank lines between constants. - -Sniff provides the following settings: - -* `minLinesCountBeforeWithComment`: minimum number of lines before constant with a documentation comment or attribute -* `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_DisallowConstructorPropertyPromotion.md b/docs/description/SlevomatCodingStandard_Classes_DisallowConstructorPropertyPromotion.md deleted file mode 100644 index ed90dfd..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_DisallowConstructorPropertyPromotion.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Disallow Constructor Property Promotion - -Disallows usage of constructor property promotion. diff --git a/docs/description/SlevomatCodingStandard_Classes_DisallowLateStaticBindingForConstants.md b/docs/description/SlevomatCodingStandard_Classes_DisallowLateStaticBindingForConstants.md deleted file mode 100644 index fd8bca0..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_DisallowLateStaticBindingForConstants.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Disallow Late Static Binding For Constants - -Disallows late static binding for constants. diff --git a/docs/description/SlevomatCodingStandard_Classes_DisallowMultiConstantDefinition.md b/docs/description/SlevomatCodingStandard_Classes_DisallowMultiConstantDefinition.md deleted file mode 100644 index 7583163..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_DisallowMultiConstantDefinition.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Disallow Multi Constant Definition - -Disallows multi constant definition. diff --git a/docs/description/SlevomatCodingStandard_Classes_DisallowMultiPropertyDefinition.md b/docs/description/SlevomatCodingStandard_Classes_DisallowMultiPropertyDefinition.md deleted file mode 100644 index d1f6c94..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_DisallowMultiPropertyDefinition.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Disallow Multi Property Definition - -Disallows multi property definition. diff --git a/docs/description/SlevomatCodingStandard_Classes_DisallowStringExpressionPropertyFetch.md b/docs/description/SlevomatCodingStandard_Classes_DisallowStringExpressionPropertyFetch.md deleted file mode 100644 index 87ffd89..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_DisallowStringExpressionPropertyFetch.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Disallow String Expression Property Fetch - -Disallows string expression property fetch `$object->{'foo'}` when the property name is compatible with identifier access. diff --git a/docs/description/SlevomatCodingStandard_Classes_EmptyLinesAroundClassBraces.md b/docs/description/SlevomatCodingStandard_Classes_EmptyLinesAroundClassBraces.md deleted file mode 100644 index 345f4c4..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_EmptyLinesAroundClassBraces.md +++ /dev/null @@ -1,8 +0,0 @@ -## Classes: Empty Lines Around Class Braces - -Enforces one configurable number of lines after opening class/interface/trait brace and one empty line before the closing brace. - -Sniff provides the following settings: - -* `linesCountAfterOpeningBrace`: allows to configure the number of lines after opening brace. -* `linesCountBeforeClosingBrace`: allows to configure the number of lines before closing brace. diff --git a/docs/description/SlevomatCodingStandard_Classes_EnumCaseSpacing.md b/docs/description/SlevomatCodingStandard_Classes_EnumCaseSpacing.md deleted file mode 100644 index 129980d..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_EnumCaseSpacing.md +++ /dev/null @@ -1,10 +0,0 @@ -## Classes: Enum Case Spacing - -Checks that there is a certain number of blank lines between enum cases. - -Sniff provides the following settings: - -* `minLinesCountBeforeWithComment`: minimum number of lines before enum case with a documentation comment or attribute -* `maxLinesCountBeforeWithComment`: maximum number of lines before enum case with a documentation comment or attribute -* `minLinesCountBeforeWithoutComment`: minimum number of lines before enum case without a documentation comment or attribute -* `maxLinesCountBeforeWithoutComment`: maximum number of lines before enum case without a documentation comment or attribute diff --git a/docs/description/SlevomatCodingStandard_Classes_ForbiddenPublicProperty.md b/docs/description/SlevomatCodingStandard_Classes_ForbiddenPublicProperty.md deleted file mode 100644 index 5553e51..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_ForbiddenPublicProperty.md +++ /dev/null @@ -1,9 +0,0 @@ -## Classes: Forbidden Public Property - -Disallows using public properties. - -This sniff provides the following setting: - -* `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_MethodSpacing.md b/docs/description/SlevomatCodingStandard_Classes_MethodSpacing.md deleted file mode 100644 index 1aa4b02..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_MethodSpacing.md +++ /dev/null @@ -1,8 +0,0 @@ -## Classes: Method Spacing - -Checks that there is a certain number of blank lines between methods. - -Sniff provides the following settings: - -* `minLinesCount`: minimum number of blank lines -* `maxLinesCount`: maximum number of blank lines diff --git a/docs/description/SlevomatCodingStandard_Classes_ModernClassNameReference.md b/docs/description/SlevomatCodingStandard_Classes_ModernClassNameReference.md deleted file mode 100644 index 69ced04..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_ModernClassNameReference.md +++ /dev/null @@ -1,8 +0,0 @@ -## Classes: Modern Class Name Reference - -Reports use of `__CLASS__`, `get_parent_class()`, `get_called_class()`, `get_class()` and `get_class($this)`. -Class names should be referenced via `::class` constant when possible. - -Sniff provides the following settings: - -* `enableOnObjects`: Enable `::class` on all objects. It's on by default if you're on PHP 8.0+ diff --git a/docs/description/SlevomatCodingStandard_Classes_ParentCallSpacing.md b/docs/description/SlevomatCodingStandard_Classes_ParentCallSpacing.md deleted file mode 100644 index 7806e93..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_ParentCallSpacing.md +++ /dev/null @@ -1,10 +0,0 @@ -## Classes: Parent Call Spacing - -Enforces configurable number of lines around parent method call. - -Sniff provides the following settings: - -* `linesCountBefore`: allows to configure the number of lines before parent call. -* `linesCountBeforeFirst`: allows to configure the number of lines before first parent call. -* `linesCountAfter`: allows to configure the number of lines after parent call. -* `linesCountAfterLast`: allows to configure the number of lines after last parent call. diff --git a/docs/description/SlevomatCodingStandard_Classes_PropertyDeclaration.md b/docs/description/SlevomatCodingStandard_Classes_PropertyDeclaration.md deleted file mode 100644 index c43a856..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_PropertyDeclaration.md +++ /dev/null @@ -1,12 +0,0 @@ -## Classes: Property Declaration - -* Checks that there's a single space between a typehint and a property name: `Foo $foo` -* Checks that there's no whitespace between a nullability symbol and a typehint: `?Foo` -* Checks that there's a single space before nullability symbol or a typehint: `private ?Foo` or `private Foo` -* Checks order of modifiers - -Sniff provides the following settings: - -* `modifiersOrder`: allows to configure order of modifiers. -* `checkPromoted`: will check promoted properties too. -* `enableMultipleSpacesBetweenModifiersCheck`: checks multiple spaces between modifiers. diff --git a/docs/description/SlevomatCodingStandard_Classes_PropertySpacing.md b/docs/description/SlevomatCodingStandard_Classes_PropertySpacing.md deleted file mode 100644 index 92df33c..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_PropertySpacing.md +++ /dev/null @@ -1,12 +0,0 @@ -## Classes: Property Spacing - -Checks that there is a certain number of blank lines between properties. - -Sniff provides the following settings: - -* `minLinesCountBeforeWithComment`: minimum number of lines before property with a documentation comment or attribute -* `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 deleted file mode 100644 index 5e440cc..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_ReadonlyClass.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Readonly Class diff --git a/docs/description/SlevomatCodingStandard_Classes_RequireAbstractOrFinal.md b/docs/description/SlevomatCodingStandard_Classes_RequireAbstractOrFinal.md deleted file mode 100644 index cf50fff..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_RequireAbstractOrFinal.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Require Abstract Or Final - -Requires the class to be declared either as abstract or as final. diff --git a/docs/description/SlevomatCodingStandard_Classes_RequireConstructorPropertyPromotion.md b/docs/description/SlevomatCodingStandard_Classes_RequireConstructorPropertyPromotion.md deleted file mode 100644 index fcfeaa2..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_RequireConstructorPropertyPromotion.md +++ /dev/null @@ -1,7 +0,0 @@ -## Classes: Require Constructor Property Promotion - -Requires use of constructor property promotion. - -This sniff provides the following setting: - -* `enable`: either to enable or not this sniff. By default, it is enabled for PHP versions 8.0 or higher. diff --git a/docs/description/SlevomatCodingStandard_Classes_RequireMultiLineMethodSignature.md b/docs/description/SlevomatCodingStandard_Classes_RequireMultiLineMethodSignature.md deleted file mode 100644 index 1b3d094..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_RequireMultiLineMethodSignature.md +++ /dev/null @@ -1,15 +0,0 @@ -## Classes: Require Multi Line Method Signature - -Enforces method signature to be split to more lines so each parameter is on its own line. - -Sniff provides the following settings: - -* `minLineLength`: specifies min line length to enforce signature to be split. Use 0 value to enforce for all methods, regardless of length. -* `minParametersCount`: specifies min parameters count to enforce signature to be split. - -* `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_RequireSelfReference.md b/docs/description/SlevomatCodingStandard_Classes_RequireSelfReference.md deleted file mode 100644 index 40468ab..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_RequireSelfReference.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Require Self Reference - -Requires `self` for local reference. diff --git a/docs/description/SlevomatCodingStandard_Classes_RequireSingleLineMethodSignature.md b/docs/description/SlevomatCodingStandard_Classes_RequireSingleLineMethodSignature.md deleted file mode 100644 index 9cadc69..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_RequireSingleLineMethodSignature.md +++ /dev/null @@ -1,11 +0,0 @@ -## Classes: Require Single Line Method Signature - -Enforces method signature to be on a single line. - -Sniff provides the following settings: - -* `maxLineLength`: specifies max allowed line length. If signature fit on it, it's enforced. Use 0 value to enforce for all methods, regardless of length. - -* `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. diff --git a/docs/description/SlevomatCodingStandard_Classes_SuperfluousAbstractClassNaming.md b/docs/description/SlevomatCodingStandard_Classes_SuperfluousAbstractClassNaming.md deleted file mode 100644 index ab3e1ea..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_SuperfluousAbstractClassNaming.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Superfluous Abstract Class Naming - -Reports use of superfluous prefix or suffix "Abstract" for abstract classes. diff --git a/docs/description/SlevomatCodingStandard_Classes_SuperfluousErrorNaming.md b/docs/description/SlevomatCodingStandard_Classes_SuperfluousErrorNaming.md deleted file mode 100644 index c767c10..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_SuperfluousErrorNaming.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Superfluous Error Naming - -Reports use of superfluous suffix "Error" for errors. diff --git a/docs/description/SlevomatCodingStandard_Classes_SuperfluousExceptionNaming.md b/docs/description/SlevomatCodingStandard_Classes_SuperfluousExceptionNaming.md deleted file mode 100644 index fcf1849..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_SuperfluousExceptionNaming.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Superfluous Exception Naming - -Reports use of superfluous suffix "Exception" for exceptions. diff --git a/docs/description/SlevomatCodingStandard_Classes_SuperfluousInterfaceNaming.md b/docs/description/SlevomatCodingStandard_Classes_SuperfluousInterfaceNaming.md deleted file mode 100644 index 489c0a9..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_SuperfluousInterfaceNaming.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Superfluous Interface Naming - -Reports use of superfluous prefix or suffix "Interface" for interfaces. diff --git a/docs/description/SlevomatCodingStandard_Classes_SuperfluousTraitNaming.md b/docs/description/SlevomatCodingStandard_Classes_SuperfluousTraitNaming.md deleted file mode 100644 index d57e03c..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_SuperfluousTraitNaming.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Superfluous Trait Naming - -Reports use of superfluous suffix "Trait" for traits. diff --git a/docs/description/SlevomatCodingStandard_Classes_TraitUseDeclaration.md b/docs/description/SlevomatCodingStandard_Classes_TraitUseDeclaration.md deleted file mode 100644 index 355f1ae..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_TraitUseDeclaration.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Trait Use Declaration - -Prohibits multiple traits separated by commas in one `use` statement. diff --git a/docs/description/SlevomatCodingStandard_Classes_TraitUseOrder.md b/docs/description/SlevomatCodingStandard_Classes_TraitUseOrder.md deleted file mode 100644 index 6dce7de..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_TraitUseOrder.md +++ /dev/null @@ -1,7 +0,0 @@ -## 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_Classes_TraitUseSpacing.md b/docs/description/SlevomatCodingStandard_Classes_TraitUseSpacing.md deleted file mode 100644 index e62d7f9..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_TraitUseSpacing.md +++ /dev/null @@ -1,11 +0,0 @@ -## Classes: Trait Use Spacing - -Enforces configurable number of lines before first `use`, after last `use` and between two `use` statements. - -Sniff provides the following settings: - -* `linesCountBeforeFirstUse`: allows to configure the number of lines before first `use`. -* `linesCountBeforeFirstUseWhenFirstInClass`: allows to configure the number of lines before first `use` when the `use` is the first statement in the class. -* `linesCountBetweenUses`: allows to configure the number of lines between two `use` statements. -* `linesCountAfterLastUse`: allows to configure the number of lines after last `use`. -* `linesCountAfterLastUseWhenLastInClass`: allows to configure the number of lines after last `use` when the `use` is the last statement in the class. diff --git a/docs/description/SlevomatCodingStandard_Classes_UselessLateStaticBinding.md b/docs/description/SlevomatCodingStandard_Classes_UselessLateStaticBinding.md deleted file mode 100644 index 4a56745..0000000 --- a/docs/description/SlevomatCodingStandard_Classes_UselessLateStaticBinding.md +++ /dev/null @@ -1,3 +0,0 @@ -## Classes: Useless Late Static Binding - -Reports useless late static binding. diff --git a/docs/description/SlevomatCodingStandard_Commenting_AnnotationName.md b/docs/description/SlevomatCodingStandard_Commenting_AnnotationName.md deleted file mode 100644 index a5f3a65..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_AnnotationName.md +++ /dev/null @@ -1,8 +0,0 @@ -## Commenting: Annotation Name - -Reports incorrect annotation name. It reports standard annotation names used by phpDocumentor, PHPUnit, PHPStan and Psalm by default. -Unknown annotation names are ignored. - -Sniff provides the following settings: - -* `annotations`: allows to configure which annotations are checked and how. diff --git a/docs/description/SlevomatCodingStandard_Commenting_DeprecatedAnnotationDeclaration.md b/docs/description/SlevomatCodingStandard_Commenting_DeprecatedAnnotationDeclaration.md deleted file mode 100644 index f371206..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_DeprecatedAnnotationDeclaration.md +++ /dev/null @@ -1,3 +0,0 @@ -## Commenting: Deprecated Annotation Declaration - -Reports `@deprecated` annotations without description. diff --git a/docs/description/SlevomatCodingStandard_Commenting_DisallowCommentAfterCode.md b/docs/description/SlevomatCodingStandard_Commenting_DisallowCommentAfterCode.md deleted file mode 100644 index f628d83..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_DisallowCommentAfterCode.md +++ /dev/null @@ -1,3 +0,0 @@ -## Commenting: Disallow Comment After Code - -Sniff disallows comments after code at the same line. diff --git a/docs/description/SlevomatCodingStandard_Commenting_DisallowOneLinePropertyDocComment.md b/docs/description/SlevomatCodingStandard_Commenting_DisallowOneLinePropertyDocComment.md deleted file mode 100644 index b1e0bd3..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_DisallowOneLinePropertyDocComment.md +++ /dev/null @@ -1,3 +0,0 @@ -## Commenting: Disallow One Line Property Doc Comment - -Sniff requires comments with single-line content to be written as multi-liners. diff --git a/docs/description/SlevomatCodingStandard_Commenting_DocCommentSpacing.md b/docs/description/SlevomatCodingStandard_Commenting_DocCommentSpacing.md deleted file mode 100644 index a61effe..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_DocCommentSpacing.md +++ /dev/null @@ -1,35 +0,0 @@ -## Commenting: Doc Comment Spacing - -Enforces configurable number of lines before first content (description or annotation), after last content (description or annotation), -between description and annotations, between two different annotation types (eg. between `@param` and `@return`). - -Sniff provides the following settings: - -* `linesCountBeforeFirstContent`: allows to configure the number of lines before first content (description or annotation). -* `linesCountBetweenDescriptionAndAnnotations`: allows to configure the number of lines between description and annotations. -* `linesCountBetweenDifferentAnnotationsTypes`: allows to configure the number of lines between two different annotation types. -* `linesCountBetweenAnnotationsGroups`: allows to configure the number of lines between annotation groups. -* `linesCountAfterLastContent`: allows to configure the number of lines after last content (description or annotation). -* `annotationsGroups`: allows to configure order of annotation groups and even order of annotations in every group. Supports prefixes, eg. `@ORM\`. - -```xml - - - - - - - - -``` - -If `annotationsGroups` is set, `linesCountBetweenDifferentAnnotationsTypes` is ignored and `linesCountBetweenAnnotationsGroups` is applied. -If `annotationsGroups` is not set, `linesCountBetweenAnnotationsGroups` is ignored and `linesCountBetweenDifferentAnnotationsTypes` is applied. - -Annotations not in any group are placed to automatically created last group. diff --git a/docs/description/SlevomatCodingStandard_Commenting_EmptyComment.md b/docs/description/SlevomatCodingStandard_Commenting_EmptyComment.md deleted file mode 100644 index 6c66216..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_EmptyComment.md +++ /dev/null @@ -1,3 +0,0 @@ -## Commenting: Empty Comment - -Reports empty comments. diff --git a/docs/description/SlevomatCodingStandard_Commenting_ForbiddenAnnotations.md b/docs/description/SlevomatCodingStandard_Commenting_ForbiddenAnnotations.md deleted file mode 100644 index e1c817f..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_ForbiddenAnnotations.md +++ /dev/null @@ -1,12 +0,0 @@ -## Commenting: Forbidden Annotations - -Reports forbidden annotations. No annotations are forbidden by default, the configuration is completely up to the user. It's recommended to forbid obsolete and inappropriate annotations like: - -* `@author`, `@created`, `@version`: we have version control systems. -* `@package`: we have namespaces. -* `@copyright`, `@license`: it's not necessary to repeat licensing information in each file. -* `@throws`: it's not possible to enforce this annotation and the information can become outdated. - -Sniff provides the following settings: - -* `forbiddenAnnotations`: allows to configure which annotations are forbidden to be used. diff --git a/docs/description/SlevomatCodingStandard_Commenting_ForbiddenComments.md b/docs/description/SlevomatCodingStandard_Commenting_ForbiddenComments.md deleted file mode 100644 index 78bbee6..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_ForbiddenComments.md +++ /dev/null @@ -1,10 +0,0 @@ -## Commenting: Forbidden Comments - -Reports forbidden comments in descriptions. Nothing is forbidden by default, the configuration is completely up to the user. It's recommended to forbid generated or inappropriate messages like: - -* `Constructor.` -* `Created by PhpStorm.` - -Sniff provides the following settings: - -* `forbiddenCommentPatterns`: allows to configure which comments are forbidden to be used. This is an array of regular expressions (PCRE) with delimiters. diff --git a/docs/description/SlevomatCodingStandard_Commenting_InlineDocCommentDeclaration.md b/docs/description/SlevomatCodingStandard_Commenting_InlineDocCommentDeclaration.md deleted file mode 100644 index d017222..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_InlineDocCommentDeclaration.md +++ /dev/null @@ -1,8 +0,0 @@ -## Commenting: Inline Doc Comment Declaration - -Reports invalid inline phpDocs with `@var`. - -Sniff provides the following settings: - -* `allowDocCommentAboveReturn`: Allows documentation comments without variable name above `return` statement. -* `allowAboveNonAssignment`: Allows documentation comments above non-assignment if the line contains the right variable name. diff --git a/docs/description/SlevomatCodingStandard_Commenting_RequireOneDocComment.md b/docs/description/SlevomatCodingStandard_Commenting_RequireOneDocComment.md deleted file mode 100644 index dff41e1..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_RequireOneDocComment.md +++ /dev/null @@ -1,3 +0,0 @@ -## 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_RequireOneLineDocComment.md b/docs/description/SlevomatCodingStandard_Commenting_RequireOneLineDocComment.md deleted file mode 100644 index 1f69ab6..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_RequireOneLineDocComment.md +++ /dev/null @@ -1,3 +0,0 @@ -## Commenting: Require One Line Doc Comment - -Sniff requires comments with single-line content to be written as one-liners. diff --git a/docs/description/SlevomatCodingStandard_Commenting_RequireOneLinePropertyDocComment.md b/docs/description/SlevomatCodingStandard_Commenting_RequireOneLinePropertyDocComment.md deleted file mode 100644 index bccdfad..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_RequireOneLinePropertyDocComment.md +++ /dev/null @@ -1,3 +0,0 @@ -## Commenting: Require One Line Property Doc Comment - -Requires property comments with single-line content to be written as one-liners. diff --git a/docs/description/SlevomatCodingStandard_Commenting_ThrowsAnnotationsOrder.md b/docs/description/SlevomatCodingStandard_Commenting_ThrowsAnnotationsOrder.md deleted file mode 100644 index 2733340..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_ThrowsAnnotationsOrder.md +++ /dev/null @@ -1,7 +0,0 @@ -## 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 deleted file mode 100644 index 9f9189c..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_UselessFunctionDocComment.md +++ /dev/null @@ -1,8 +0,0 @@ -## Commenting: Useless Function Doc Comment - -* Checks for useless doc comments. If the native method declaration contains everything and the phpDoc does not add anything useful, it's reported as useless and can optionally be automatically removed with `phpcbf`. -* Some phpDocs might still be useful even if they do not add any typehint information. They can contain textual descriptions of code elements and also some meaningful annotations like `@expectException` or `@dataProvider`. - -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[]`. diff --git a/docs/description/SlevomatCodingStandard_Commenting_UselessInheritDocComment.md b/docs/description/SlevomatCodingStandard_Commenting_UselessInheritDocComment.md deleted file mode 100644 index 2dfae0c..0000000 --- a/docs/description/SlevomatCodingStandard_Commenting_UselessInheritDocComment.md +++ /dev/null @@ -1,3 +0,0 @@ -## Commenting: Useless Inherit Doc Comment - -Reports documentation comments containing only `{@inheritDoc}` annotation because inheritance is automatic, and it's not needed to use a special annotation for it. diff --git a/docs/description/SlevomatCodingStandard_Complexity_Cognitive.md b/docs/description/SlevomatCodingStandard_Complexity_Cognitive.md deleted file mode 100644 index 097ed93..0000000 --- a/docs/description/SlevomatCodingStandard_Complexity_Cognitive.md +++ /dev/null @@ -1,8 +0,0 @@ -## Complexity: Cognitive - -Enforces maximum [cognitive complexity](https://www.sonarsource.com/docs/CognitiveComplexity.pdf) for functions. - -Sniff provides the following setting: - -* `warningThreshold` (default: `6`) -* `errorThreshold` (default: `6`) diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_AssignmentInCondition.md b/docs/description/SlevomatCodingStandard_ControlStructures_AssignmentInCondition.md deleted file mode 100644 index 00c2f09..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_AssignmentInCondition.md +++ /dev/null @@ -1,22 +0,0 @@ -## ControlStructures: Assignment In Condition - -Disallows assignments in `if`, `elseif` and `do-while` loop conditions: - -```php -if ($file = findFile($path)) { - -} -``` - -Assignment in `while` loop condition is specifically allowed because it's commonly used. - -This is a great addition to already existing `SlevomatCodingStandard.ControlStructures.DisallowYodaComparison` because it prevents the danger of assigning something by mistake instead of using a comparison operator like `===`. - -Sniff provides the following settings: -* `ignoreAssignmentsInsideFunctionCalls`: ignores assignment inside function calls, like this: - -```php -if (in_array(1, $haystack, $strict = true)) { - -} -``` diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_BlockControlStructureSpacing.md b/docs/description/SlevomatCodingStandard_ControlStructures_BlockControlStructureSpacing.md deleted file mode 100644 index ae67275..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_BlockControlStructureSpacing.md +++ /dev/null @@ -1,24 +0,0 @@ -## ControlStructures: Block Control Structure Spacing - -Enforces configurable number of lines around block control structures (if, foreach, ...). - -Sniff provides the following settings: - -* `linesCountBefore`: allows to configure the number of lines before control structure. -* `linesCountBeforeFirst`: allows to configure the number of lines before first control structure. -* `linesCountAfter`: allows to configure the number of lines after control structure. -* `linesCountAfterLast`: allows to configure the number of lines after last control structure. -* `controlStructures`: allows to narrow the list of checked control structures. - -For example, with the following setting, only `if` and `switch` keywords are checked. - -```xml - - - - - - - - -``` diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowContinueWithoutIntegerOperandInSwitch.md b/docs/description/SlevomatCodingStandard_ControlStructures_DisallowContinueWithoutIntegerOperandInSwitch.md deleted file mode 100644 index f4f8906..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowContinueWithoutIntegerOperandInSwitch.md +++ /dev/null @@ -1,3 +0,0 @@ -## ControlStructures: Disallow Continue Without Integer Operand In Switch - -Disallows use of `continue` without integer operand in `switch` because it emits a warning in PHP 7.3 and higher. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowEmpty.md b/docs/description/SlevomatCodingStandard_ControlStructures_DisallowEmpty.md deleted file mode 100644 index 9c1eec9..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowEmpty.md +++ /dev/null @@ -1,3 +0,0 @@ -## ControlStructures: Disallow Empty - -Disallows use of `empty()`. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowNullSafeObjectOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_DisallowNullSafeObjectOperator.md deleted file mode 100644 index 6c2bee0..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowNullSafeObjectOperator.md +++ /dev/null @@ -1,3 +0,0 @@ -## ControlStructures: Disallow Null Safe Object Operator - -Disallows using `?->` operator. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowShortTernaryOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_DisallowShortTernaryOperator.md deleted file mode 100644 index 25f1cb0..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowShortTernaryOperator.md +++ /dev/null @@ -1,7 +0,0 @@ -## ControlStructures: Disallow Short Ternary Operator - -Disallows short ternary operator `?:`. - -Sniff provides the following settings: - -* `fixable`: the sniff is fixable by default, however in strict code it makes sense to forbid this weakly typed form of ternary altogether, you can disable fixability with this option. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowTrailingMultiLineTernaryOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_DisallowTrailingMultiLineTernaryOperator.md deleted file mode 100644 index d820eb3..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowTrailingMultiLineTernaryOperator.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Disallow Trailing Multi Line Ternary Operator diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowYodaComparison.md b/docs/description/SlevomatCodingStandard_ControlStructures_DisallowYodaComparison.md deleted file mode 100644 index ab57258..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_DisallowYodaComparison.md +++ /dev/null @@ -1,2 +0,0 @@ -## ControlStructures: Disallow Yoda Comparison - diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_EarlyExit.md b/docs/description/SlevomatCodingStandard_ControlStructures_EarlyExit.md deleted file mode 100644 index d4f8c99..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_EarlyExit.md +++ /dev/null @@ -1,41 +0,0 @@ -## ControlStructures: Early Exit - -Requires use of early exit. - -Sniff provides the following settings: - -* `ignoreStandaloneIfInScope`: ignores `if` that is standalone in scope, like this: - -```php -foreach ($values as $value) { - if ($value) { - doSomething(); - } -} -``` - -* `ignoreOneLineTrailingIf`: ignores `if` that has one line content and is on the last position in scope, like this: - -```php -foreach ($values as $value) { - $value .= 'whatever'; - - if ($value) { - doSomething(); - } -} -``` - -* `ignoreTrailingIfWithOneInstruction`: ignores `if` that has only one instruction and is on the last position in scope, like this: - -```php -foreach ($values as $value) { - $value .= 'whatever'; - - if ($value) { - doSomething(function () { - // Anything - }); - } -} -``` diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_JumpStatementsSpacing.md b/docs/description/SlevomatCodingStandard_ControlStructures_JumpStatementsSpacing.md deleted file mode 100644 index 5ce1c54..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_JumpStatementsSpacing.md +++ /dev/null @@ -1,28 +0,0 @@ -## ControlStructures: Jump Statements Spacing - -Enforces configurable number of lines around jump statements (continue, return, ...). - -Sniff provides the following settings: - -* `allowSingleLineYieldStacking`: whether or not to allow multiple yield/yield from statements in a row without blank lines. -* `linesCountBefore`: allows to configure the number of lines before jump statement. -* `linesCountBeforeFirst`: allows to configure the number of lines before first jump statement. -* `linesCountBeforeWhenFirstInCaseOrDefault`: allows to configure the number of lines before jump statement that is first in `case` or `default` -* `linesCountAfter`: allows to configure the number of lines after jump statement. -* `linesCountAfterLast`: allows to configure the number of lines after last jump statement. -* `linesCountAfterWhenLastInCaseOrDefault`: allows to configure the number of lines after jump statement that is last in `case` or `default` -* `linesCountAfterWhenLastInLastCaseOrDefault`: allows to configure the number of lines after jump statement that is last in last `case` or `default` -* `jumpStatements`: allows to narrow the list of checked jump statements. - -For example, with the following setting, only `continue` and `break` keywords are checked. - -```xml - - - - - - - - -``` diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_LanguageConstructWithParentheses.md b/docs/description/SlevomatCodingStandard_ControlStructures_LanguageConstructWithParentheses.md deleted file mode 100644 index e22a4c1..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_LanguageConstructWithParentheses.md +++ /dev/null @@ -1,3 +0,0 @@ -## ControlStructures: Language Construct With Parentheses - -`LanguageConstructWithParenthesesSniff` checks and fixes language construct used with parentheses. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_NewWithParentheses.md b/docs/description/SlevomatCodingStandard_ControlStructures_NewWithParentheses.md deleted file mode 100644 index eb31d91..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_NewWithParentheses.md +++ /dev/null @@ -1,3 +0,0 @@ -## ControlStructures: New With Parentheses - -Requires `new` with parentheses. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_NewWithoutParentheses.md b/docs/description/SlevomatCodingStandard_ControlStructures_NewWithoutParentheses.md deleted file mode 100644 index 6dfe336..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_NewWithoutParentheses.md +++ /dev/null @@ -1,3 +0,0 @@ -## ControlStructures: New Without Parentheses - -Reports `new` with useless parentheses. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireMultiLineCondition.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireMultiLineCondition.md deleted file mode 100644 index b28cd12..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireMultiLineCondition.md +++ /dev/null @@ -1,10 +0,0 @@ -## ControlStructures: Require Multi Line Condition - -Enforces conditions of `if`, `elseif`, `while` and `do-while` with one or more boolean operators to be split to more lines -so each condition part is on its own line. - -Sniff provides the following settings: - -* `minLineLength`: specifies minimum line length to enforce condition to be split. Use 0 value to enforce for all conditions, regardless of length. -* `booleanOperatorOnPreviousLine`: boolean operator is placed at the end of previous line when fixing. -* `alwaysSplitAllConditionParts`: require all condition parts to be on its own line - it reports error even if condition is already multi-line but there are some condition parts on the same line. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireMultiLineTernaryOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireMultiLineTernaryOperator.md deleted file mode 100644 index 0ec9a54..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireMultiLineTernaryOperator.md +++ /dev/null @@ -1,8 +0,0 @@ -## ControlStructures: Require Multi Line Ternary Operator - -Ternary operator has to be reformatted to more lines when the line length exceeds the given limit. - -Sniff provides the following settings: - -* `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 deleted file mode 100644 index 9f39c27..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireNullCoalesceEqualOperator.md +++ /dev/null @@ -1,8 +0,0 @@ -## ControlStructures: Require Null Coalesce Equal Operator - -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_RequireNullCoalesceOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireNullCoalesceOperator.md deleted file mode 100644 index e22fbb8..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireNullCoalesceOperator.md +++ /dev/null @@ -1,3 +0,0 @@ -## ControlStructures: Require Null Coalesce Operator - -Requires use of null coalesce operator when possible. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireNullSafeObjectOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireNullSafeObjectOperator.md deleted file mode 100644 index c05748b..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireNullSafeObjectOperator.md +++ /dev/null @@ -1,7 +0,0 @@ -## ControlStructures: Require Null Safe Object Operator - -Requires using `?->` operator. - -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. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireShortTernaryOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireShortTernaryOperator.md deleted file mode 100644 index 1dd56d6..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireShortTernaryOperator.md +++ /dev/null @@ -1,3 +0,0 @@ -## ControlStructures: Require Short Ternary Operator - -Requires short ternary operator `?:` when possible. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireSingleLineCondition.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireSingleLineCondition.md deleted file mode 100644 index a2620d3..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireSingleLineCondition.md +++ /dev/null @@ -1,8 +0,0 @@ -## ControlStructures: Require Single Line Condition - -Enforces conditions of `if`, `elseif`, `while` and `do-while` to be on a single line. - -Sniff provides the following settings: - -* `maxLineLength`: specifies max allowed line length. If condition (and the rest of the line) would fit on it, it's enforced. Use 0 value to enforce for all conditions, regardless of length. -* `alwaysForSimpleConditions`: allows to enforce single line for all simple conditions (i.e no `&&`, `||` or `xor`), regardless of length. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireTernaryOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireTernaryOperator.md deleted file mode 100644 index ab207b2..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireTernaryOperator.md +++ /dev/null @@ -1,7 +0,0 @@ -## ControlStructures: Require Ternary Operator - -Requires ternary operator when possible. - -Sniff provides the following settings: - -* `ignoreMultiLine` (default: `false`): ignores multi-line statements. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_RequireYodaComparison.md b/docs/description/SlevomatCodingStandard_ControlStructures_RequireYodaComparison.md deleted file mode 100644 index d00ebe3..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_RequireYodaComparison.md +++ /dev/null @@ -1,11 +0,0 @@ -## ControlStructures: Require Yoda Comparison - -[Yoda conditions](https://en.wikipedia.org/wiki/Yoda_conditions) decrease code comprehensibility and readability by switching operands around comparison operators forcing the reader to read the code in an unnatural way. - -Sniff provides the following settings: - -* `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. - -However, if you prefer Yoda conditions, you can use `RequireYodaComparison`. diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_UselessIfConditionWithReturn.md b/docs/description/SlevomatCodingStandard_ControlStructures_UselessIfConditionWithReturn.md deleted file mode 100644 index 05cea2e..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_UselessIfConditionWithReturn.md +++ /dev/null @@ -1,7 +0,0 @@ -## ControlStructures: Useless If Condition With Return - -Reports useless conditions where both branches return `true` or `false`. - -Sniff provides the following settings: - -* `assumeAllConditionExpressionsAreAlreadyBoolean` (default: `false`). diff --git a/docs/description/SlevomatCodingStandard_ControlStructures_UselessTernaryOperator.md b/docs/description/SlevomatCodingStandard_ControlStructures_UselessTernaryOperator.md deleted file mode 100644 index feaa904..0000000 --- a/docs/description/SlevomatCodingStandard_ControlStructures_UselessTernaryOperator.md +++ /dev/null @@ -1,7 +0,0 @@ -## ControlStructures: Useless Ternary Operator - -Reports useless ternary operator where both branches return `true` or `false`. - -Sniff provides the following settings: - -* `assumeAllConditionExpressionsAreAlreadyBoolean` (default: `false`). diff --git a/docs/description/SlevomatCodingStandard_Exceptions_CatchExceptionsOrder.md b/docs/description/SlevomatCodingStandard_Exceptions_CatchExceptionsOrder.md deleted file mode 100644 index 9dd4e02..0000000 --- a/docs/description/SlevomatCodingStandard_Exceptions_CatchExceptionsOrder.md +++ /dev/null @@ -1,7 +0,0 @@ -## 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_Exceptions_DeadCatch.md b/docs/description/SlevomatCodingStandard_Exceptions_DeadCatch.md deleted file mode 100644 index 6340f9c..0000000 --- a/docs/description/SlevomatCodingStandard_Exceptions_DeadCatch.md +++ /dev/null @@ -1,13 +0,0 @@ -## Exceptions: Dead Catch - -This sniff finds unreachable catch blocks: - -```php -try { - doStuff(); -} catch (\Throwable $e) { - log($e); -} catch (\InvalidArgumentException $e) { - // unreachable! -} -``` diff --git a/docs/description/SlevomatCodingStandard_Exceptions_DisallowNonCapturingCatch.md b/docs/description/SlevomatCodingStandard_Exceptions_DisallowNonCapturingCatch.md deleted file mode 100644 index 00369dc..0000000 --- a/docs/description/SlevomatCodingStandard_Exceptions_DisallowNonCapturingCatch.md +++ /dev/null @@ -1,3 +0,0 @@ -## Exceptions: Disallow Non Capturing Catch - -This sniff forbids use of non-capturing catch introduced in PHP 8.0 [PHP RFC: non-capturing catches](https://wiki.php.net/rfc/non-capturing_catches). diff --git a/docs/description/SlevomatCodingStandard_Exceptions_ReferenceThrowableOnly.md b/docs/description/SlevomatCodingStandard_Exceptions_ReferenceThrowableOnly.md deleted file mode 100644 index b6b44c0..0000000 --- a/docs/description/SlevomatCodingStandard_Exceptions_ReferenceThrowableOnly.md +++ /dev/null @@ -1,3 +0,0 @@ -## Exceptions: Reference Throwable Only - -In PHP 7.0, a [`Throwable` interface was added](https://wiki.php.net/rfc/throwable-interface) that allows catching and handling errors in more cases than `Exception` previously allowed. So, if the catch statement contained `Exception` on PHP 5.x, it means it should probably be rewritten to reference `Throwable` on PHP 7.x. This sniff enforces that. diff --git a/docs/description/SlevomatCodingStandard_Exceptions_RequireNonCapturingCatch.md b/docs/description/SlevomatCodingStandard_Exceptions_RequireNonCapturingCatch.md deleted file mode 100644 index b4d8a82..0000000 --- a/docs/description/SlevomatCodingStandard_Exceptions_RequireNonCapturingCatch.md +++ /dev/null @@ -1,7 +0,0 @@ -## Exceptions: Require Non Capturing Catch - -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. - -It requires non-capturing catch when the variable with exception is not used. diff --git a/docs/description/SlevomatCodingStandard_Files_FileLength.md b/docs/description/SlevomatCodingStandard_Files_FileLength.md deleted file mode 100644 index ae99ed3..0000000 --- a/docs/description/SlevomatCodingStandard_Files_FileLength.md +++ /dev/null @@ -1,7 +0,0 @@ -## Files: File Length - -Disallows long files. This sniff provides the following settings: - -* `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_Files_LineLength.md b/docs/description/SlevomatCodingStandard_Files_LineLength.md deleted file mode 100644 index 84316d1..0000000 --- a/docs/description/SlevomatCodingStandard_Files_LineLength.md +++ /dev/null @@ -1,9 +0,0 @@ -## Files: Line Length - -Enforces maximum length of a single line of code. - -Sniff provides the following settings: - -* `lineLengthLimit`: actual limit of the line length -* `ignoreComments`: whether to ignore line length of comments -* `ignoreImports`: whether to ignore line length of import (use) statements diff --git a/docs/description/SlevomatCodingStandard_Files_TypeNameMatchesFileName.md b/docs/description/SlevomatCodingStandard_Files_TypeNameMatchesFileName.md deleted file mode 100644 index 08aae0b..0000000 --- a/docs/description/SlevomatCodingStandard_Files_TypeNameMatchesFileName.md +++ /dev/null @@ -1,39 +0,0 @@ -## Files: Type Name Matches File Name - -For projects not following the [PSR-0](http://www.php-fig.org/psr/psr-0/) or [PSR-4](http://www.php-fig.org/psr/psr-4/) autoloading standards, this sniff checks whether a namespace and a name of a class/interface/trait follows agreed-on way to organize code into directories and files. - -Other than enforcing that the type name must match the name of the file it's contained in, this sniff is very configurable. Consider the following sample configuration: - -```xml - - - - - - - - - - - - - - - - - - - - - - - - -``` - -Sniff provides the following settings: - -* `rootNamespaces` property expects configuration similar to PSR-4 - project directories mapped to certain namespaces. -* `skipDirs` are not taken into consideration when comparing a path to a namespace. For example, with the above settings, file at path `app/services/Product/Product.php` is expected to contain `Slevomat\Product\Product`, not `Slevomat\services\Product\Product`. -* `extensions`: allow different file extensions. Default is `php`. -* `ignoredNamespaces`: sniff is not performed on these namespaces. diff --git a/docs/description/SlevomatCodingStandard_Functions_ArrowFunctionDeclaration.md b/docs/description/SlevomatCodingStandard_Functions_ArrowFunctionDeclaration.md deleted file mode 100644 index ba8fb48..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_ArrowFunctionDeclaration.md +++ /dev/null @@ -1,10 +0,0 @@ -## Functions: Arrow Function Declaration - -Checks `fn` declaration. - -Sniff provides the following settings: - -* `spacesCountAfterKeyword`: the number of spaces after `fn`. -* `spacesCountBeforeArrow`: the number of spaces before `=>`. -* `spacesCountAfterArrow`: the number of spaces after `=>`. -* `allowMultiLine`: allows multi-line declaration. diff --git a/docs/description/SlevomatCodingStandard_Functions_DisallowArrowFunction.md b/docs/description/SlevomatCodingStandard_Functions_DisallowArrowFunction.md deleted file mode 100644 index f4e00c1..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_DisallowArrowFunction.md +++ /dev/null @@ -1,3 +0,0 @@ -## Functions: Disallow Arrow Function - -Disallows arrow functions. diff --git a/docs/description/SlevomatCodingStandard_Functions_DisallowEmptyFunction.md b/docs/description/SlevomatCodingStandard_Functions_DisallowEmptyFunction.md deleted file mode 100644 index a9c1415..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_DisallowEmptyFunction.md +++ /dev/null @@ -1,3 +0,0 @@ -## Functions: Disallow Empty Function - -Reports empty functions body and requires at least a comment inside. diff --git a/docs/description/SlevomatCodingStandard_Functions_DisallowNamedArguments.md b/docs/description/SlevomatCodingStandard_Functions_DisallowNamedArguments.md deleted file mode 100644 index 55be9d5..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_DisallowNamedArguments.md +++ /dev/null @@ -1,3 +0,0 @@ -## Functions: Disallow Named Arguments - -This sniff disallows usage of named arguments. diff --git a/docs/description/SlevomatCodingStandard_Functions_DisallowTrailingCommaInCall.md b/docs/description/SlevomatCodingStandard_Functions_DisallowTrailingCommaInCall.md deleted file mode 100644 index 7c7362f..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_DisallowTrailingCommaInCall.md +++ /dev/null @@ -1,7 +0,0 @@ -## Functions: Disallow Trailing Comma In Call - -This sniff disallows trailing commas in multi-line calls. - -This sniff provides the following setting: - -* `onlySingleLine`: to enable checks only for single-line calls. diff --git a/docs/description/SlevomatCodingStandard_Functions_DisallowTrailingCommaInClosureUse.md b/docs/description/SlevomatCodingStandard_Functions_DisallowTrailingCommaInClosureUse.md deleted file mode 100644 index 31d8423..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_DisallowTrailingCommaInClosureUse.md +++ /dev/null @@ -1,7 +0,0 @@ -## Functions: Disallow Trailing Comma In Closure Use - -This sniff disallows trailing commas in multi-line `use` of closure declaration. - -This sniff provides the following setting: - -* `onlySingleLine`: to enable checks only for single-line `use` declarations. diff --git a/docs/description/SlevomatCodingStandard_Functions_DisallowTrailingCommaInDeclaration.md b/docs/description/SlevomatCodingStandard_Functions_DisallowTrailingCommaInDeclaration.md deleted file mode 100644 index 71e7a9f..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_DisallowTrailingCommaInDeclaration.md +++ /dev/null @@ -1,7 +0,0 @@ -## Functions: Disallow Trailing Comma In Declaration - -This sniff disallows trailing commas in multi-line declarations. - -This sniff provides the following setting: - -* `onlySingleLine`: to enable checks only for single-line declarations. diff --git a/docs/description/SlevomatCodingStandard_Functions_FunctionLength.md b/docs/description/SlevomatCodingStandard_Functions_FunctionLength.md deleted file mode 100644 index 0eac527..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_FunctionLength.md +++ /dev/null @@ -1,7 +0,0 @@ -## Functions: Function Length - -Disallows long functions. This sniff provides the following setting: - -* `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_NamedArgumentSpacing.md b/docs/description/SlevomatCodingStandard_Functions_NamedArgumentSpacing.md deleted file mode 100644 index a906c83..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_NamedArgumentSpacing.md +++ /dev/null @@ -1,3 +0,0 @@ -## Functions: Named Argument Spacing - -Checks spacing in named argument. diff --git a/docs/description/SlevomatCodingStandard_Functions_RequireArrowFunction.md b/docs/description/SlevomatCodingStandard_Functions_RequireArrowFunction.md deleted file mode 100644 index 4730a7d..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_RequireArrowFunction.md +++ /dev/null @@ -1,8 +0,0 @@ -## Functions: Require Arrow Function - -Requires arrow functions. - -Sniff provides the following settings: - -* `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 deleted file mode 100644 index 48cda6a..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_RequireMultiLineCall.md +++ /dev/null @@ -1,9 +0,0 @@ -## Functions: Require Multi Line Call - -Enforces function call to be split to more lines so each parameter is on its own line. - -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 deleted file mode 100644 index 857f801..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_RequireSingleLineCall.md +++ /dev/null @@ -1,8 +0,0 @@ -## Functions: Require Single Line Call - -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` (default: `true`): ignores calls with arrays, closures, arrow functions and nested calls. diff --git a/docs/description/SlevomatCodingStandard_Functions_RequireTrailingCommaInCall.md b/docs/description/SlevomatCodingStandard_Functions_RequireTrailingCommaInCall.md deleted file mode 100644 index 017e08f..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_RequireTrailingCommaInCall.md +++ /dev/null @@ -1,9 +0,0 @@ -## Functions: Require Trailing Comma In Call - -Commas after the last parameter in function or method call make adding a new parameter easier and result in a cleaner versioning diff. - -This sniff enforces trailing commas in multi-line calls. - -This sniff provides the following setting: - -* `enable`: either to enable or not this sniff. By default, it is enabled for PHP versions 7.3 or higher. diff --git a/docs/description/SlevomatCodingStandard_Functions_RequireTrailingCommaInClosureUse.md b/docs/description/SlevomatCodingStandard_Functions_RequireTrailingCommaInClosureUse.md deleted file mode 100644 index f5bfdd4..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_RequireTrailingCommaInClosureUse.md +++ /dev/null @@ -1,9 +0,0 @@ -## Functions: Require Trailing Comma In Closure Use - -Commas after the last inherited variable in multi-line `use` of closure declaration make adding a new variable easier and result in a cleaner versioning diff. - -This sniff enforces trailing commas in multi-line declarations. - -This sniff provides the following setting: - -* `enable`: either to enable or not this sniff. By default, it is enabled for PHP versions 8.0 or higher. diff --git a/docs/description/SlevomatCodingStandard_Functions_RequireTrailingCommaInDeclaration.md b/docs/description/SlevomatCodingStandard_Functions_RequireTrailingCommaInDeclaration.md deleted file mode 100644 index b8e7ac5..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_RequireTrailingCommaInDeclaration.md +++ /dev/null @@ -1,9 +0,0 @@ -## Functions: Require Trailing Comma In Declaration - -Commas after the last parameter in function or method declaration make adding a new parameter easier and result in a cleaner versioning diff. - -This sniff enforces trailing commas in multi-line declarations. - -This sniff provides the following setting: - -* `enable`: either to enable or not this sniff. By default, it is enabled for PHP versions 8.0 or higher. diff --git a/docs/description/SlevomatCodingStandard_Functions_StaticClosure.md b/docs/description/SlevomatCodingStandard_Functions_StaticClosure.md deleted file mode 100644 index 358d498..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_StaticClosure.md +++ /dev/null @@ -1,3 +0,0 @@ -## Functions: Static Closure - -Reports closures not using `$this` that are not declared `static`. diff --git a/docs/description/SlevomatCodingStandard_Functions_StrictCall.md b/docs/description/SlevomatCodingStandard_Functions_StrictCall.md deleted file mode 100644 index daa9b6c..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_StrictCall.md +++ /dev/null @@ -1,3 +0,0 @@ -## Functions: Strict Call - -Some functions have `$strict` parameter. This sniff reports calls to these functions without the parameter or with `$strict = false`. diff --git a/docs/description/SlevomatCodingStandard_Functions_UnusedInheritedVariablePassedToClosure.md b/docs/description/SlevomatCodingStandard_Functions_UnusedInheritedVariablePassedToClosure.md deleted file mode 100644 index a6c6980..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_UnusedInheritedVariablePassedToClosure.md +++ /dev/null @@ -1,3 +0,0 @@ -## Functions: Unused Inherited Variable Passed To Closure - -Looks for unused inherited variables passed to closure via `use`. diff --git a/docs/description/SlevomatCodingStandard_Functions_UnusedParameter.md b/docs/description/SlevomatCodingStandard_Functions_UnusedParameter.md deleted file mode 100644 index 923158f..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_UnusedParameter.md +++ /dev/null @@ -1,7 +0,0 @@ -## 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_Functions_UselessParameterDefaultValue.md b/docs/description/SlevomatCodingStandard_Functions_UselessParameterDefaultValue.md deleted file mode 100644 index 525dfae..0000000 --- a/docs/description/SlevomatCodingStandard_Functions_UselessParameterDefaultValue.md +++ /dev/null @@ -1,3 +0,0 @@ -## Functions: Useless Parameter Default Value - -Looks for useless parameter default value. diff --git a/docs/description/SlevomatCodingStandard_Namespaces_AlphabeticallySortedUses.md b/docs/description/SlevomatCodingStandard_Namespaces_AlphabeticallySortedUses.md deleted file mode 100644 index bec27c4..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_AlphabeticallySortedUses.md +++ /dev/null @@ -1,27 +0,0 @@ -## Namespaces: Alphabetically Sorted Uses - -Sniff checks whether `use` declarations at the top of a file are alphabetically sorted. Follows natural sorting and takes edge cases with special symbols into consideration. The following code snippet is an example of correctly sorted uses: - -```php -use LogableTrait; -use LogAware; -use LogFactory; -use LoggerInterface; -use LogLevel; -use LogStandard; -``` - -Sniff provides the following settings: - - -* `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 -use LogAware; -use LogFactory; -use LogLevel; -use LogStandard; -use LogableTrait; -use LoggerInterface; -``` diff --git a/docs/description/SlevomatCodingStandard_Namespaces_DisallowGroupUse.md b/docs/description/SlevomatCodingStandard_Namespaces_DisallowGroupUse.md deleted file mode 100644 index edf7d17..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_DisallowGroupUse.md +++ /dev/null @@ -1,3 +0,0 @@ -## Namespaces: Disallow Group Use - -[Group use declarations](https://wiki.php.net/rfc/group_use_declarations) are ugly, make diffs ugly and this sniff prohibits them. diff --git a/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedClassNameInAnnotation.md b/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedClassNameInAnnotation.md deleted file mode 100644 index 763a492..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedClassNameInAnnotation.md +++ /dev/null @@ -1,7 +0,0 @@ -## Namespaces: Fully Qualified Class Name In Annotation - -Enforces fully qualified names of classes and interfaces in phpDocs - in annotations. This results in unambiguous phpDocs. - -Sniff provides the following settings: - -* `ignoredAnnotationNames`: case-sensitive list of annotation names that the sniff should ignore. Useful for custom annotation names like `@apiParam` diff --git a/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedExceptions.md b/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedExceptions.md deleted file mode 100644 index d28aaa9..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedExceptions.md +++ /dev/null @@ -1,28 +0,0 @@ -## Namespaces: Fully Qualified Exceptions - -This sniff reduces confusion in the following code snippet: - -```php -try { - $this->foo(); -} catch (Exception $e) { - // Is this the general exception all exceptions must extend from? Or Exception from the current namespace? -} -``` - -All references to types named `Exception` or ending with `Exception` must be referenced via a fully qualified name: - -```php -try { - $this->foo(); -} catch (\FooCurrentNamespace\Exception $e) { - -} catch (\Exception $e) { - -} -``` - -Sniff provides the following settings: - -* Exceptions with different names can be configured in `specialExceptionNames` property. -* If your codebase uses classes that look like exceptions (because they have `Exception` or `Error` suffixes) but aren't, you can add them to `ignoredNames` property and the sniff won't enforce them to be fully qualified. Classes with `Error` suffix have to be added to ignored only if they are in the root namespace (like `LibXMLError`). diff --git a/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalConstants.md b/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalConstants.md deleted file mode 100644 index 7403a94..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalConstants.md +++ /dev/null @@ -1,8 +0,0 @@ -## Namespaces: Fully Qualified Global Constants - -All references to global constants must be referenced via a fully qualified name. - -Sniff provides the following settings: - -* `include`: list of global constants that must be referenced via FQN. If not set all constants are considered. -* `exclude`: list of global constants that are allowed not to be referenced via FQN. diff --git a/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalFunctions.md b/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalFunctions.md deleted file mode 100644 index 12415c1..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalFunctions.md +++ /dev/null @@ -1,9 +0,0 @@ -## Namespaces: Fully Qualified Global Functions - -All references to global functions must be referenced via a fully qualified name. - -Sniff provides the following settings: - -* `include`: list of global functions that must be referenced via FQN. If not set all functions are considered. -* `includeSpecialFunctions`: include complete list of PHP internal functions that could be optimized when referenced via FQN. -* `exclude`: list of global functions that are allowed not to be referenced via FQN. diff --git a/docs/description/SlevomatCodingStandard_Namespaces_MultipleUsesPerLine.md b/docs/description/SlevomatCodingStandard_Namespaces_MultipleUsesPerLine.md deleted file mode 100644 index 1fd7717..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_MultipleUsesPerLine.md +++ /dev/null @@ -1,7 +0,0 @@ -## Namespaces: Multiple Uses Per Line - -Prohibits multiple uses separated by commas: - -```php -use Foo, Bar; -``` diff --git a/docs/description/SlevomatCodingStandard_Namespaces_NamespaceDeclaration.md b/docs/description/SlevomatCodingStandard_Namespaces_NamespaceDeclaration.md deleted file mode 100644 index 5082e57..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_NamespaceDeclaration.md +++ /dev/null @@ -1,3 +0,0 @@ -## Namespaces: Namespace Declaration - -Enforces one space after `namespace`, disallows content between namespace name and semicolon and disallows use of bracketed syntax. diff --git a/docs/description/SlevomatCodingStandard_Namespaces_NamespaceSpacing.md b/docs/description/SlevomatCodingStandard_Namespaces_NamespaceSpacing.md deleted file mode 100644 index b416194..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_NamespaceSpacing.md +++ /dev/null @@ -1,8 +0,0 @@ -## Namespaces: Namespace Spacing - -Enforces configurable number of lines before and after `namespace`. - -Sniff provides the following settings: - -* `linesCountBeforeNamespace`: allows to configure the number of lines before `namespace`. -* `linesCountAfterNamespace`: allows to configure the number of lines after `namespace`. diff --git a/docs/description/SlevomatCodingStandard_Namespaces_ReferenceUsedNamesOnly.md b/docs/description/SlevomatCodingStandard_Namespaces_ReferenceUsedNamesOnly.md deleted file mode 100644 index 1d7ef34..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_ReferenceUsedNamesOnly.md +++ /dev/null @@ -1,19 +0,0 @@ -## Namespaces: Reference Used Names Only - -Sniff provides the following settings: - -* `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. -* `allowFullyQualifiedNameForCollidingFunctions`: allow fully qualified name for a function with a colliding use statement. -* `allowFullyQualifiedNameForCollidingConstants`: allow fully qualified name for a constant with a colliding use statement. -* `allowFullyQualifiedGlobalClasses`: allows using fully qualified classes from global space (i.e. `\DateTimeImmutable`). -* `allowFullyQualifiedGlobalFunctions`: allows using fully qualified functions from global space (i.e. `\phpversion()`). -* `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` (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_RequireOneNamespaceInFile.md b/docs/description/SlevomatCodingStandard_Namespaces_RequireOneNamespaceInFile.md deleted file mode 100644 index a6aacdd..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_RequireOneNamespaceInFile.md +++ /dev/null @@ -1,3 +0,0 @@ -## Namespaces: Require One Namespace In File - -Requires only one namespace in a file. diff --git a/docs/description/SlevomatCodingStandard_Namespaces_UnusedUses.md b/docs/description/SlevomatCodingStandard_Namespaces_UnusedUses.md deleted file mode 100644 index ac140e9..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_UnusedUses.md +++ /dev/null @@ -1,9 +0,0 @@ -## Namespaces: Unused Uses - -Looks for unused imports from other namespaces. - -Sniff provides the following settings: - -* `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_Namespaces_UseDoesNotStartWithBackslash.md b/docs/description/SlevomatCodingStandard_Namespaces_UseDoesNotStartWithBackslash.md deleted file mode 100644 index 1408a27..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_UseDoesNotStartWithBackslash.md +++ /dev/null @@ -1,7 +0,0 @@ -## Namespaces: Use Does Not Start With Backslash - -Disallows leading backslash in use statement: - -```php -use \Foo\Bar; -``` diff --git a/docs/description/SlevomatCodingStandard_Namespaces_UseFromSameNamespace.md b/docs/description/SlevomatCodingStandard_Namespaces_UseFromSameNamespace.md deleted file mode 100644 index 9a19e00..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_UseFromSameNamespace.md +++ /dev/null @@ -1,9 +0,0 @@ -## Namespaces: Use From Same Namespace - -Sniff prohibits uses from the same namespace: - -```php -namespace Foo; - -use Foo\Bar; -``` diff --git a/docs/description/SlevomatCodingStandard_Namespaces_UseOnlyWhitelistedNamespaces.md b/docs/description/SlevomatCodingStandard_Namespaces_UseOnlyWhitelistedNamespaces.md deleted file mode 100644 index 5a9ffb6..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_UseOnlyWhitelistedNamespaces.md +++ /dev/null @@ -1,12 +0,0 @@ -## Namespaces: Use Only Whitelisted Namespaces - -Sniff disallows uses of other than configured namespaces. - -Sniff provides the following settings: - -* `namespacesRequiredToUse`: namespaces in this array are the only ones allowed to be used. E.g. root project namespace. -* `allowUseFromRootNamespace`: also allow using top-level namespace: - -```php -use DateTimeImmutable; -``` diff --git a/docs/description/SlevomatCodingStandard_Namespaces_UseSpacing.md b/docs/description/SlevomatCodingStandard_Namespaces_UseSpacing.md deleted file mode 100644 index 7a1d3c1..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_UseSpacing.md +++ /dev/null @@ -1,9 +0,0 @@ -## Namespaces: Use Spacing - -Enforces configurable number of lines before first `use`, after last `use` and between two different types of `use` (eg. between `use function` and `use const`). Also enforces zero number of lines between same types of `use`. - -Sniff provides the following settings: - -* `linesCountBeforeFirstUse`: allows to configure the number of lines before first `use`. -* `linesCountBetweenUseTypes`: allows to configure the number of lines between two different types of `use`. -* `linesCountAfterLastUse`: allows to configure the number of lines after last `use`. diff --git a/docs/description/SlevomatCodingStandard_Namespaces_UselessAlias.md b/docs/description/SlevomatCodingStandard_Namespaces_UselessAlias.md deleted file mode 100644 index 7b5cf4d..0000000 --- a/docs/description/SlevomatCodingStandard_Namespaces_UselessAlias.md +++ /dev/null @@ -1,3 +0,0 @@ -## Namespaces: Useless Alias - -Looks for `use` alias that is same as unqualified name. diff --git a/docs/description/SlevomatCodingStandard_Numbers_DisallowNumericLiteralSeparator.md b/docs/description/SlevomatCodingStandard_Numbers_DisallowNumericLiteralSeparator.md deleted file mode 100644 index 5519b6b..0000000 --- a/docs/description/SlevomatCodingStandard_Numbers_DisallowNumericLiteralSeparator.md +++ /dev/null @@ -1,3 +0,0 @@ -## Numbers: Disallow Numeric Literal Separator - -Disallows numeric literal separators. diff --git a/docs/description/SlevomatCodingStandard_Numbers_RequireNumericLiteralSeparator.md b/docs/description/SlevomatCodingStandard_Numbers_RequireNumericLiteralSeparator.md deleted file mode 100644 index e555dfd..0000000 --- a/docs/description/SlevomatCodingStandard_Numbers_RequireNumericLiteralSeparator.md +++ /dev/null @@ -1,10 +0,0 @@ -## Numbers: Require Numeric Literal Separator - -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` (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_Operators_DisallowEqualOperators.md b/docs/description/SlevomatCodingStandard_Operators_DisallowEqualOperators.md deleted file mode 100644 index 8497d39..0000000 --- a/docs/description/SlevomatCodingStandard_Operators_DisallowEqualOperators.md +++ /dev/null @@ -1,3 +0,0 @@ -## Operators: Disallow Equal Operators - -Disallows using loose `==` and `!=` comparison operators. Use `===` and `!==` instead, they are much more secure and predictable. diff --git a/docs/description/SlevomatCodingStandard_Operators_DisallowIncrementAndDecrementOperators.md b/docs/description/SlevomatCodingStandard_Operators_DisallowIncrementAndDecrementOperators.md deleted file mode 100644 index 102af5a..0000000 --- a/docs/description/SlevomatCodingStandard_Operators_DisallowIncrementAndDecrementOperators.md +++ /dev/null @@ -1,3 +0,0 @@ -## Operators: Disallow Increment And Decrement Operators - -Disallows using `++` and `--` operators. diff --git a/docs/description/SlevomatCodingStandard_Operators_NegationOperatorSpacing.md b/docs/description/SlevomatCodingStandard_Operators_NegationOperatorSpacing.md deleted file mode 100644 index a5bb0aa..0000000 --- a/docs/description/SlevomatCodingStandard_Operators_NegationOperatorSpacing.md +++ /dev/null @@ -1,7 +0,0 @@ -## Operators: Negation Operator Spacing - -Checks if there is the same number of spaces after negation operator as expected. - -Sniff provides the following settings: - -* `spacesCount`: the number of spaces expected after the negation operator diff --git a/docs/description/SlevomatCodingStandard_Operators_RequireCombinedAssignmentOperator.md b/docs/description/SlevomatCodingStandard_Operators_RequireCombinedAssignmentOperator.md deleted file mode 100644 index cedda87..0000000 --- a/docs/description/SlevomatCodingStandard_Operators_RequireCombinedAssignmentOperator.md +++ /dev/null @@ -1,3 +0,0 @@ -## Operators: Require Combined Assignment Operator - -Requires using combined assignment operators, eg `+=`, `.=` etc. diff --git a/docs/description/SlevomatCodingStandard_Operators_RequireOnlyStandaloneIncrementAndDecrementOperators.md b/docs/description/SlevomatCodingStandard_Operators_RequireOnlyStandaloneIncrementAndDecrementOperators.md deleted file mode 100644 index 2a3d102..0000000 --- a/docs/description/SlevomatCodingStandard_Operators_RequireOnlyStandaloneIncrementAndDecrementOperators.md +++ /dev/null @@ -1,3 +0,0 @@ -## Operators: Require Only Standalone Increment And Decrement Operators - -Reports `++` and `--` operators not used standalone. diff --git a/docs/description/SlevomatCodingStandard_Operators_SpreadOperatorSpacing.md b/docs/description/SlevomatCodingStandard_Operators_SpreadOperatorSpacing.md deleted file mode 100644 index 93ba39e..0000000 --- a/docs/description/SlevomatCodingStandard_Operators_SpreadOperatorSpacing.md +++ /dev/null @@ -1,7 +0,0 @@ -## Operators: Spread Operator Spacing - -Enforces configurable number of spaces after the `...` operator. - -Sniff provides the following settings: - -* `spacesCountAfterOperator`: the number of spaces after the `...` operator. diff --git a/docs/description/SlevomatCodingStandard_PHP_DisallowDirectMagicInvokeCall.md b/docs/description/SlevomatCodingStandard_PHP_DisallowDirectMagicInvokeCall.md deleted file mode 100644 index 8e79942..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_DisallowDirectMagicInvokeCall.md +++ /dev/null @@ -1,3 +0,0 @@ -## PHP: Disallow Direct Magic Invoke Call - -Disallows direct call of `__invoke()`. diff --git a/docs/description/SlevomatCodingStandard_PHP_DisallowReference.md b/docs/description/SlevomatCodingStandard_PHP_DisallowReference.md deleted file mode 100644 index b199a35..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_DisallowReference.md +++ /dev/null @@ -1,3 +0,0 @@ -## PHP: Disallow Reference - -Sniff disallows usage of references. diff --git a/docs/description/SlevomatCodingStandard_PHP_ForbiddenClasses.md b/docs/description/SlevomatCodingStandard_PHP_ForbiddenClasses.md deleted file mode 100644 index 38253fd..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_ForbiddenClasses.md +++ /dev/null @@ -1,23 +0,0 @@ -## PHP: Forbidden Classes - -Reports usage of forbidden classes, interfaces, parent classes and traits. And provide the following settings: - -* `forbiddenClasses`: forbids creating instances with `new` keyword or accessing with `::` operator -* `forbiddenExtends`: forbids extending with `extends` keyword -* `forbiddenInterfaces`: forbids usage in `implements` section -* `forbiddenTraits`: forbids imports with `use` keyword - -Optionally can be passed as an alternative for auto fixes. See `phpcs.xml` file example: - -```xml - - - - - - - - - - -``` diff --git a/docs/description/SlevomatCodingStandard_PHP_OptimizedFunctionsWithoutUnpacking.md b/docs/description/SlevomatCodingStandard_PHP_OptimizedFunctionsWithoutUnpacking.md deleted file mode 100644 index b218182..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_OptimizedFunctionsWithoutUnpacking.md +++ /dev/null @@ -1,5 +0,0 @@ -## PHP: Optimized Functions Without Unpacking - -PHP optimizes some internal functions into special opcodes on VM level. Such optimization results in much faster execution compared to calling standard functions. This only works when these functions are not invoked with argument unpacking (`...`). - -The list of these functions varies across PHP versions, but is the same as functions that must be referenced by their global name (either by `\ ` prefix or using `use function`), not a fallback name inside namespaced code. diff --git a/docs/description/SlevomatCodingStandard_PHP_ReferenceSpacing.md b/docs/description/SlevomatCodingStandard_PHP_ReferenceSpacing.md deleted file mode 100644 index 844142a..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_ReferenceSpacing.md +++ /dev/null @@ -1,7 +0,0 @@ -## PHP: Reference Spacing - -Enforces configurable number of spaces after reference. - -Sniff provides the following settings: - -* `spacesCountAfterReference`: the number of spaces after `&`. diff --git a/docs/description/SlevomatCodingStandard_PHP_RequireExplicitAssertion.md b/docs/description/SlevomatCodingStandard_PHP_RequireExplicitAssertion.md deleted file mode 100644 index b3a6672..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_RequireExplicitAssertion.md +++ /dev/null @@ -1,8 +0,0 @@ -## PHP: Require Explicit Assertion - -Requires assertion via `assert` instead of inline documentation comments. - -Sniff provides the following settings: - -* `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_RequireNowdoc.md b/docs/description/SlevomatCodingStandard_PHP_RequireNowdoc.md deleted file mode 100644 index 847fb51..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_RequireNowdoc.md +++ /dev/null @@ -1,3 +0,0 @@ -## PHP: Require Nowdoc - -Requires nowdoc syntax instead of heredoc when possible. diff --git a/docs/description/SlevomatCodingStandard_PHP_ShortList.md b/docs/description/SlevomatCodingStandard_PHP_ShortList.md deleted file mode 100644 index 421a929..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_ShortList.md +++ /dev/null @@ -1,3 +0,0 @@ -## PHP: Short List - -Enforces using short form of list syntax, `[...]` instead of `list(...)`. diff --git a/docs/description/SlevomatCodingStandard_PHP_TypeCast.md b/docs/description/SlevomatCodingStandard_PHP_TypeCast.md deleted file mode 100644 index 5d659c0..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_TypeCast.md +++ /dev/null @@ -1,3 +0,0 @@ -## PHP: Type Cast - -Enforces using shorthand cast operators, forbids use of unset and binary cast operators: `(bool)` instead of `(boolean)`, `(int)` instead of `(integer)`, `(float)` instead of `(double)` or `(real)`. `(binary)` and `(unset)` are forbidden. diff --git a/docs/description/SlevomatCodingStandard_PHP_UselessParentheses.md b/docs/description/SlevomatCodingStandard_PHP_UselessParentheses.md deleted file mode 100644 index 59504e1..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_UselessParentheses.md +++ /dev/null @@ -1,8 +0,0 @@ -## PHP: Useless Parentheses - -Looks for useless parentheses. - -Sniff provides the following settings: - -* `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_PHP_UselessSemicolon.md b/docs/description/SlevomatCodingStandard_PHP_UselessSemicolon.md deleted file mode 100644 index aee8dc4..0000000 --- a/docs/description/SlevomatCodingStandard_PHP_UselessSemicolon.md +++ /dev/null @@ -1,3 +0,0 @@ -## PHP: Useless Semicolon - -Looks for useless semicolons. diff --git a/docs/description/SlevomatCodingStandard_Strings_DisallowVariableParsing.md b/docs/description/SlevomatCodingStandard_Strings_DisallowVariableParsing.md deleted file mode 100644 index 8dcd8d8..0000000 --- a/docs/description/SlevomatCodingStandard_Strings_DisallowVariableParsing.md +++ /dev/null @@ -1,9 +0,0 @@ -## Strings: Disallow Variable Parsing - -Disallows variable parsing inside strings. - -Sniff provides the following settings: - -* `disallowDollarCurlySyntax`: disallows usage of `${...}`, enabled by default. -* `disallowCurlyDollarSyntax`: disallows usage of `{$...}`, disabled by default. -* `disallowSimpleSyntax`: disallows usage of `$...`, disabled by default. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_ClassConstantTypeHint.md b/docs/description/SlevomatCodingStandard_TypeHints_ClassConstantTypeHint.md deleted file mode 100644 index 5ecc11d..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_ClassConstantTypeHint.md +++ /dev/null @@ -1,9 +0,0 @@ -## 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 deleted file mode 100644 index 2d20943..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_DNFTypeHintFormat.md +++ /dev/null @@ -1,12 +0,0 @@ -## 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_DeclareStrictTypes.md b/docs/description/SlevomatCodingStandard_TypeHints_DeclareStrictTypes.md deleted file mode 100644 index a672087..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_DeclareStrictTypes.md +++ /dev/null @@ -1,10 +0,0 @@ -## TypeHints: Declare Strict Types - -Enforces having `declare(strict_types = 1)` at the top of each PHP file. Allows configuring how many newlines should be between the ``, `array>`). - -Sniff provides the following settings: - -* `traversableTypeHints`: helps fixer detect traversable type hints so `\Traversable|int[]` can be converted to `\Traversable`. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_DisallowMixedTypeHint.md b/docs/description/SlevomatCodingStandard_TypeHints_DisallowMixedTypeHint.md deleted file mode 100644 index 7a9a752..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_DisallowMixedTypeHint.md +++ /dev/null @@ -1,3 +0,0 @@ -## TypeHints: Disallow Mixed Type Hint - -Disallows usage of "mixed" type hint in phpDocs. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_LongTypeHints.md b/docs/description/SlevomatCodingStandard_TypeHints_LongTypeHints.md deleted file mode 100644 index d20f931..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_LongTypeHints.md +++ /dev/null @@ -1,3 +0,0 @@ -## TypeHints: Long Type Hints - -Enforces using shorthand scalar typehint variants in phpDocs: `int` instead of `integer` and `bool` instead of `boolean`. This is for consistency with native scalar typehints which also allow shorthand variants only. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_NullTypeHintOnLastPosition.md b/docs/description/SlevomatCodingStandard_TypeHints_NullTypeHintOnLastPosition.md deleted file mode 100644 index 2531605..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_NullTypeHintOnLastPosition.md +++ /dev/null @@ -1,5 +0,0 @@ -## 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_NullableTypeForNullDefaultValue.md b/docs/description/SlevomatCodingStandard_TypeHints_NullableTypeForNullDefaultValue.md deleted file mode 100644 index 10ba7e3..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_NullableTypeForNullDefaultValue.md +++ /dev/null @@ -1,12 +0,0 @@ -## TypeHints: Nullable Type For Null Default Value - -Checks whether the nullablity `?` symbol is present before each nullable and optional parameter (which are marked as `= null`): - -```php -function foo( - int $foo = null, // ? missing - ?int $bar = null // correct -) { - -} -``` diff --git a/docs/description/SlevomatCodingStandard_TypeHints_ParameterTypeHint.md b/docs/description/SlevomatCodingStandard_TypeHints_ParameterTypeHint.md deleted file mode 100644 index c870732..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_ParameterTypeHint.md +++ /dev/null @@ -1,16 +0,0 @@ -## TypeHints: Parameter Type Hint - -* Checks for missing parameter typehints in case they can be declared natively. If the phpDoc contains something that can be written as a native PHP 7.0+ typehint, this sniff reports that. -* Checks for useless `@param` annotations. If the native method declaration contains everything and the phpDoc does not add anything useful, it's reported as useless and can optionally be automatically removed with `phpcbf`. -* Forces to specify what's in traversable types like `array`, `iterable` and `\Traversable`. - -Sniff provides the following settings: - -* `enableObjectTypeHint`: enforces to transform `@param object` into native `object` typehint. It's on by default if you're on PHP 7.2+ -* `enableMixedTypeHint`: enforces to transform `@param mixed` into native `mixed` typehint. It's on by default if you're on PHP 8.0+ -* `enableUnionTypeHint`: enforces to transform `@param string|int` into native `string|int` typehint. It's on by default if you're on PHP 8.0+ -* `enableIntersectionTypeHint`: enforces to transform `@param Foo&Bar` into native `Foo&Bar` typehint. It's on by default if you're on PHP 8.1+ -* `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 `#[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_ParameterTypeHintSpacing.md b/docs/description/SlevomatCodingStandard_TypeHints_ParameterTypeHintSpacing.md deleted file mode 100644 index 39d56df..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_ParameterTypeHintSpacing.md +++ /dev/null @@ -1,4 +0,0 @@ -## TypeHints: Parameter Type Hint Spacing - -* Checks that there's a single space between a typehint and a parameter name: `Foo $foo` -* Checks that there's no whitespace between a nullability symbol and a typehint: `?Foo` diff --git a/docs/description/SlevomatCodingStandard_TypeHints_PropertyTypeHint.md b/docs/description/SlevomatCodingStandard_TypeHints_PropertyTypeHint.md deleted file mode 100644 index b703724..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_PropertyTypeHint.md +++ /dev/null @@ -1,16 +0,0 @@ -## TypeHints: Property Type Hint - -* Checks for missing property typehints in case they can be declared natively. If the phpDoc contains something that can be written as a native PHP 7.4+ typehint, this sniff reports that. -* Checks for useless `@var` annotations. If the native method declaration contains everything and the phpDoc does not add anything useful, it's reported as useless and can optionally be automatically removed with `phpcbf`. -* Forces to specify what's in traversable types like `array`, `iterable` and `\Traversable`. - -Sniff provides the following settings: - -* `enableNativeTypeHint`: enforces to transform `@var int` into native `int` typehint. It's on by default if you're on PHP 7.4+ -* `enableMixedTypeHint`: enforces to transform `@var mixed` into native `mixed` typehint. It's on by default if you're on PHP 8.0+. It can be enabled only when `enableNativeTypeHint` is enabled too. -* `enableUnionTypeHint`: enforces to transform `@var string|int` into native `string|int` typehint. It's on by default if you're on PHP 8.0+. It can be enabled only when `enableNativeTypeHint` is enabled too. -* `enableIntersectionTypeHint`: enforces to transform `@var Foo&Bar` into native `Foo&Bar` typehint. It's on by default if you're on PHP 8.1+. It can be enabled only when `enableNativeTypeHint` is enabled too. -* `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 `#[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 deleted file mode 100644 index 8c7be5e..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_ReturnTypeHint.md +++ /dev/null @@ -1,18 +0,0 @@ -## TypeHints: Return Type Hint - -* Checks for missing return typehints in case they can be declared natively. If the phpDoc contains something that can be written as a native PHP 7.0+ typehint, this sniff reports that. -* Checks for useless `@return` annotations. If the native method declaration contains everything and the phpDoc does not add anything useful, it's reported as useless and can optionally be automatically removed with `phpcbf`. -* Forces to specify what's in traversable types like `array`, `iterable` and `\Traversable`. - -Sniff provides the following settings: - -* `enableObjectTypeHint`: enforces to transform `@return object` into native `object` typehint. It's on by default if you're on PHP 7.2+ -* `enableStaticTypeHint`: enforces to transform `@return static` into native `static` typehint. It's on by default if you're on PHP 8.0+ -* `enableMixedTypeHint`: enforces to transform `@return mixed` into native `mixed` typehint. It's on by default if you're on PHP 8.0+ -* `enableUnionTypeHint`: enforces to transform `@return string|int` into native `string|int` typehint. It's on by default if you're on PHP 8.0+. -* `enableIntersectionTypeHint`: enforces to transform `@return Foo&Bar` into native `Foo&Bar` typehint. It's on by default if you're on PHP 8.1+. -* `enableNeverTypeHint`: enforces to transform `@return never` into native `never` typehint. It's on by default if you're on PHP 8.1+. -* `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[]`. - -You can add `@phpcsSuppress SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint` annotation to the method to skip the check. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_ReturnTypeHintSpacing.md b/docs/description/SlevomatCodingStandard_TypeHints_ReturnTypeHintSpacing.md deleted file mode 100644 index e2f56d7..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_ReturnTypeHintSpacing.md +++ /dev/null @@ -1,11 +0,0 @@ -## TypeHints: Return Type Hint Spacing - -Enforces consistent formatting of return typehints, like this: - -```php -function foo(): ?int -``` - -Sniff provides the following settings: - -* `spacesCountBeforeColon`: the number of spaces expected between closing brace and colon. diff --git a/docs/description/SlevomatCodingStandard_TypeHints_UnionTypeHintFormat.md b/docs/description/SlevomatCodingStandard_TypeHints_UnionTypeHintFormat.md deleted file mode 100644 index f0fe059..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_UnionTypeHintFormat.md +++ /dev/null @@ -1,10 +0,0 @@ -## TypeHints: Union Type Hint Format - -Checks format of union type hints. - -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. -* `withSpaces`: `yes` requires spaces around `|`, `no` requires no space around `|`. 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_UselessConstantTypeHint.md b/docs/description/SlevomatCodingStandard_TypeHints_UselessConstantTypeHint.md deleted file mode 100644 index 74c10e1..0000000 --- a/docs/description/SlevomatCodingStandard_TypeHints_UselessConstantTypeHint.md +++ /dev/null @@ -1,3 +0,0 @@ -## TypeHints: Useless Constant Type Hint - -Reports useless `@var` annotation (or whole documentation comment) for constants because the type of constant is always clear. diff --git a/docs/description/SlevomatCodingStandard_Variables_DisallowSuperGlobalVariable.md b/docs/description/SlevomatCodingStandard_Variables_DisallowSuperGlobalVariable.md deleted file mode 100644 index 0c2e7f9..0000000 --- a/docs/description/SlevomatCodingStandard_Variables_DisallowSuperGlobalVariable.md +++ /dev/null @@ -1,3 +0,0 @@ -## Variables: Disallow Super Global Variable - -Disallows use of super global variables. diff --git a/docs/description/SlevomatCodingStandard_Variables_DisallowVariableVariable.md b/docs/description/SlevomatCodingStandard_Variables_DisallowVariableVariable.md deleted file mode 100644 index f88022d..0000000 --- a/docs/description/SlevomatCodingStandard_Variables_DisallowVariableVariable.md +++ /dev/null @@ -1,3 +0,0 @@ -## Variables: Disallow Variable Variable - -Disallows use of variable variables. diff --git a/docs/description/SlevomatCodingStandard_Variables_DuplicateAssignmentToVariable.md b/docs/description/SlevomatCodingStandard_Variables_DuplicateAssignmentToVariable.md deleted file mode 100644 index 5c46da5..0000000 --- a/docs/description/SlevomatCodingStandard_Variables_DuplicateAssignmentToVariable.md +++ /dev/null @@ -1,3 +0,0 @@ -## Variables: Duplicate Assignment To Variable - -Looks for duplicate assignments to a variable. diff --git a/docs/description/SlevomatCodingStandard_Variables_UnusedVariable.md b/docs/description/SlevomatCodingStandard_Variables_UnusedVariable.md deleted file mode 100644 index 2db064a..0000000 --- a/docs/description/SlevomatCodingStandard_Variables_UnusedVariable.md +++ /dev/null @@ -1,13 +0,0 @@ -## Variables: Unused Variable - -Looks for unused variables. - -Sniff provides the following settings: - -* `ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach` (default: `false`): ignore unused `$value` in foreach when only `$key` is used - -```php -foreach ($values as $key => $value) { - echo $key; -} -``` diff --git a/docs/description/SlevomatCodingStandard_Variables_UselessVariable.md b/docs/description/SlevomatCodingStandard_Variables_UselessVariable.md deleted file mode 100644 index 109f56a..0000000 --- a/docs/description/SlevomatCodingStandard_Variables_UselessVariable.md +++ /dev/null @@ -1,3 +0,0 @@ -## Variables: Useless Variable - -Looks for useless variables. diff --git a/docs/description/SlevomatCodingStandard_Whitespaces_DuplicateSpaces.md b/docs/description/SlevomatCodingStandard_Whitespaces_DuplicateSpaces.md deleted file mode 100644 index 48402ad..0000000 --- a/docs/description/SlevomatCodingStandard_Whitespaces_DuplicateSpaces.md +++ /dev/null @@ -1,11 +0,0 @@ -## Whitespaces: Duplicate Spaces - -Checks duplicate spaces anywhere because there aren't sniffs for every part of code to check formatting. - -Sniff provides the following settings: - -* `ignoreSpacesBeforeAssignment`: to allow multiple spaces to align assignments. -* `ignoreSpacesInAnnotation`: to allow multiple spaces to align annotations. -* `ignoreSpacesInComment`: to allow multiple spaces to align content of the comment. -* `ignoreSpacesInParameters`: to allow multiple spaces to align parameters. -* `ignoreSpacesInMatch`: to allow multiple spaces to align `match` expressions. diff --git a/docs/description/Squiz_Arrays_ArrayBracketSpacing.md b/docs/description/Squiz_Arrays_ArrayBracketSpacing.md deleted file mode 100644 index 3d7bea8..0000000 --- a/docs/description/Squiz_Arrays_ArrayBracketSpacing.md +++ /dev/null @@ -1,11 +0,0 @@ -When referencing arrays you should not put whitespace around the opening bracket or before the closing bracket. - -Valid: No spaces around the brackets. -``` -$foo['bar']; -``` - -Invalid: Spaces around the brackets. -``` -$foo [ 'bar' ]; -``` diff --git a/docs/description/Squiz_Arrays_ArrayDeclaration.md b/docs/description/Squiz_Arrays_ArrayDeclaration.md deleted file mode 100644 index 30d4493..0000000 --- a/docs/description/Squiz_Arrays_ArrayDeclaration.md +++ /dev/null @@ -1,76 +0,0 @@ -This standard covers all array declarations, regardless of the number and type of values contained within the array. - -Valid: Array keyword lowercase. -``` -$array = array('val1', 'val2'); -``` - -Invalid: First letter capitalised. -``` -$array = Array('val1', 'val2'); -``` - -Valid: First key on second line. -``` -$array = array( - 'key1' => 'value1', - 'key2' => 'value2', - ); -``` - -Invalid: First key on same line. -``` -$array = array('key1' => 'value1', - 'key2' => 'value2', - ); -``` - -Valid: Aligned correctly. -``` -$array = array( - 'key1' => 'value1', - 'key2' => 'value2', - ); -``` - -Invalid: Keys and parenthesis aligned incorrectly. -``` -$array = array( - 'key1' => 'value1', - 'key2' => 'value2', -); -``` - -Valid: Keys and values aligned. -``` -$array = array( - 'keyTen' => 'ValueTen', - 'keyTwenty' => 'ValueTwenty', - ); -``` - -Invalid: Alignment incorrect. -``` -$array = array( - 'keyTen' => 'ValueTen', - 'keyTwenty' => 'ValueTwenty', - ); -``` - -Valid: Comma after each value. -``` -$array = array( - 'key1' => 'value1', - 'key2' => 'value2', - 'key3' => 'value3', - ); -``` - -Invalid: No comma after last value. -``` -$array = array( - 'key1' => 'value1', - 'key2' => 'value2', - 'key3' => 'value3' - ); -``` diff --git a/docs/description/Squiz_Classes_ClassDeclaration.md b/docs/description/Squiz_Classes_ClassDeclaration.md deleted file mode 100644 index 8f7a6a7..0000000 --- a/docs/description/Squiz_Classes_ClassDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Class Declaration diff --git a/docs/description/Squiz_Classes_ClassFileName.md b/docs/description/Squiz_Classes_ClassFileName.md deleted file mode 100644 index 9f44647..0000000 --- a/docs/description/Squiz_Classes_ClassFileName.md +++ /dev/null @@ -1,37 +0,0 @@ -The file name and the name of the class defined within the file must match exactly, including case. - -Valid: Defined class name and filename match. -``` -/* ./src/Foo.php contents: */ - -class Foo -{ -} -``` - -Invalid: Filename does not match class name. -``` -/* ./src/Foo.php contents: */ - -class MyFoo -{ -} -``` - -Valid: Class name and filename use the same casing. -``` -/* ./src/MyFoo.php contents: */ - -class MyFoo -{ -} -``` - -Invalid: Filename case does not match class name case. -``` -/* ./src/myFoo.php contents: */ - -class MyFoo -{ -} -``` diff --git a/docs/description/Squiz_Classes_LowercaseClassKeywords.md b/docs/description/Squiz_Classes_LowercaseClassKeywords.md deleted file mode 100644 index e24a1df..0000000 --- a/docs/description/Squiz_Classes_LowercaseClassKeywords.md +++ /dev/null @@ -1,15 +0,0 @@ -The PHP keywords class, interface, trait, extends, implements, abstract, final, var, and const should be lowercase. - -Valid: Lowercase class keywords. -``` -final class Foo extends Bar -{ -} -``` - -Invalid: Initial capitalization of class keywords. -``` -Final Class Foo Extends Bar -{ -} -``` diff --git a/docs/description/Squiz_Classes_SelfMemberReference.md b/docs/description/Squiz_Classes_SelfMemberReference.md deleted file mode 100644 index 1fd32c2..0000000 --- a/docs/description/Squiz_Classes_SelfMemberReference.md +++ /dev/null @@ -1,59 +0,0 @@ -The self keyword must be lowercase. - -Valid: Lowercase self used. -``` -class Bar { - public function baz() { - self::foo(); - } -} -``` - -Invalid: Uppercase self used. -``` -class Bar { - public function baz() { - SELF::foo(); - } -} -``` - -Valid: No spaces around the double colon operator. -``` -class Bar { - public function baz() { - self::foo(); - } -} -``` - -Invalid: Spaces around double colon operator. -``` -class Bar { - public function baz() { - self :: foo(); - } -} -``` - -Valid: Self used as reference. -``` -class Foo { - public function bar() {} - - public function baz() { - self::bar(); - } -} -``` - -Invalid: Local class name used as reference. -``` -class Foo { - public function bar() {} - - public function baz() { - Foo::bar(); - } -} -``` diff --git a/docs/description/Squiz_Classes_ValidClassName.md b/docs/description/Squiz_Classes_ValidClassName.md deleted file mode 100644 index c72d9dd..0000000 --- a/docs/description/Squiz_Classes_ValidClassName.md +++ /dev/null @@ -1,29 +0,0 @@ -Class names must be written in Pascal case. This means that it starts with a capital letter, and the first letter of each word in the class name is capitalized. Only letters and numbers are allowed. - -Valid: Class name starts with a capital letter. -``` -class PascalCaseStandard -{ -} -``` - -Invalid: Class name does not start with a capital letter. -``` -class notPascalCaseStandard -{ -} -``` - -Valid: Class name contains only letters and numbers. -``` -class PSR7Response -{ -} -``` - -Invalid: Class name contains underscores. -``` -class PSR7_Response -{ -} -``` diff --git a/docs/description/Squiz_Commenting_BlockComment.md b/docs/description/Squiz_Commenting_BlockComment.md deleted file mode 100644 index b3d1bef..0000000 --- a/docs/description/Squiz_Commenting_BlockComment.md +++ /dev/null @@ -1,200 +0,0 @@ -A block comment is a multi-line comment delimited by an opener "/*" and a closer "*/" which are each on their own line with the comment text in between. - -Valid: Uses a valid opener and closer. -``` -/* - A block comment. -*/ -``` - -Invalid: Uses /** **/. -``` -/** - A block comment. -**/ -``` - -Valid: Uses a valid opener and closer. -``` -/* - * A block comment - * with multiple lines. - */ -``` - -Invalid: Uses multiple // or #. -``` -// A block comment -// with multiple lines. - -# A block comment -# with multiple lines. -``` - -Valid: Multi-line block comment. -``` -/* - A block comment. -*/ -``` - -Invalid: Single line block comment. -``` -/* A block comment. */ -``` - -Valid: A block comment with contents. -``` -/* - A block comment. -*/ -``` - -Invalid: An empty block comment. -``` -/* - -*/ -``` - -Valid: Text starts on a new line. -``` -/* - A block comment. -*/ -``` - -Invalid: Text starts on the same line. -``` -/* A block comment. -*/ -``` - -Valid: Indented by at least 4 spaces. -``` -/* - A block comment - with multiple lines. - And a second paragraph. -*/ -``` - -Invalid: Indented by less than 4 spaces. -``` -/* - A block comment - with - multiple lines. -*/ -``` - -Valid: Asterisks are aligned. -``` -/* - * A block comment - * with - * multiple lines. - */ -``` - -Invalid: Asterisks are not aligned. -``` -/* - * A block comment - * with - * multiple lines. -*/ -``` - -Valid: Starts with a capital letter. -``` -/* - A block comment. -*/ -``` - -Invalid: Does not start with a capital letter. -``` -/* - a block comment. -*/ -``` - -Valid: Closer is on a new line. -``` -/* - A block comment. -*/ -``` - -Invalid: Closer is not on a new line. -``` -/* - A block comment. */ -``` - -Valid: The closer's asterisk is aligned with other asterisks. -``` -/* - * A block comment - */ -``` - -Invalid: The closer's asterisk is not aligned with other asterisks. -``` -/* - * A block comment. -*/ -``` - -Valid: The closer's asterisk is aligned with the opener's slash. -``` -/* - A block comment. -*/ -``` - -Invalid: The closer's asterisk is not aligned with the opener's slash. -``` -/* - A block comment. - */ -``` - -Valid: An empty line after the comment. -``` -/* - A block comment. -*/ - -echo 'Content'; -``` - -Invalid: No empty line after the comment. -``` -/* - A block comment. -*/ -echo 'Content'; -``` - -Valid: No blank line after an open tag. -``` - $baz) { - echo $baz; -} -``` - -Invalid: Invalid spacing used. -``` -foreach ( $foo as $bar=>$baz ) { - echo $baz; -} -``` - -Valid: Lowercase as keyword. -``` -foreach ($foo as $bar => $baz) { - echo $baz; -} -``` - -Invalid: Uppercase as keyword. -``` -foreach ($foo AS $bar => $baz) { - echo $baz; -} -``` diff --git a/docs/description/Squiz_ControlStructures_ForLoopDeclaration.md b/docs/description/Squiz_ControlStructures_ForLoopDeclaration.md deleted file mode 100644 index 9404f64..0000000 --- a/docs/description/Squiz_ControlStructures_ForLoopDeclaration.md +++ /dev/null @@ -1,43 +0,0 @@ -In a for loop declaration, there should be no space inside the brackets and there should be 0 spaces before and 1 space after semicolons. - -Valid: Correct spacing used. -``` -for ($i = 0; $i < 10; $i++) { - echo $i; -} -``` - -Invalid: Invalid spacing used inside brackets. -``` -for ( $i = 0; $i < 10; $i++ ) { - echo $i; -} -``` - -Valid: Correct spacing used. -``` -for ($i = 0; $i < 10; $i++) { - echo $i; -} -``` - -Invalid: Invalid spacing used before semicolons. -``` -for ($i = 0 ; $i < 10 ; $i++) { - echo $i; -} -``` - -Valid: Correct spacing used. -``` -for ($i = 0; $i < 10; $i++) { - echo $i; -} -``` - -Invalid: Invalid spacing used after semicolons. -``` -for ($i = 0;$i < 10;$i++) { - echo $i; -} -``` diff --git a/docs/description/Squiz_ControlStructures_InlineIfDeclaration.md b/docs/description/Squiz_ControlStructures_InlineIfDeclaration.md deleted file mode 100644 index b90de82..0000000 --- a/docs/description/Squiz_ControlStructures_InlineIfDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Inline If Declaration diff --git a/docs/description/Squiz_ControlStructures_LowercaseDeclaration.md b/docs/description/Squiz_ControlStructures_LowercaseDeclaration.md deleted file mode 100644 index 80dd49a..0000000 --- a/docs/description/Squiz_ControlStructures_LowercaseDeclaration.md +++ /dev/null @@ -1,15 +0,0 @@ -The PHP keywords if, else, elseif, foreach, for, do, switch, while, try, and catch should be lowercase. - -Valid: Lowercase if keyword. -``` -if ($foo) { - $bar = true; -} -``` - -Invalid: Uppercase if keyword. -``` -IF ($foo) { - $bar = true; -} -``` diff --git a/docs/description/Squiz_ControlStructures_SwitchDeclaration.md b/docs/description/Squiz_ControlStructures_SwitchDeclaration.md deleted file mode 100644 index 9cb6c8b..0000000 --- a/docs/description/Squiz_ControlStructures_SwitchDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Control Structures: Switch Declaration diff --git a/docs/description/Squiz_Files_FileExtension.md b/docs/description/Squiz_Files_FileExtension.md deleted file mode 100644 index 715a583..0000000 --- a/docs/description/Squiz_Files_FileExtension.md +++ /dev/null @@ -1 +0,0 @@ -Files: File Extension diff --git a/docs/description/Squiz_Formatting_OperatorBracket.md b/docs/description/Squiz_Formatting_OperatorBracket.md deleted file mode 100644 index 1f9ef15..0000000 --- a/docs/description/Squiz_Formatting_OperatorBracket.md +++ /dev/null @@ -1 +0,0 @@ -Formatting: Operator Bracket diff --git a/docs/description/Squiz_Functions_FunctionDeclaration.md b/docs/description/Squiz_Functions_FunctionDeclaration.md deleted file mode 100644 index 872669e..0000000 --- a/docs/description/Squiz_Functions_FunctionDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Function Declaration diff --git a/docs/description/Squiz_Functions_FunctionDeclarationArgumentSpacing.md b/docs/description/Squiz_Functions_FunctionDeclarationArgumentSpacing.md deleted file mode 100644 index d62d262..0000000 --- a/docs/description/Squiz_Functions_FunctionDeclarationArgumentSpacing.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Function Declaration Argument Spacing diff --git a/docs/description/Squiz_Functions_FunctionDuplicateArgument.md b/docs/description/Squiz_Functions_FunctionDuplicateArgument.md deleted file mode 100644 index 9b94761..0000000 --- a/docs/description/Squiz_Functions_FunctionDuplicateArgument.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Function Duplicate Argument diff --git a/docs/description/Squiz_Functions_GlobalFunction.md b/docs/description/Squiz_Functions_GlobalFunction.md deleted file mode 100644 index ccdef0b..0000000 --- a/docs/description/Squiz_Functions_GlobalFunction.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Global Function diff --git a/docs/description/Squiz_Functions_LowercaseFunctionKeywords.md b/docs/description/Squiz_Functions_LowercaseFunctionKeywords.md deleted file mode 100644 index de34f8e..0000000 --- a/docs/description/Squiz_Functions_LowercaseFunctionKeywords.md +++ /dev/null @@ -1,17 +0,0 @@ -The PHP keywords function, public, private, protected, and static should be lowercase. - -Valid: Lowercase function keyword. -``` -function foo() -{ - return true; -} -``` - -Invalid: Uppercase function keyword. -``` -FUNCTION foo() -{ - return true; -} -``` diff --git a/docs/description/Squiz_Functions_MultiLineFunctionDeclaration.md b/docs/description/Squiz_Functions_MultiLineFunctionDeclaration.md deleted file mode 100644 index 878af27..0000000 --- a/docs/description/Squiz_Functions_MultiLineFunctionDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Multi Line Function Declaration diff --git a/docs/description/Squiz_NamingConventions_ValidFunctionName.md b/docs/description/Squiz_NamingConventions_ValidFunctionName.md deleted file mode 100644 index 1992027..0000000 --- a/docs/description/Squiz_NamingConventions_ValidFunctionName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Function Name diff --git a/docs/description/Squiz_NamingConventions_ValidVariableName.md b/docs/description/Squiz_NamingConventions_ValidVariableName.md deleted file mode 100644 index a1a934c..0000000 --- a/docs/description/Squiz_NamingConventions_ValidVariableName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Variable Name diff --git a/docs/description/Squiz_Objects_ObjectInstantiation.md b/docs/description/Squiz_Objects_ObjectInstantiation.md deleted file mode 100644 index ce27c90..0000000 --- a/docs/description/Squiz_Objects_ObjectInstantiation.md +++ /dev/null @@ -1 +0,0 @@ -Objects: Object Instantiation diff --git a/docs/description/Squiz_Operators_ComparisonOperatorUsage.md b/docs/description/Squiz_Operators_ComparisonOperatorUsage.md deleted file mode 100644 index 9cf52d9..0000000 --- a/docs/description/Squiz_Operators_ComparisonOperatorUsage.md +++ /dev/null @@ -1 +0,0 @@ -Operators: Comparison Operator Usage diff --git a/docs/description/Squiz_Operators_IncrementDecrementUsage.md b/docs/description/Squiz_Operators_IncrementDecrementUsage.md deleted file mode 100644 index c8b9667..0000000 --- a/docs/description/Squiz_Operators_IncrementDecrementUsage.md +++ /dev/null @@ -1 +0,0 @@ -Operators: Increment Decrement Usage diff --git a/docs/description/Squiz_Operators_ValidLogicalOperators.md b/docs/description/Squiz_Operators_ValidLogicalOperators.md deleted file mode 100644 index 16da383..0000000 --- a/docs/description/Squiz_Operators_ValidLogicalOperators.md +++ /dev/null @@ -1 +0,0 @@ -Operators: Valid Logical Operators diff --git a/docs/description/Squiz_PHP_CommentedOutCode.md b/docs/description/Squiz_PHP_CommentedOutCode.md deleted file mode 100644 index 993ac45..0000000 --- a/docs/description/Squiz_PHP_CommentedOutCode.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Commented Out Code diff --git a/docs/description/Squiz_PHP_DisallowBooleanStatement.md b/docs/description/Squiz_PHP_DisallowBooleanStatement.md deleted file mode 100644 index a4c0ad1..0000000 --- a/docs/description/Squiz_PHP_DisallowBooleanStatement.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Disallow Boolean Statement diff --git a/docs/description/Squiz_PHP_DisallowComparisonAssignment.md b/docs/description/Squiz_PHP_DisallowComparisonAssignment.md deleted file mode 100644 index 91aa55c..0000000 --- a/docs/description/Squiz_PHP_DisallowComparisonAssignment.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Disallow Comparison Assignment diff --git a/docs/description/Squiz_PHP_DisallowInlineIf.md b/docs/description/Squiz_PHP_DisallowInlineIf.md deleted file mode 100644 index 4b0f9c3..0000000 --- a/docs/description/Squiz_PHP_DisallowInlineIf.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Disallow Inline If diff --git a/docs/description/Squiz_PHP_DisallowMultipleAssignments.md b/docs/description/Squiz_PHP_DisallowMultipleAssignments.md deleted file mode 100644 index 66871af..0000000 --- a/docs/description/Squiz_PHP_DisallowMultipleAssignments.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Disallow Multiple Assignments diff --git a/docs/description/Squiz_PHP_DisallowSizeFunctionsInLoops.md b/docs/description/Squiz_PHP_DisallowSizeFunctionsInLoops.md deleted file mode 100644 index 3b68e94..0000000 --- a/docs/description/Squiz_PHP_DisallowSizeFunctionsInLoops.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Disallow Size Functions In Loops diff --git a/docs/description/Squiz_PHP_DiscouragedFunctions.md b/docs/description/Squiz_PHP_DiscouragedFunctions.md deleted file mode 100644 index 375bfe2..0000000 --- a/docs/description/Squiz_PHP_DiscouragedFunctions.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Discouraged Functions diff --git a/docs/description/Squiz_PHP_EmbeddedPhp.md b/docs/description/Squiz_PHP_EmbeddedPhp.md deleted file mode 100644 index f0fd653..0000000 --- a/docs/description/Squiz_PHP_EmbeddedPhp.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Embedded Php diff --git a/docs/description/Squiz_PHP_Eval.md b/docs/description/Squiz_PHP_Eval.md deleted file mode 100644 index dbc36e1..0000000 --- a/docs/description/Squiz_PHP_Eval.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Eval diff --git a/docs/description/Squiz_PHP_GlobalKeyword.md b/docs/description/Squiz_PHP_GlobalKeyword.md deleted file mode 100644 index 3c8f729..0000000 --- a/docs/description/Squiz_PHP_GlobalKeyword.md +++ /dev/null @@ -1 +0,0 @@ -PHP: Global Keyword diff --git a/docs/description/Squiz_PHP_Heredoc.md b/docs/description/Squiz_PHP_Heredoc.md deleted file mode 100644 index ae4b6f5..0000000 --- a/docs/description/Squiz_PHP_Heredoc.md +++ /dev/null @@ -1,23 +0,0 @@ -Forbids the use of heredoc and nowdoc syntax. - -Valid: Using standard strings or inline HTML. -``` -$text = "some $text"; - - - -?> -some text - to access static variables. -``` -class Foo -{ - static function bar() - { - return $this->$staticMember; - } -} -``` diff --git a/docs/description/Squiz_Strings_ConcatenationSpacing.md b/docs/description/Squiz_Strings_ConcatenationSpacing.md deleted file mode 100644 index 2c4e20c..0000000 --- a/docs/description/Squiz_Strings_ConcatenationSpacing.md +++ /dev/null @@ -1 +0,0 @@ -Strings: Concatenation Spacing diff --git a/docs/description/Squiz_Strings_DoubleQuoteUsage.md b/docs/description/Squiz_Strings_DoubleQuoteUsage.md deleted file mode 100644 index 80f501f..0000000 --- a/docs/description/Squiz_Strings_DoubleQuoteUsage.md +++ /dev/null @@ -1 +0,0 @@ -Strings: Double Quote Usage diff --git a/docs/description/Squiz_Strings_EchoedStrings.md b/docs/description/Squiz_Strings_EchoedStrings.md deleted file mode 100644 index 037583a..0000000 --- a/docs/description/Squiz_Strings_EchoedStrings.md +++ /dev/null @@ -1,11 +0,0 @@ -Simple strings should not be enclosed in parentheses when being echoed. - -Valid: Using echo without parentheses. -``` -echo "Hello"; -``` - -Invalid: Using echo with parentheses. -``` -echo("Hello"); -``` diff --git a/docs/description/Squiz_WhiteSpace_CastSpacing.md b/docs/description/Squiz_WhiteSpace_CastSpacing.md deleted file mode 100644 index d087253..0000000 --- a/docs/description/Squiz_WhiteSpace_CastSpacing.md +++ /dev/null @@ -1,11 +0,0 @@ -Casts should not have whitespace inside the parentheses. - -Valid: No spaces. -``` -$foo = (int)'42'; -``` - -Invalid: Whitespace used inside parentheses. -``` -$foo = ( int )'42'; -``` diff --git a/docs/description/Squiz_WhiteSpace_ControlStructureSpacing.md b/docs/description/Squiz_WhiteSpace_ControlStructureSpacing.md deleted file mode 100644 index 47b6e51..0000000 --- a/docs/description/Squiz_WhiteSpace_ControlStructureSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Control Structure Spacing diff --git a/docs/description/Squiz_WhiteSpace_FunctionClosingBraceSpace.md b/docs/description/Squiz_WhiteSpace_FunctionClosingBraceSpace.md deleted file mode 100644 index 60cf585..0000000 --- a/docs/description/Squiz_WhiteSpace_FunctionClosingBraceSpace.md +++ /dev/null @@ -1,49 +0,0 @@ -There should be a single blank line before the function closing brace. - -Valid: A single blank line before the function closing brace. -``` -function outer() { - -} -``` - -Invalid: No blank line before the function closing brace. -``` -function outer() {} -``` - -Valid: Nested function closing brace is on a new line. -``` -function outer() { - function inner() { - } - -} -``` - -Invalid: Nested function closing brace on the same line. -``` -function outer() { - function inner() {} - -} -``` - -Valid: No blank line before the closing brace of a nested function. -``` -function outer() { - function inner() { - } - -} -``` - -Invalid: A single blank line before the closing brace of a nested function. -``` -function outer() { - function inner() { - - } - -} -``` diff --git a/docs/description/Squiz_WhiteSpace_FunctionOpeningBraceSpace.md b/docs/description/Squiz_WhiteSpace_FunctionOpeningBraceSpace.md deleted file mode 100644 index 8eabf2d..0000000 --- a/docs/description/Squiz_WhiteSpace_FunctionOpeningBraceSpace.md +++ /dev/null @@ -1,18 +0,0 @@ -There should be no blank lines after the opening brace of a function. - -Valid: No blank lines after the opening brace. -``` -function foo() -{ - return 42; -} -``` - -Invalid: A blank line after the opening brace. -``` -function foo() -{ - - return 42; -} -``` diff --git a/docs/description/Squiz_WhiteSpace_FunctionSpacing.md b/docs/description/Squiz_WhiteSpace_FunctionSpacing.md deleted file mode 100644 index 7751da1..0000000 --- a/docs/description/Squiz_WhiteSpace_FunctionSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Function Spacing diff --git a/docs/description/Squiz_WhiteSpace_LogicalOperatorSpacing.md b/docs/description/Squiz_WhiteSpace_LogicalOperatorSpacing.md deleted file mode 100644 index 84c57f1..0000000 --- a/docs/description/Squiz_WhiteSpace_LogicalOperatorSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Logical Operator Spacing diff --git a/docs/description/Squiz_WhiteSpace_MemberVarSpacing.md b/docs/description/Squiz_WhiteSpace_MemberVarSpacing.md deleted file mode 100644 index 40f3c3f..0000000 --- a/docs/description/Squiz_WhiteSpace_MemberVarSpacing.md +++ /dev/null @@ -1,69 +0,0 @@ -There should be exactly one blank line before the first property (member variable). - -Valid: One blank line before the first property. -``` -class MyClass -{ - - protected $var1 = 'value'; -} -``` - -Invalid: Incorrect number of blank lines before the first property. -``` -class MyClass -{ - protected $var1 = 'value'; -} -``` - -Valid: One blank line between each property. -``` -trait MyTrait { - - public $var1 = 'value'; - - public $var2 = 'value2'; - - public $var3 = 'value3'; -} -``` - -Invalid: Incorrect number of blank lines between each property. -``` -trait MyTrait { - - public $var1 = 'value'; - - - public $var2 = 'value2'; - public $var3 = 'value3'; -} -``` - -Valid: No blank lines between DocBlock and its property. -``` -$anon = new class { - - /** - * The actions that this class can perform. - * - * @var array - */ - public $actions = array(); -}; -``` - -Invalid: Blank line(s) between DocBlock and its property. -``` -$anon = new class { - - /** - * The actions that this class can perform. - * - * @var array - */ - - public $actions = array(); -}; -``` diff --git a/docs/description/Squiz_WhiteSpace_ObjectOperatorSpacing.md b/docs/description/Squiz_WhiteSpace_ObjectOperatorSpacing.md deleted file mode 100644 index 670bcbb..0000000 --- a/docs/description/Squiz_WhiteSpace_ObjectOperatorSpacing.md +++ /dev/null @@ -1,11 +0,0 @@ -The object operator (->) should not have any space around it. - -Valid: No spaces around the object operator. -``` -$foo->bar(); -``` - -Invalid: Whitespace surrounding the object operator. -``` -$foo -> bar(); -``` diff --git a/docs/description/Squiz_WhiteSpace_OperatorSpacing.md b/docs/description/Squiz_WhiteSpace_OperatorSpacing.md deleted file mode 100644 index ed3a85b..0000000 --- a/docs/description/Squiz_WhiteSpace_OperatorSpacing.md +++ /dev/null @@ -1 +0,0 @@ -White Space: Operator Spacing diff --git a/docs/description/Squiz_WhiteSpace_ScopeClosingBrace.md b/docs/description/Squiz_WhiteSpace_ScopeClosingBrace.md deleted file mode 100644 index b528d5b..0000000 --- a/docs/description/Squiz_WhiteSpace_ScopeClosingBrace.md +++ /dev/null @@ -1,44 +0,0 @@ -Indentation of a closing brace must match the indentation of the line containing the opening brace. - -Valid: Closing brace aligned with line containing opening brace. -``` -function foo() -{ -} - -if (!class_exists('Foo')) { - class Foo { - } -} - - - some output - -``` - -Invalid: Closing brace misaligned with line containing opening brace. -``` -function foo() -{ - } - -if (!class_exists('Foo')) { - class Foo { -} - } - - - some output - -``` - -Valid: Close brace on its own line. -``` -enum Foo { -} -``` - -Invalid: Close brace on a line containing other code. -``` -enum Foo {} -``` diff --git a/docs/description/Squiz_WhiteSpace_ScopeKeywordSpacing.md b/docs/description/Squiz_WhiteSpace_ScopeKeywordSpacing.md deleted file mode 100644 index 8681034..0000000 --- a/docs/description/Squiz_WhiteSpace_ScopeKeywordSpacing.md +++ /dev/null @@ -1,15 +0,0 @@ -The PHP keywords static, public, private, and protected should have one space after them. - -Valid: A single space following the keywords. -``` -public static function foo() -{ -} -``` - -Invalid: Multiple spaces following the keywords. -``` -public static function foo() -{ -} -``` diff --git a/docs/description/Squiz_WhiteSpace_SemicolonSpacing.md b/docs/description/Squiz_WhiteSpace_SemicolonSpacing.md deleted file mode 100644 index f2ef54c..0000000 --- a/docs/description/Squiz_WhiteSpace_SemicolonSpacing.md +++ /dev/null @@ -1,11 +0,0 @@ -Semicolons should not have spaces before them. - -Valid: No space before the semicolon. -``` -echo "hi"; -``` - -Invalid: Space before the semicolon. -``` -echo "hi" ; -``` diff --git a/docs/description/Squiz_WhiteSpace_SuperfluousWhitespace.md b/docs/description/Squiz_WhiteSpace_SuperfluousWhitespace.md deleted file mode 100644 index 37c7b40..0000000 --- a/docs/description/Squiz_WhiteSpace_SuperfluousWhitespace.md +++ /dev/null @@ -1,70 +0,0 @@ -There should be no superfluous whitespace at the start of a file. - -Valid: No whitespace preceding first content in file. -``` - - -``` - -Invalid: Multiple new lines appear after the last content in the file. -``` -function myFunction() -{ - echo 'Closing PHP tag, then'; - echo 'Multiple new line chars, then EOF'; -} - -?> - - -``` diff --git a/docs/description/Symfony_Arrays_MultiLineArrayComma.md b/docs/description/Symfony_Arrays_MultiLineArrayComma.md deleted file mode 100644 index 946ffb0..0000000 --- a/docs/description/Symfony_Arrays_MultiLineArrayComma.md +++ /dev/null @@ -1 +0,0 @@ -Arrays: Multi Line Array Comma diff --git a/docs/description/Symfony_Classes_MultipleClassesOneFile.md b/docs/description/Symfony_Classes_MultipleClassesOneFile.md deleted file mode 100644 index d2eebf3..0000000 --- a/docs/description/Symfony_Classes_MultipleClassesOneFile.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Multiple Classes One File diff --git a/docs/description/Symfony_Classes_PropertyDeclaration.md b/docs/description/Symfony_Classes_PropertyDeclaration.md deleted file mode 100644 index a790918..0000000 --- a/docs/description/Symfony_Classes_PropertyDeclaration.md +++ /dev/null @@ -1 +0,0 @@ -Classes: Property Declaration diff --git a/docs/description/Symfony_Commenting_Annotations.md b/docs/description/Symfony_Commenting_Annotations.md deleted file mode 100644 index 0e4f7fe..0000000 --- a/docs/description/Symfony_Commenting_Annotations.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Annotations diff --git a/docs/description/Symfony_Commenting_ClassComment.md b/docs/description/Symfony_Commenting_ClassComment.md deleted file mode 100644 index 1fecb5c..0000000 --- a/docs/description/Symfony_Commenting_ClassComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Class Comment diff --git a/docs/description/Symfony_Commenting_FunctionComment.md b/docs/description/Symfony_Commenting_FunctionComment.md deleted file mode 100644 index 417bea8..0000000 --- a/docs/description/Symfony_Commenting_FunctionComment.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Function Comment diff --git a/docs/description/Symfony_Commenting_License.md b/docs/description/Symfony_Commenting_License.md deleted file mode 100644 index c7d4c72..0000000 --- a/docs/description/Symfony_Commenting_License.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: License diff --git a/docs/description/Symfony_Commenting_TypeHinting.md b/docs/description/Symfony_Commenting_TypeHinting.md deleted file mode 100644 index d42a0e8..0000000 --- a/docs/description/Symfony_Commenting_TypeHinting.md +++ /dev/null @@ -1 +0,0 @@ -Commenting: Type Hinting diff --git a/docs/description/Symfony_ControlStructure_IdenticalComparison.md b/docs/description/Symfony_ControlStructure_IdenticalComparison.md deleted file mode 100644 index 3d7115f..0000000 --- a/docs/description/Symfony_ControlStructure_IdenticalComparison.md +++ /dev/null @@ -1 +0,0 @@ -Control Structure: Identical Comparison diff --git a/docs/description/Symfony_ControlStructure_UnaryOperators.md b/docs/description/Symfony_ControlStructure_UnaryOperators.md deleted file mode 100644 index deed595..0000000 --- a/docs/description/Symfony_ControlStructure_UnaryOperators.md +++ /dev/null @@ -1 +0,0 @@ -Control Structure: Unary Operators diff --git a/docs/description/Symfony_ControlStructure_YodaConditions.md b/docs/description/Symfony_ControlStructure_YodaConditions.md deleted file mode 100644 index d5276f7..0000000 --- a/docs/description/Symfony_ControlStructure_YodaConditions.md +++ /dev/null @@ -1 +0,0 @@ -Control Structure: Yoda Conditions diff --git a/docs/description/Symfony_Errors_ExceptionMessage.md b/docs/description/Symfony_Errors_ExceptionMessage.md deleted file mode 100644 index 5c46ade..0000000 --- a/docs/description/Symfony_Errors_ExceptionMessage.md +++ /dev/null @@ -1 +0,0 @@ -Errors: Exception Message diff --git a/docs/description/Symfony_Errors_UserDeprecated.md b/docs/description/Symfony_Errors_UserDeprecated.md deleted file mode 100644 index c9056ae..0000000 --- a/docs/description/Symfony_Errors_UserDeprecated.md +++ /dev/null @@ -1 +0,0 @@ -Errors: User Deprecated diff --git a/docs/description/Symfony_Files_AlphanumericFilename.md b/docs/description/Symfony_Files_AlphanumericFilename.md deleted file mode 100644 index a5b8099..0000000 --- a/docs/description/Symfony_Files_AlphanumericFilename.md +++ /dev/null @@ -1 +0,0 @@ -Files: Alphanumeric Filename diff --git a/docs/description/Symfony_Formatting_BlankLineBeforeReturn.md b/docs/description/Symfony_Formatting_BlankLineBeforeReturn.md deleted file mode 100644 index 97748ca..0000000 --- a/docs/description/Symfony_Formatting_BlankLineBeforeReturn.md +++ /dev/null @@ -1 +0,0 @@ -Formatting: Blank Line Before Return diff --git a/docs/description/Symfony_Formatting_ReturnOrThrow.md b/docs/description/Symfony_Formatting_ReturnOrThrow.md deleted file mode 100644 index 3c75836..0000000 --- a/docs/description/Symfony_Formatting_ReturnOrThrow.md +++ /dev/null @@ -1 +0,0 @@ -Formatting: Return Or Throw diff --git a/docs/description/Symfony_Functions_Arguments.md b/docs/description/Symfony_Functions_Arguments.md deleted file mode 100644 index dc45d26..0000000 --- a/docs/description/Symfony_Functions_Arguments.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Arguments diff --git a/docs/description/Symfony_Functions_ReturnType.md b/docs/description/Symfony_Functions_ReturnType.md deleted file mode 100644 index 0a27e0a..0000000 --- a/docs/description/Symfony_Functions_ReturnType.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Return Type diff --git a/docs/description/Symfony_Functions_ScopeOrder.md b/docs/description/Symfony_Functions_ScopeOrder.md deleted file mode 100644 index 78681dd..0000000 --- a/docs/description/Symfony_Functions_ScopeOrder.md +++ /dev/null @@ -1 +0,0 @@ -Functions: Scope Order diff --git a/docs/description/Symfony_NamingConventions_ValidClassName.md b/docs/description/Symfony_NamingConventions_ValidClassName.md deleted file mode 100644 index 7e2b1e8..0000000 --- a/docs/description/Symfony_NamingConventions_ValidClassName.md +++ /dev/null @@ -1 +0,0 @@ -Naming Conventions: Valid Class Name diff --git a/docs/description/Symfony_Objects_ObjectInstantiation.md b/docs/description/Symfony_Objects_ObjectInstantiation.md deleted file mode 100644 index ce27c90..0000000 --- a/docs/description/Symfony_Objects_ObjectInstantiation.md +++ /dev/null @@ -1 +0,0 @@ -Objects: Object Instantiation diff --git a/docs/description/Symfony_Whitespace_AssignmentSpacing.md b/docs/description/Symfony_Whitespace_AssignmentSpacing.md deleted file mode 100644 index 11e69ea..0000000 --- a/docs/description/Symfony_Whitespace_AssignmentSpacing.md +++ /dev/null @@ -1 +0,0 @@ -Whitespace: Assignment Spacing diff --git a/docs/description/Symfony_Whitespace_BinaryOperatorSpacing.md b/docs/description/Symfony_Whitespace_BinaryOperatorSpacing.md deleted file mode 100644 index 8358ed0..0000000 --- a/docs/description/Symfony_Whitespace_BinaryOperatorSpacing.md +++ /dev/null @@ -1 +0,0 @@ -Whitespace: Binary Operator Spacing diff --git a/docs/description/Symfony_Whitespace_CommaSpacing.md b/docs/description/Symfony_Whitespace_CommaSpacing.md deleted file mode 100644 index bec11bb..0000000 --- a/docs/description/Symfony_Whitespace_CommaSpacing.md +++ /dev/null @@ -1 +0,0 @@ -Whitespace: Comma Spacing diff --git a/docs/description/Symfony_Whitespace_DiscourageFitzinator.md b/docs/description/Symfony_Whitespace_DiscourageFitzinator.md deleted file mode 100644 index a71e1d2..0000000 --- a/docs/description/Symfony_Whitespace_DiscourageFitzinator.md +++ /dev/null @@ -1 +0,0 @@ -Whitespace: Discourage Fitzinator diff --git a/docs/description/Zend_Files_ClosingTag.md b/docs/description/Zend_Files_ClosingTag.md deleted file mode 100644 index f91d617..0000000 --- a/docs/description/Zend_Files_ClosingTag.md +++ /dev/null @@ -1,14 +0,0 @@ -Files should not have closing PHP tags. - -Valid: No closing tag at the end of the file. -``` - -``` diff --git a/docs/description/Zend_NamingConventions_ValidVariableName.md b/docs/description/Zend_NamingConventions_ValidVariableName.md deleted file mode 100644 index 5991bc0..0000000 --- a/docs/description/Zend_NamingConventions_ValidVariableName.md +++ /dev/null @@ -1,27 +0,0 @@ -Variable names should be camelCased with the first letter lowercase. Private and protected member variables should begin with an underscore - -Valid: A multi-word variable uses camel casing. -``` -$testNumber = 1; -``` - -Invalid: A multi-word variable uses underscores and initial capitalization. -``` -$Test_Number = 1; -``` - -Valid: A private member variable begins with an underscore. -``` -class Foo -{ - private $_bar; -} -``` - -Invalid: A private member variable does not begin with an underscore. -``` -class Foo -{ - private $bar; -} -``` diff --git a/docs/description/description.json b/docs/description/description.json deleted file mode 100644 index ff17eb5..0000000 --- a/docs/description/description.json +++ /dev/null @@ -1,3646 +0,0 @@ -[ { - "patternId" : "CakePHP_Classes_ReturnTypeHint", - "title" : "Classes: Return Type Hint", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_Commenting_DocBlockAlignment", - "title" : "Commenting: Doc Block Alignment", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_Commenting_FunctionComment", - "title" : "Commenting: Function Comment", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_Commenting_InheritDoc", - "title" : "Commenting: Inherit Doc", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_Commenting_TypeHint", - "title" : "Commenting: Type Hint", - "parameters" : [ { - "name" : "convertArraysToGenerics", - "description" : "convertArraysToGenerics" - }, { - "name" : "ignorePhpStormGenerics", - "description" : "ignorePhpStormGenerics" - } ] -}, { - "patternId" : "CakePHP_ControlStructures_ControlStructures", - "title" : "Control Structures: Control Structures", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_ControlStructures_ElseIfDeclaration", - "title" : "Control Structures: Else If Declaration", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_ControlStructures_WhileStructures", - "title" : "Control Structures: While Structures", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_Formatting_BlankLineBeforeReturn", - "title" : "Formatting: Blank Line Before Return", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_NamingConventions_ValidFunctionName", - "title" : "Naming Conventions: Valid Function Name", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_NamingConventions_ValidTraitName", - "title" : "Naming Conventions: Valid Trait Name", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_PHP_DisallowShortOpenTag", - "title" : "PHP: Disallow Short Open Tag", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_PHP_SingleQuote", - "title" : "PHP: Single Quote", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_WhiteSpace_EmptyLines", - "title" : "White Space: Empty Lines", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_WhiteSpace_FunctionCallSpacing", - "title" : "White Space: Function Call Spacing", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_WhiteSpace_FunctionClosingBraceSpace", - "title" : "White Space: Function Closing Brace Space", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_WhiteSpace_FunctionOpeningBraceSpace", - "title" : "White Space: Function Opening Brace Space", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_WhiteSpace_FunctionSpacing", - "title" : "White Space: Function Spacing", - "parameters" : [ ] -}, { - "patternId" : "CakePHP_WhiteSpace_TabAndSpace", - "title" : "White Space: Tab And Space", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Arrays_Array", - "title" : "Arrays: Array", - "parameters" : [ { - "name" : "lineLimit", - "description" : "lineLimit" - } ] -}, { - "patternId" : "Drupal_Attributes_ValidHookName", - "title" : "Attributes: Valid Hook Name", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Classes_ClassDeclaration", - "title" : "Classes: Class Declaration", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - } ] -}, { - "patternId" : "Drupal_Classes_FullyQualifiedNamespace", - "title" : "Classes: Fully Qualified Namespace", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Classes_PropertyDeclaration", - "title" : "Classes: Property Declaration", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Classes_UseGlobalClass", - "title" : "Classes: Use Global Class", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_ClassComment", - "title" : "Commenting: Class Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_Deprecated", - "title" : "Commenting: Deprecated", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_DocComment", - "title" : "Commenting: Doc Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_DocCommentAlignment", - "title" : "Commenting: Doc Comment Alignment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_DocCommentLongArraySyntax", - "title" : "Commenting: Doc Comment Long Array Syntax", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_DocCommentStar", - "title" : "Commenting: Doc Comment Star", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_FileComment", - "title" : "Commenting: File Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_FunctionComment", - "title" : "Commenting: Function Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_GenderNeutralComment", - "title" : "Commenting: Gender Neutral Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_HookComment", - "title" : "Commenting: Hook Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_InlineComment", - "title" : "Commenting: Inline Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_InlineVariableComment", - "title" : "Commenting: Inline Variable Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_PostStatementComment", - "title" : "Commenting: Post Statement Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_TodoComment", - "title" : "Commenting: Todo Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Commenting_VariableComment", - "title" : "Commenting: Variable Comment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_ControlStructures_ControlSignature", - "title" : "Control Structures: Control Signature", - "parameters" : [ { - "name" : "requiredSpacesBeforeColon", - "description" : "requiredSpacesBeforeColon" - } ] -}, { - "patternId" : "Drupal_Files_EndFileNewline", - "title" : "Files: End File Newline", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Files_FileEncoding", - "title" : "Files: File Encoding", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Files_LineLength", - "title" : "Files: Line Length", - "parameters" : [ { - "name" : "lineLimit", - "description" : "lineLimit" - }, { - "name" : "absoluteLineLimit", - "description" : "absoluteLineLimit" - } ] -}, { - "patternId" : "Drupal_Files_TxtFileLineLength", - "title" : "Files: Txt File Line Length", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Formatting_MultiLineAssignment", - "title" : "Formatting: Multi Line Assignment", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Formatting_MultipleStatementAlignment", - "title" : "Formatting: Multiple Statement Alignment", - "parameters" : [ { - "name" : "error", - "description" : "error" - } ] -}, { - "patternId" : "Drupal_Formatting_SpaceInlineIf", - "title" : "Formatting: Space Inline If", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Formatting_SpaceUnaryOperator", - "title" : "Formatting: Space Unary Operator", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Functions_DiscouragedFunctions", - "title" : "Functions: Discouraged Functions", - "parameters" : [ { - "name" : "error", - "description" : "error" - } ] -}, { - "patternId" : "Drupal_Functions_MultiLineFunctionDeclaration", - "title" : "Functions: Multi Line Function Declaration", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - } ] -}, { - "patternId" : "Drupal_InfoFiles_AutoAddedKeys", - "title" : "Info Files: Auto Added Keys", - "parameters" : [ ] -}, { - "patternId" : "Drupal_InfoFiles_ClassFiles", - "title" : "Info Files: Class Files", - "parameters" : [ ] -}, { - "patternId" : "Drupal_InfoFiles_DependenciesArray", - "title" : "Info Files: Dependencies Array", - "parameters" : [ ] -}, { - "patternId" : "Drupal_InfoFiles_DuplicateEntry", - "title" : "Info Files: Duplicate Entry", - "parameters" : [ ] -}, { - "patternId" : "Drupal_InfoFiles_Required", - "title" : "Info Files: Required", - "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", - "parameters" : [ ] -}, { - "patternId" : "Drupal_NamingConventions_ValidGlobal", - "title" : "Naming Conventions: Valid Global", - "parameters" : [ ] -}, { - "patternId" : "Drupal_NamingConventions_ValidVariableName", - "title" : "Naming Conventions: Valid Variable Name", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Scope_MethodScope", - "title" : "Scope: Method Scope", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_ConstantName", - "title" : "Semantics: Constant Name", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_EmptyInstall", - "title" : "Semantics: Empty Install", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_FunctionAlias", - "title" : "Semantics: Function Alias", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_FunctionT", - "title" : "Semantics: Function T", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_FunctionTriggerError", - "title" : "Semantics: Function Trigger Error", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_FunctionWatchdog", - "title" : "Semantics: Function Watchdog", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_InstallHooks", - "title" : "Semantics: Install Hooks", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_LStringTranslatable", - "title" : "Semantics: L String Translatable", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_PregSecurity", - "title" : "Semantics: Preg Security", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_RemoteAddress", - "title" : "Semantics: Remote Address", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_TInHookMenu", - "title" : "Semantics: T In Hook Menu", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_TInHookSchema", - "title" : "Semantics: T In Hook Schema", - "parameters" : [ ] -}, { - "patternId" : "Drupal_Semantics_UnsilencedDeprecation", - "title" : "Semantics: Unsilenced Deprecation", - "parameters" : [ ] -}, { - "patternId" : "Drupal_WhiteSpace_CloseBracketSpacing", - "title" : "White Space: Close Bracket Spacing", - "parameters" : [ ] -}, { - "patternId" : "Drupal_WhiteSpace_Comma", - "title" : "White Space: Comma", - "parameters" : [ ] -}, { - "patternId" : "Drupal_WhiteSpace_EmptyLines", - "title" : "White Space: Empty Lines", - "parameters" : [ ] -}, { - "patternId" : "Drupal_WhiteSpace_ObjectOperatorIndent", - "title" : "White Space: Object Operator Indent", - "parameters" : [ ] -}, { - "patternId" : "Drupal_WhiteSpace_ObjectOperatorSpacing", - "title" : "White Space: Object Operator Spacing", - "parameters" : [ ] -}, { - "patternId" : "Drupal_WhiteSpace_OpenBracketSpacing", - "title" : "White Space: Open Bracket Spacing", - "parameters" : [ ] -}, { - "patternId" : "Drupal_WhiteSpace_OpenTagNewline", - "title" : "White Space: Open Tag Newline", - "parameters" : [ ] -}, { - "patternId" : "Drupal_WhiteSpace_ScopeClosingBrace", - "title" : "White Space: Scope Closing Brace", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - } ] -}, { - "patternId" : "Drupal_WhiteSpace_ScopeIndent", - "title" : "White Space: Scope Indent", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - }, { - "name" : "exact", - "description" : "exact" - }, { - "name" : "tabIndent", - "description" : "tabIndent" - } ] -}, { - "patternId" : "Generic_Arrays_ArrayIndent", - "title" : "Array Indent", - "description" : "The opening brace of a multi-line array must be indented at least to the same level as the start of the statement.", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - } ] -}, { - "patternId" : "Generic_Arrays_DisallowLongArraySyntax", - "title" : "Short Array Syntax", - "description" : "Short array syntax must be used to define arrays.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Arrays_DisallowShortArraySyntax", - "title" : "Long Array Syntax", - "description" : "Long array syntax must be used to define arrays.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Classes_DuplicateClassName", - "title" : "Duplicate Class Names", - "description" : "Class and Interface names should be unique in a project. They should never be duplicated.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Classes_OpeningBraceSameLine", - "title" : "Opening Brace on Same Line", - "description" : "The opening brace of a class must be on the same line after the definition and must be the last thing on that line.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_AssignmentInCondition", - "title" : "Assignment In Condition", - "description" : "Variable assignments should not be made within conditions.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_EmptyPHPStatement", - "title" : "Empty PHP Statement", - "description" : "Empty PHP tags are not allowed.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_EmptyStatement", - "title" : "Empty Statements", - "description" : "Control Structures must have at least one statement inside of the body.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_ForLoopShouldBeWhileLoop", - "title" : "Condition-Only For Loops", - "description" : "For loops that have only a second expression (the condition) should be converted to while loops.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_ForLoopWithTestFunctionCall", - "title" : "For Loops With Function Calls in the Test", - "description" : "For loops should not call functions inside the test for the loop when they can be computed beforehand.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_JumbledIncrementer", - "title" : "Jumbled Incrementers", - "description" : "Incrementers in nested loops should use different variable names.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_RequireExplicitBooleanOperatorPrecedence", - "title" : "Require Explicit Boolean Operator Precedence", - "description" : "Forbids mixing different binary boolean operators (&&, ||, and, or, xor) within a single expression without making precedence clear using parentheses.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_UnconditionalIfStatement", - "title" : "Unconditional If Statements", - "description" : "If statements that are always evaluated should not be used.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_UnnecessaryFinalModifier", - "title" : "Unnecessary Final Modifiers", - "description" : "Methods should not be declared final inside of classes that are declared final.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_UnusedFunctionParameter", - "title" : "Unused function parameters", - "description" : "All parameters in a functions signature should be used within the function.", - "parameters" : [ ] -}, { - "patternId" : "Generic_CodeAnalysis_UselessOverridingMethod", - "title" : "Useless Overriding Method", - "description" : "It is discouraged to override a method if the overriding method only calls the parent method.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Commenting_DocComment", - "title" : "Doc Comment", - "description" : "Enforces rules related to the formatting of DocBlocks (\"Doc Comments\") in PHP code. DocBlocks are a special type of comment that can provide information about a structural element. In the context of DocBlocks, the following are considered structural elements: class, interface, trait, enum, function, property, constant, variable declarations and require/include[_once] statements. DocBlocks start with a `/**` marker and end on `*/`", - "parameters" : [ ] -}, { - "patternId" : "Generic_Commenting_Fixme", - "title" : "Fixme Comments", - "description" : "FIXME Statements should be taken care of.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Commenting_Todo", - "title" : "Todo Comments", - "description" : "TODO Statements should be taken care of.", - "parameters" : [ ] -}, { - "patternId" : "Generic_ControlStructures_DisallowYodaConditions", - "title" : "Disallow Yoda conditions", - "description" : "Yoda conditions are disallowed.", - "parameters" : [ ] -}, { - "patternId" : "Generic_ControlStructures_InlineControlStructure", - "title" : "Inline Control Structures", - "description" : "Control Structures should use braces.", - "parameters" : [ { - "name" : "error", - "description" : "error" - } ] -}, { - "patternId" : "Generic_Files_ByteOrderMark", - "title" : "Byte Order Marks", - "description" : "Byte Order Marks that may corrupt your application should not be used. These include 0xefbbbf (UTF-8), 0xfeff (UTF-16 BE) and 0xfffe (UTF-16 LE).", - "parameters" : [ ] -}, { - "patternId" : "Generic_Files_EndFileNewline", - "title" : "End of File Newline", - "description" : "Files should end with a newline character.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Files_EndFileNoNewline", - "title" : "No End of File Newline", - "description" : "Files should not end with a newline character.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Files_ExecutableFile", - "title" : "Executable Files", - "description" : "Files should not be executable.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Files_InlineHTML", - "title" : "Inline HTML", - "description" : "Files that contain PHP code should only have PHP code and should not have any \"inline html\".", - "parameters" : [ ] -}, { - "patternId" : "Generic_Files_LineEndings", - "title" : "Line Endings", - "description" : "Unix-style line endings are preferred (\"\\n\" instead of \"\\r\\n\").", - "parameters" : [ { - "name" : "eolChar", - "description" : "eolChar" - } ] -}, { - "patternId" : "Generic_Files_LineLength", - "title" : "Line Length", - "description" : "It is recommended to keep lines at approximately 80 characters long for better code readability.", - "parameters" : [ { - "name" : "lineLimit", - "description" : "lineLimit" - }, { - "name" : "absoluteLineLimit", - "description" : "absoluteLineLimit" - }, { - "name" : "ignoreComments", - "description" : "ignoreComments" - } ] -}, { - "patternId" : "Generic_Files_LowercasedFilename", - "title" : "Lowercased Filenames", - "description" : "Lowercase filenames are required.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Files_OneClassPerFile", - "title" : "One Class Per File", - "description" : "There should only be one class defined in a file.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Files_OneInterfacePerFile", - "title" : "One Interface Per File", - "description" : "There should only be one interface defined in a file.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Files_OneObjectStructurePerFile", - "title" : "One Object Structure Per File", - "description" : "There should only be one class or interface or trait defined in a file.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Files_OneTraitPerFile", - "title" : "One Trait Per File", - "description" : "There should only be one trait defined in a file.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Formatting_DisallowMultipleStatements", - "title" : "Multiple Statements On a Single Line", - "description" : "Multiple statements are not allowed on a single line.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Formatting_MultipleStatementAlignment", - "title" : "Aligning Blocks of Assignments", - "description" : "There should be one space on either side of an equals sign used to assign a value to a variable. In the case of a block of related assignments, more space may be inserted to promote readability.", - "parameters" : [ { - "name" : "maxPadding", - "description" : "maxPadding" - }, { - "name" : "alignAtEnd", - "description" : "alignAtEnd" - } ] -}, { - "patternId" : "Generic_Formatting_SpaceAfterCast", - "title" : "Space After Cast", - "description" : "Exactly one space is allowed after a cast.", - "parameters" : [ { - "name" : "spacing", - "description" : "spacing" - }, { - "name" : "ignoreNewlines", - "description" : "ignoreNewlines" - } ] -}, { - "patternId" : "Generic_Formatting_SpaceAfterNot", - "title" : "Space After NOT operator", - "description" : "Exactly one space is allowed after the NOT operator.", - "parameters" : [ { - "name" : "spacing", - "description" : "spacing" - }, { - "name" : "ignoreNewlines", - "description" : "ignoreNewlines" - } ] -}, { - "patternId" : "Generic_Formatting_SpaceBeforeCast", - "title" : "Space Before Cast", - "description" : "There should be exactly one space before a cast operator.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Functions_FunctionCallArgumentSpacing", - "title" : "Function Call Argument Spacing", - "description" : "There should be no space before and exactly one space, or a new line, after a comma when passing arguments to a function or method.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Functions_OpeningFunctionBraceBsdAllman", - "title" : "Opening Function Brace Bsd Allman", - "description" : "Function declarations must follow the \"BSD/Allman style\". The opening brace is on the line following the function declaration and is indented to the same column as the start of the function declaration. The brace must be the last content on the line.", - "parameters" : [ { - "name" : "checkFunctions", - "description" : "checkFunctions" - }, { - "name" : "checkClosures", - "description" : "checkClosures" - } ] -}, { - "patternId" : "Generic_Functions_OpeningFunctionBraceKernighanRitchie", - "title" : "Opening Function Brace Kerninghan Ritchie", - "description" : "The function opening brace must be on the same line as the end of the function declaration, with exactly one space between the end of the declaration and the brace. The brace must be the last content on the line.", - "parameters" : [ { - "name" : "checkFunctions", - "description" : "checkFunctions" - }, { - "name" : "checkClosures", - "description" : "checkClosures" - } ] -}, { - "patternId" : "Generic_Metrics_CyclomaticComplexity", - "title" : "Cyclomatic Complexity", - "description" : "Functions should not have a cyclomatic complexity greater than 20, and should try to stay below a complexity of 10.", - "parameters" : [ { - "name" : "complexity", - "description" : "complexity" - }, { - "name" : "absoluteComplexity", - "description" : "absoluteComplexity" - } ] -}, { - "patternId" : "Generic_Metrics_NestingLevel", - "title" : "Nesting Level", - "description" : "Functions should not have a nesting level greater than 10, and should try to stay below 5.", - "parameters" : [ { - "name" : "nestingLevel", - "description" : "nestingLevel" - }, { - "name" : "absoluteNestingLevel", - "description" : "absoluteNestingLevel" - } ] -}, { - "patternId" : "Generic_NamingConventions_AbstractClassNamePrefix", - "title" : "Abstract class name", - "description" : "Abstract class names must be prefixed with \"Abstract\", e.g. AbstractBar.", - "parameters" : [ ] -}, { - "patternId" : "Generic_NamingConventions_CamelCapsFunctionName", - "title" : "camelCaps Function Names", - "description" : "Functions should use camelCaps format for their names. Only PHP's magic methods should use a double underscore prefix.", - "parameters" : [ { - "name" : "strict", - "description" : "strict" - } ] -}, { - "patternId" : "Generic_NamingConventions_ConstructorName", - "title" : "Constructor name", - "description" : "Constructors should be named __construct, not after the class.", - "parameters" : [ ] -}, { - "patternId" : "Generic_NamingConventions_InterfaceNameSuffix", - "title" : "Interface name suffix", - "description" : "Interface names must be suffixed with \"Interface\", e.g. BarInterface.", - "parameters" : [ ] -}, { - "patternId" : "Generic_NamingConventions_TraitNameSuffix", - "title" : "Trait name suffix", - "description" : "Trait names must be suffixed with \"Trait\", e.g. BarTrait.", - "parameters" : [ ] -}, { - "patternId" : "Generic_NamingConventions_UpperCaseConstantName", - "title" : "Constant Names", - "description" : "Constants should always be all-uppercase, with underscores to separate words.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_BacktickOperator", - "title" : "Backtick Operator", - "description" : "Disallow the use of the backtick operator for execution of shell commands.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_CharacterBeforePHPOpeningTag", - "title" : "Opening Tag at Start of File", - "description" : "The opening PHP tag should be the first item in the file.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_ClosingPHPTag", - "title" : "Closing PHP Tags", - "description" : "All opening PHP tags should have a corresponding closing tag.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_DeprecatedFunctions", - "title" : "Deprecated Functions", - "description" : "Deprecated functions should not be used.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_DisallowAlternativePHPTags", - "title" : "Alternative PHP Code Tags", - "description" : "Always use to delimit PHP code, do not use the ASP <% %> style tags nor the tags. This is the most portable way to include PHP code on differing operating systems and setups.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_DisallowRequestSuperglobal", - "title" : "$_REQUEST Superglobal", - "description" : "$_REQUEST should never be used due to the ambiguity created as to where the data is coming from. Use $_POST, $_GET, or $_COOKIE instead.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_DisallowShortOpenTag", - "title" : "PHP Code Tags", - "description" : "Always use to delimit PHP code, not the shorthand. This is the most portable way to include PHP code on differing operating systems and setups.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_DiscourageGoto", - "title" : "Goto", - "description" : "Discourage the use of the PHP `goto` language construct.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_ForbiddenFunctions", - "title" : "Forbidden Functions", - "description" : "The forbidden functions sizeof() and delete() should not be used.", - "parameters" : [ { - "name" : "error", - "description" : "error" - } ] -}, { - "patternId" : "Generic_PHP_LowerCaseConstant", - "title" : "Lowercase PHP Constants", - "description" : "The true, false and null constants must always be lowercase.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_LowerCaseKeyword", - "title" : "Lowercase Keywords", - "description" : "All PHP keywords should be lowercase.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_LowerCaseType", - "title" : "Lowercase PHP Types", - "description" : "All PHP types used for parameter type and return type declarations should be lowercase.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_NoSilencedErrors", - "title" : "Silenced Errors", - "description" : "Suppressing Errors is not allowed.", - "parameters" : [ { - "name" : "error", - "description" : "error" - } ] -}, { - "patternId" : "Generic_PHP_RequireStrictTypes", - "title" : "Require Strict Types", - "description" : "The strict_types declaration must be present.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_SAPIUsage", - "title" : "SAPI Usage", - "description" : "The PHP_SAPI constant should be used instead of php_sapi_name().", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_Syntax", - "title" : "PHP Syntax", - "description" : "The code should use valid PHP syntax.", - "parameters" : [ ] -}, { - "patternId" : "Generic_PHP_UpperCaseConstant", - "title" : "Uppercase PHP Constants", - "description" : "The true, false and null constants must always be uppercase.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Strings_UnnecessaryHeredoc", - "title" : "Unnecessary Heredoc", - "description" : "If no interpolation or expressions are used in the body of a heredoc, nowdoc syntax should be used instead.", - "parameters" : [ ] -}, { - "patternId" : "Generic_Strings_UnnecessaryStringConcat", - "title" : "Unnecessary String Concatenation", - "description" : "Strings should not be concatenated together.", - "parameters" : [ { - "name" : "allowMultiline", - "description" : "allowMultiline" - } ] -}, { - "patternId" : "Generic_VersionControl_GitMergeConflict", - "title" : "Version Control: Git Merge Conflict", - "parameters" : [ ] -}, { - "patternId" : "Generic_VersionControl_SubversionProperties", - "title" : "Subversion Properties", - "description" : "All PHP files in a subversion repository should have the svn:keywords property set to 'Author Id Revision' and the svn:eol-style property set to 'native'.", - "parameters" : [ ] -}, { - "patternId" : "Generic_WhiteSpace_ArbitraryParenthesesSpacing", - "title" : "Arbitrary Parentheses Spacing", - "description" : "Arbitrary sets of parentheses should have no spaces inside.", - "parameters" : [ { - "name" : "spacing", - "description" : "spacing" - }, { - "name" : "ignoreNewlines", - "description" : "ignoreNewlines" - } ] -}, { - "patternId" : "Generic_WhiteSpace_DisallowSpaceIndent", - "title" : "No Space Indentation", - "description" : "Tabs should be used for indentation instead of spaces.", - "parameters" : [ ] -}, { - "patternId" : "Generic_WhiteSpace_DisallowTabIndent", - "title" : "No Tab Indentation", - "description" : "Spaces should be used for indentation instead of tabs.", - "parameters" : [ ] -}, { - "patternId" : "Generic_WhiteSpace_GotoTargetSpacing", - "title" : "Goto Target Spacing", - "description" : "There should be no space between the label for a goto target and the colon following it.", - "parameters" : [ ] -}, { - "patternId" : "Generic_WhiteSpace_HereNowdocIdentifierSpacing", - "title" : "Heredoc Nowdoc Identifier Spacing", - "description" : "There should be no space between the <<< and the heredoc/nowdoc identifier string.", - "parameters" : [ ] -}, { - "patternId" : "Generic_WhiteSpace_IncrementDecrementSpacing", - "title" : "Increment Decrement Spacing", - "description" : "There should be no whitespace between variables and increment/decrement operators.", - "parameters" : [ ] -}, { - "patternId" : "Generic_WhiteSpace_LanguageConstructSpacing", - "title" : "Language Construct Spacing", - "description" : "Language constructs that can be used without parentheses, must have a single space between the language construct keyword and its content.", - "parameters" : [ ] -}, { - "patternId" : "Generic_WhiteSpace_ScopeIndent", - "title" : "Scope Indentation", - "description" : "Indentation for control structures, classes, and functions should be 4 spaces per level.", - "parameters" : [ { - "name" : "indent", - "description" : "indent" - }, { - "name" : "exact", - "description" : "exact" - }, { - "name" : "tabIndent", - "description" : "tabIndent" - } ] -}, { - "patternId" : "Generic_WhiteSpace_SpreadOperatorSpacingAfter", - "title" : "Spacing After Spread Operator", - "description" : "There should be no space between the spread operator and the variable/function call it applies to.", - "parameters" : [ { - "name" : "spacing", - "description" : "spacing" - }, { - "name" : "ignoreNewlines", - "description" : "ignoreNewlines" - } ] -}, { - "patternId" : "PEAR_Classes_ClassDeclaration", - "title" : "Class Declaration", - "description" : "The opening brace of an OO structure must be on the line directly after the OO signature. The opening brace must be on a line by itself.", - "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.", - "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", - "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.", - "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.", - "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.", - "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.", - "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.", - "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.", - "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" : "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" : "PHPCompatibility_Attributes_NewAttributes", - "title" : "PHP Compatibility related issue (Attributes): New Attributes", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_ForbiddenClassNameUnderscore", - "title" : "PHP Compatibility related issue (Classes): Forbidden Class Name Underscore", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_ForbiddenExtendingFinalPHPClass", - "title" : "PHP Compatibility related issue (Classes): Forbidden Extending Final PHP Class", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewAbstractProperties", - "title" : "PHP Compatibility related issue (Classes): New Abstract Properties", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewAnonymousClasses", - "title" : "PHP Compatibility related issue (Classes): New Anonymous Classes", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewClasses", - "title" : "PHP Compatibility related issue (Classes): New Classes", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewConstVisibility", - "title" : "PHP Compatibility related issue (Classes): New Const Visibility", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewConstructorPropertyPromotion", - "title" : "PHP Compatibility related issue (Classes): New Constructor Property Promotion", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewFinalConstants", - "title" : "PHP Compatibility related issue (Classes): New Final Constants", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewFinalProperties", - "title" : "PHP Compatibility related issue (Classes): New Final Properties", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewLateStaticBinding", - "title" : "PHP Compatibility related issue (Classes): New Late Static Binding", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewReadonlyClasses", - "title" : "PHP Compatibility related issue (Classes): New Readonly Classes", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewReadonlyProperties", - "title" : "PHP Compatibility related issue (Classes): New Readonly Properties", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewStaticAvizProperties", - "title" : "PHP Compatibility related issue (Classes): New Static Aviz Properties", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewTypedConstants", - "title" : "PHP Compatibility related issue (Classes): New Typed Constants", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_NewTypedProperties", - "title" : "PHP Compatibility related issue (Classes): New Typed Properties", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_RemovedClasses", - "title" : "PHP Compatibility related issue (Classes): Removed Classes", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Classes_RemovedOrphanedParent", - "title" : "PHP Compatibility related issue (Classes): Removed Orphaned Parent", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Constants_NewConstants", - "title" : "PHP Compatibility related issue (Constants): New Constants", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Constants_NewConstantsInTraits", - "title" : "PHP Compatibility related issue (Constants): New Constants In Traits", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Constants_NewMagicClassConstant", - "title" : "PHP Compatibility related issue (Constants): New Magic Class Constant", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Constants_RemovedConstants", - "title" : "PHP Compatibility related issue (Constants): Removed Constants", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ControlStructures_DiscouragedSwitchContinue", - "title" : "PHP Compatibility related issue (Control Structures): Discouraged Switch Continue", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueOutsideLoop", - "title" : "PHP Compatibility related issue (Control Structures): Forbidden Break Continue Outside Loop", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueVariableArguments", - "title" : "PHP Compatibility related issue (Control Structures): Forbidden Break Continue Variable Arguments", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenSwitchWithMultipleDefaultBlocks", - "title" : "PHP Compatibility related issue (Control Structures): Forbidden Switch With Multiple Default Blocks", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ControlStructures_NewExecutionDirectives", - "title" : "PHP Compatibility related issue (Control Structures): New Execution Directives", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ControlStructures_NewForeachExpressionReferencing", - "title" : "PHP Compatibility related issue (Control Structures): New Foreach Expression Referencing", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ControlStructures_NewListInForeach", - "title" : "PHP Compatibility related issue (Control Structures): New List In Foreach", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ControlStructures_NewMultiCatch", - "title" : "PHP Compatibility related issue (Control Structures): New Multi Catch", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ControlStructures_NewNonCapturingCatch", - "title" : "PHP Compatibility related issue (Control Structures): New Non Capturing Catch", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Extensions_RemovedExtensions", - "title" : "PHP Compatibility related issue (Extensions): Removed Extensions", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_AbstractPrivateMethods", - "title" : "PHP Compatibility related issue (Function Declarations): Abstract Private Methods", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenFinalPrivateMethods", - "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Final Private Methods", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals", - "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Parameter Shadow Super Globals", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParametersWithSameName", - "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Parameters With Same Name", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenToStringParameters", - "title" : "PHP Compatibility related issue (Function Declarations): Forbidden To String Parameters", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenVariableNamesInClosureUse", - "title" : "PHP Compatibility related issue (Function Declarations): Forbidden Variable Names In Closure Use", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewClosure", - "title" : "PHP Compatibility related issue (Function Declarations): New Closure", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewExceptionsFromToString", - "title" : "PHP Compatibility related issue (Function Declarations): New Exceptions From To String", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewNullableTypes", - "title" : "PHP Compatibility related issue (Function Declarations): New Nullable Types", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewParamTypeDeclarations", - "title" : "PHP Compatibility related issue (Function Declarations): New Param Type Declarations", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewReturnTypeDeclarations", - "title" : "PHP Compatibility related issue (Function Declarations): New Return Type Declarations", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewTrailingComma", - "title" : "PHP Compatibility related issue (Function Declarations): New Trailing Comma", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods", - "title" : "PHP Compatibility related issue (Function Declarations): Non Static Magic Methods", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedCallingDestructAfterConstructorExit", - "title" : "PHP Compatibility related issue (Function Declarations): Removed Calling Destruct After Constructor Exit", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedImplicitlyNullableParam", - "title" : "PHP Compatibility related issue (Function Declarations): Removed Implicitly Nullable Param", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedOptionalBeforeRequiredParam", - "title" : "PHP Compatibility related issue (Function Declarations): Removed Optional Before Required Param", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedReturnByReferenceFromVoid", - "title" : "PHP Compatibility related issue (Function Declarations): Removed Return By Reference From Void", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_NewMagicMethods", - "title" : "PHP Compatibility related issue (Function Name Restrictions): New Magic Methods", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedMagicAutoload", - "title" : "PHP Compatibility related issue (Function Name Restrictions): Removed Magic Autoload", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedNamespacedAssert", - "title" : "PHP Compatibility related issue (Function Name Restrictions): Removed Namespaced Assert", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedPHP4StyleConstructors", - "title" : "PHP Compatibility related issue (Function Name Restrictions): Removed PHP4 Style Constructors", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_ReservedFunctionNames", - "title" : "PHP Compatibility related issue (Function Name Restrictions): Reserved Function Names", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsReportCurrentValue", - "title" : "PHP Compatibility related issue (Function Use): Argument Functions Report Current Value", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsUsage", - "title" : "PHP Compatibility related issue (Function Use): Argument Functions Usage", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionUse_NewFunctionParameters", - "title" : "PHP Compatibility related issue (Function Use): New Function Parameters", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionUse_NewFunctions", - "title" : "PHP Compatibility related issue (Function Use): New Functions", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionUse_NewNamedParameters", - "title" : "PHP Compatibility related issue (Function Use): New Named Parameters", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters", - "title" : "PHP Compatibility related issue (Function Use): Optional To Required Function Parameters", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctionParameters", - "title" : "PHP Compatibility related issue (Function Use): Removed Function Parameters", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctions", - "title" : "PHP Compatibility related issue (Function Use): Removed Functions", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_FunctionUse_RequiredToOptionalFunctionParameters", - "title" : "PHP Compatibility related issue (Function Use): Required To Optional Function Parameters", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Generators_NewGeneratorReturn", - "title" : "PHP Compatibility related issue (Generators): New Generator Return", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Generators_NewYieldFromComment", - "title" : "PHP Compatibility related issue (Generators): New Yield From Comment", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_IniDirectives_NewIniDirectives", - "title" : "PHP Compatibility related issue (Ini Directives): New Ini Directives", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_IniDirectives_RemovedIniDirectives", - "title" : "PHP Compatibility related issue (Ini Directives): Removed Ini Directives", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingConst", - "title" : "PHP Compatibility related issue (Initial Value): New Constant Arrays Using Const", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingDefine", - "title" : "PHP Compatibility related issue (Initial Value): New Constant Arrays Using Define", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantScalarExpressions", - "title" : "PHP Compatibility related issue (Initial Value): New Constant Scalar Expressions", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_InitialValue_NewHeredoc", - "title" : "PHP Compatibility related issue (Initial Value): New Heredoc", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_InitialValue_NewNewInDefine", - "title" : "PHP Compatibility related issue (Initial Value): New New In Define", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_InitialValue_NewNewInInitializers", - "title" : "PHP Compatibility related issue (Initial Value): New New In Initializers", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Interfaces_InternalInterfaces", - "title" : "PHP Compatibility related issue (Interfaces): Internal Interfaces", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Interfaces_NewInterfaces", - "title" : "PHP Compatibility related issue (Interfaces): New Interfaces", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Interfaces_NewPropertiesInInterfaces", - "title" : "PHP Compatibility related issue (Interfaces): New Properties In Interfaces", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Interfaces_RemovedSerializable", - "title" : "PHP Compatibility related issue (Interfaces): Removed Serializable", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Keywords_CaseSensitiveKeywords", - "title" : "PHP Compatibility related issue (Keywords): Case Sensitive Keywords", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenClassAlias", - "title" : "PHP Compatibility related issue (Keywords): Forbidden Class Alias", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenNames", - "title" : "PHP Compatibility related issue (Keywords): Forbidden Names", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Keywords_NewKeywords", - "title" : "PHP Compatibility related issue (Keywords): New Keywords", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_LanguageConstructs_NewEmptyNonVariable", - "title" : "PHP Compatibility related issue (Language Constructs): New Empty Non Variable", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_LanguageConstructs_NewLanguageConstructs", - "title" : "PHP Compatibility related issue (Language Constructs): New Language Constructs", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_LanguageConstructs_RemovedLanguageConstructs", - "title" : "PHP Compatibility related issue (Language Constructs): Removed Language Constructs", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Lists_AssignmentOrder", - "title" : "PHP Compatibility related issue (Lists): Assignment Order", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Lists_ForbiddenEmptyListAssignment", - "title" : "PHP Compatibility related issue (Lists): Forbidden Empty List Assignment", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Lists_NewKeyedList", - "title" : "PHP Compatibility related issue (Lists): New Keyed List", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Lists_NewListReferenceAssignment", - "title" : "PHP Compatibility related issue (Lists): New List Reference Assignment", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Lists_NewShortList", - "title" : "PHP Compatibility related issue (Lists): New Short List", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_MethodUse_ForbiddenToStringParameters", - "title" : "PHP Compatibility related issue (Method Use): Forbidden To String Parameters", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_MethodUse_NewDirectCallsToClone", - "title" : "PHP Compatibility related issue (Method Use): New Direct Calls To Clone", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Miscellaneous_NewPHPOpenTagEOF", - "title" : "PHP Compatibility related issue (Miscellaneous): New PHP Open Tag EOF", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Miscellaneous_RemovedAlternativePHPTags", - "title" : "PHP Compatibility related issue (Miscellaneous): Removed Alternative PHP Tags", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Namespaces_ReservedNames", - "title" : "PHP Compatibility related issue (Namespaces): Reserved Names", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Numbers_NewExplicitOctalNotation", - "title" : "PHP Compatibility related issue (Numbers): New Explicit Octal Notation", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Numbers_NewNumericLiteralSeparator", - "title" : "PHP Compatibility related issue (Numbers): New Numeric Literal Separator", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Numbers_RemovedHexadecimalNumericStrings", - "title" : "PHP Compatibility related issue (Numbers): Removed Hexadecimal Numeric Strings", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Numbers_ValidIntegers", - "title" : "PHP Compatibility related issue (Numbers): Valid Integers", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Operators_ChangedConcatOperatorPrecedence", - "title" : "PHP Compatibility related issue (Operators): Changed Concat Operator Precedence", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Operators_ForbiddenNegativeBitshift", - "title" : "PHP Compatibility related issue (Operators): Forbidden Negative Bitshift", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Operators_NewOperators", - "title" : "PHP Compatibility related issue (Operators): New Operators", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Operators_NewShortTernary", - "title" : "PHP Compatibility related issue (Operators): New Short Ternary", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Operators_RemovedTernaryAssociativity", - "title" : "PHP Compatibility related issue (Operators): Removed Ternary Associativity", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_ChangedIntToBoolParamType", - "title" : "PHP Compatibility related issue (Parameter Values): Changed Int To Bool Param Type", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_ChangedObStartEraseFlags", - "title" : "PHP Compatibility related issue (Parameter Values): Changed Ob Start Erase Flags", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNoArgsOutsideOO", - "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Get Class No Args Outside OO", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNull", - "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Get Class Null", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenSessionModuleNameUser", - "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Session Module Name User", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML", - "title" : "PHP Compatibility related issue (Parameter Values): Forbidden Strip Tags Self Closing XHTML", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewArrayMergeRecursiveWithGlobalsVar", - "title" : "PHP Compatibility related issue (Parameter Values): New Array Merge Recursive With Globals Var", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewArrayReduceInitialType", - "title" : "PHP Compatibility related issue (Parameter Values): New Array Reduce Initial Type", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewAssertCustomException", - "title" : "PHP Compatibility related issue (Parameter Values): New Assert Custom Exception", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewClassAliasInternalClass", - "title" : "PHP Compatibility related issue (Parameter Values): New Class Alias Internal Class", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewExitAsFunctionCall", - "title" : "PHP Compatibility related issue (Parameter Values): New Exit As Function Call", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewFopenModes", - "title" : "PHP Compatibility related issue (Parameter Values): New Fopen Modes", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesEncodingDefault", - "title" : "PHP Compatibility related issue (Parameter Values): New HTML Entities Encoding Default", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewHTMLEntitiesFlagsDefault", - "title" : "PHP Compatibility related issue (Parameter Values): New HTML Entities Flags Default", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewHashAlgorithms", - "title" : "PHP Compatibility related issue (Parameter Values): New Hash Algorithms", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewIDNVariantDefault", - "title" : "PHP Compatibility related issue (Parameter Values): New IDN Variant Default", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewIconvMbstringCharsetDefault", - "title" : "PHP Compatibility related issue (Parameter Values): New Iconv Mbstring Charset Default", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewNegativeStringOffset", - "title" : "PHP Compatibility related issue (Parameter Values): New Negative String Offset", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewNumberFormatMultibyteSeparators", - "title" : "PHP Compatibility related issue (Parameter Values): New Number Format Multibyte Separators", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_NewPCREModifiers", - "title" : "PHP Compatibility related issue (Parameter Values): New PCRE Modifiers", - "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_RemovedAssertStringAssertion", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Assert String Assertion", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedDbaKeySplitNullFalse", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Dba Key Split Null False", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedGetClassNoArgs", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Get Class No Args", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedGetDefinedFunctionsExcludeDisabledFalse", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Get Defined Functions Exclude Disabled False", - "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_RemovedLdapConnectSignatures", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Ldap Connect Signatures", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbCheckEncodingNoArgs", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Mb Check Encoding No Args", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrimWidthNegativeWidth", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Mb Strim Width Negative Width", - "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_RemovedProprietaryCSVEscaping", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Proprietary CSV Escaping", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedSetlocaleString", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Setlocale String", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedSplAutoloadRegisterThrowFalse", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Spl Autoload Register Throw False", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedTriggerErrorLevel", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Trigger Error Level", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedVersionCompareOperators", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Version Compare Operators", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedXmlSetHandlerCallbackUnset", - "title" : "PHP Compatibility related issue (Parameter Values): Removed Xml Set Handler Callback Unset", - "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_NewClassMemberAccessWithoutParentheses", - "title" : "PHP Compatibility related issue (Syntax): New Class Member Access Without Parentheses", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewDynamicAccessToStatic", - "title" : "PHP Compatibility related issue (Syntax): New Dynamic Access To Static", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewDynamicClassConstantFetch", - "title" : "PHP Compatibility related issue (Syntax): New Dynamic Class Constant Fetch", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewFirstClassCallables", - "title" : "PHP Compatibility related issue (Syntax): New First Class Callables", - "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_NewInterpolatedStringDereferencing", - "title" : "PHP Compatibility related issue (Syntax): New Interpolated String Dereferencing", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewMagicConstantDereferencing", - "title" : "PHP Compatibility related issue (Syntax): New Magic Constant Dereferencing", - "parameters" : [ ] -}, { - "patternId" : "PHPCompatibility_Syntax_NewNestedStaticAccess", - "title" : "PHP Compatibility related issue (Syntax): New Nested Static Access", - "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_TextStrings_RemovedDollarBraceStringEmbeds", - "title" : "PHP Compatibility related issue (Text Strings): Removed Dollar Brace String Embeds", - "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_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_RemovedIndirectModificationOfGlobals", - "title" : "PHP Compatibility related issue (Variables): Removed Indirect Modification Of Globals", - "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" : "Closing Brace", - "description" : "The closing brace of object-oriented constructs and functions must not be followed by any comment or statement on the same line.", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Classes_OpeningBraceSpace", - "title" : "Opening Brace Space", - "description" : "The opening brace of an object-oriented construct must not be followed by a blank line.", - "parameters" : [ ] -}, { - "patternId" : "PSR12_ControlStructures_BooleanOperatorPlacement", - "title" : "Boolean Operator Placement", - "description" : "Boolean operators between conditions in control structures must always be at the beginning or at the end of the line, not a mix of both. This rule applies to if/else conditions, while loops and switch/match statements.", - "parameters" : [ { - "name" : "allowOnly", - "description" : "allowOnly" - } ] -}, { - "patternId" : "PSR12_ControlStructures_ControlStructureSpacing", - "title" : "Control Structure Spacing", - "description" : "Single line control structures must have no spaces after the condition opening parenthesis and before the condition closing parenthesis.", - "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" : "Import Statement", - "description" : "Import use statements must not begin with a leading backslash.", - "parameters" : [ ] -}, { - "patternId" : "PSR12_Files_OpenTag", - "title" : "Open PHP Tag", - "description" : "When the opening ) 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_ScopeClosingBrace", - "title" : "Scope Closing Brace", - "description" : "Indentation of a closing brace must match the indentation of the line containing the opening 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" : "Superfluous Whitespace", - "description" : "There should be no superfluous whitespace at the start of a file.", - "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" : "Zend_Files_ClosingTag", - "title" : "Closing PHP Tags", - "description" : "Files should not have closing PHP tags.", - "parameters" : [ ] -}, { - "patternId" : "Zend_NamingConventions_ValidVariableName", - "title" : "Variable Names", - "description" : "Variable names should be camelCased with the first letter lowercase. Private and protected member variables should begin with an underscore", - "parameters" : [ ] -} ] \ No newline at end of file diff --git a/docs/patterns.json b/docs/patterns.json deleted file mode 100644 index 98dbf1b..0000000 --- a/docs/patterns.json +++ /dev/null @@ -1,5486 +0,0 @@ -{ - "name" : "phpcs", - "version" : "4.0.1", - "patterns" : [ { - "patternId" : "CakePHP_Classes_ReturnTypeHint", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_Commenting_DocBlockAlignment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_Commenting_FunctionComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_Commenting_InheritDoc", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_Commenting_TypeHint", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "convertArraysToGenerics", - "default" : true - }, { - "name" : "ignorePhpStormGenerics", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_ControlStructures_ControlStructures", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_ControlStructures_ElseIfDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_ControlStructures_WhileStructures", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_Formatting_BlankLineBeforeReturn", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_NamingConventions_ValidFunctionName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_NamingConventions_ValidTraitName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_PHP_DisallowShortOpenTag", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_PHP_SingleQuote", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_WhiteSpace_EmptyLines", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_WhiteSpace_FunctionCallSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_WhiteSpace_FunctionClosingBraceSpace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_WhiteSpace_FunctionOpeningBraceSpace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_WhiteSpace_FunctionSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "CakePHP_WhiteSpace_TabAndSpace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Arrays_Array", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "lineLimit", - "default" : 120 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Attributes_ValidHookName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Classes_ClassDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 2 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Classes_FullyQualifiedNamespace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Classes_PropertyDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Classes_UseGlobalClass", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_ClassComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_Deprecated", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_DocComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_DocCommentAlignment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_DocCommentLongArraySyntax", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_DocCommentStar", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_FileComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_FunctionComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_GenderNeutralComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_HookComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_InlineComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_InlineVariableComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_PostStatementComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_TodoComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Commenting_VariableComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_ControlStructures_ControlSignature", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "requiredSpacesBeforeColon", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Files_EndFileNewline", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Files_FileEncoding", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Files_LineLength", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "lineLimit", - "default" : 80 - }, { - "name" : "absoluteLineLimit", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Files_TxtFileLineLength", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Formatting_MultiLineAssignment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Formatting_MultipleStatementAlignment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "error", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Formatting_SpaceInlineIf", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Formatting_SpaceUnaryOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Functions_DiscouragedFunctions", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "error", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Functions_MultiLineFunctionDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 2 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_InfoFiles_AutoAddedKeys", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_InfoFiles_ClassFiles", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_InfoFiles_DependenciesArray", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_InfoFiles_DuplicateEntry", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_InfoFiles_Required", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_NamingConventions_ValidClassName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_NamingConventions_ValidEnumCase", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_NamingConventions_ValidFunctionName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_NamingConventions_ValidGlobal", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_NamingConventions_ValidVariableName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Scope_MethodScope", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_ConstantName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_EmptyInstall", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_FunctionAlias", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_FunctionT", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_FunctionTriggerError", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_FunctionWatchdog", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_InstallHooks", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_LStringTranslatable", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_PregSecurity", - "level" : "Error", - "category" : "Security", - "subcategory" : "CommandInjection", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_RemoteAddress", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_TInHookMenu", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_TInHookSchema", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_Semantics_UnsilencedDeprecation", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_WhiteSpace_CloseBracketSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_WhiteSpace_Comma", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_WhiteSpace_EmptyLines", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_WhiteSpace_ObjectOperatorIndent", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_WhiteSpace_ObjectOperatorSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_WhiteSpace_OpenBracketSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_WhiteSpace_OpenTagNewline", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_WhiteSpace_ScopeClosingBrace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 2 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Drupal_WhiteSpace_ScopeIndent", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 2 - }, { - "name" : "exact", - "default" : true - }, { - "name" : "tabIndent", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Arrays_ArrayIndent", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Arrays_DisallowLongArraySyntax", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_Arrays_DisallowShortArraySyntax", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Classes_DuplicateClassName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Classes_OpeningBraceSameLine", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_AssignmentInCondition", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_EmptyPHPStatement", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_EmptyStatement", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_ForLoopShouldBeWhileLoop", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_ForLoopWithTestFunctionCall", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_JumbledIncrementer", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_RequireExplicitBooleanOperatorPrecedence", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_UnconditionalIfStatement", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_UnnecessaryFinalModifier", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_UnusedFunctionParameter", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_CodeAnalysis_UselessOverridingMethod", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Commenting_DocComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Commenting_Fixme", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Commenting_Todo", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_ControlStructures_DisallowYodaConditions", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_ControlStructures_InlineControlStructure", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "error", - "default" : true - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_Files_ByteOrderMark", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_EndFileNewline", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_EndFileNoNewline", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_ExecutableFile", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_InlineHTML", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_LineEndings", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "eolChar", - "default" : "'\\n'" - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_LineLength", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "lineLimit", - "default" : 80 - }, { - "name" : "absoluteLineLimit", - "default" : 100 - }, { - "name" : "ignoreComments", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_LowercasedFilename", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_OneClassPerFile", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_OneInterfacePerFile", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_OneObjectStructurePerFile", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Files_OneTraitPerFile", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Formatting_DisallowMultipleStatements", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_Formatting_MultipleStatementAlignment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxPadding", - "default" : 1000 - }, { - "name" : "alignAtEnd", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Formatting_SpaceAfterCast", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacing", - "default" : 1 - }, { - "name" : "ignoreNewlines", - "default" : false - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_Formatting_SpaceAfterNot", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacing", - "default" : 1 - }, { - "name" : "ignoreNewlines", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Formatting_SpaceBeforeCast", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Functions_FunctionCallArgumentSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Functions_OpeningFunctionBraceBsdAllman", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "checkFunctions", - "default" : true - }, { - "name" : "checkClosures", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Functions_OpeningFunctionBraceKernighanRitchie", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "checkFunctions", - "default" : true - }, { - "name" : "checkClosures", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Metrics_CyclomaticComplexity", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "complexity", - "default" : 10 - }, { - "name" : "absoluteComplexity", - "default" : 20 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Metrics_NestingLevel", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "nestingLevel", - "default" : 5 - }, { - "name" : "absoluteNestingLevel", - "default" : 10 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_NamingConventions_AbstractClassNamePrefix", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_NamingConventions_CamelCapsFunctionName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "strict", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_NamingConventions_ConstructorName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_NamingConventions_InterfaceNameSuffix", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_NamingConventions_TraitNameSuffix", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_NamingConventions_UpperCaseConstantName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_BacktickOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_CharacterBeforePHPOpeningTag", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_ClosingPHPTag", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_DeprecatedFunctions", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_PHP_DisallowAlternativePHPTags", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_DisallowRequestSuperglobal", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_DisallowShortOpenTag", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_DiscourageGoto", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_ForbiddenFunctions", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "error", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_LowerCaseConstant", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_LowerCaseKeyword", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_PHP_LowerCaseType", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_NoSilencedErrors", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "error", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_RequireStrictTypes", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_SAPIUsage", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_Syntax", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_PHP_UpperCaseConstant", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Strings_UnnecessaryHeredoc", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_Strings_UnnecessaryStringConcat", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "allowMultiline", - "default" : false - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_VersionControl_GitMergeConflict", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_VersionControl_SubversionProperties", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_WhiteSpace_ArbitraryParenthesesSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacing", - "default" : 0 - }, { - "name" : "ignoreNewlines", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_WhiteSpace_DisallowSpaceIndent", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_WhiteSpace_DisallowTabIndent", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_WhiteSpace_GotoTargetSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_WhiteSpace_HereNowdocIdentifierSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_WhiteSpace_IncrementDecrementSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Generic_WhiteSpace_LanguageConstructSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_WhiteSpace_ScopeIndent", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - }, { - "name" : "exact", - "default" : false - }, { - "name" : "tabIndent", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Generic_WhiteSpace_SpreadOperatorSpacingAfter", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacing", - "default" : 0 - }, { - "name" : "ignoreNewlines", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PEAR_Classes_ClassDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_Commenting_ClassComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PEAR_Commenting_FileComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PEAR_Commenting_FunctionComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "minimumVisibility", - "default" : "'private'" - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "PEAR_Commenting_InlineComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PEAR_ControlStructures_ControlSignature", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreComments", - "default" : true - } ], - "languages" : [ ], - "enabled" : true - }, { - "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" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PEAR_NamingConventions_ValidVariableName", - "level" : "Info", - "category" : "CodeStyle", - "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_Attributes_NewAttributes", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_ForbiddenClassNameUnderscore", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_ForbiddenExtendingFinalPHPClass", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewAbstractProperties", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewAnonymousClasses", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewClasses", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewConstVisibility", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewConstructorPropertyPromotion", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewFinalConstants", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewFinalProperties", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewLateStaticBinding", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewReadonlyClasses", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewReadonlyProperties", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewStaticAvizProperties", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewTypedConstants", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_NewTypedProperties", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_RemovedClasses", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Classes_RemovedOrphanedParent", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Constants_NewConstants", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Constants_NewConstantsInTraits", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Constants_NewMagicClassConstant", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Constants_RemovedConstants", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ControlStructures_DiscouragedSwitchContinue", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueOutsideLoop", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenBreakContinueVariableArguments", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ControlStructures_ForbiddenSwitchWithMultipleDefaultBlocks", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ControlStructures_NewExecutionDirectives", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ControlStructures_NewForeachExpressionReferencing", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ControlStructures_NewListInForeach", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ControlStructures_NewMultiCatch", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ControlStructures_NewNonCapturingCatch", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Extensions_RemovedExtensions", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_AbstractPrivateMethods", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenFinalPrivateMethods", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParameterShadowSuperGlobals", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenParametersWithSameName", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenToStringParameters", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_ForbiddenVariableNamesInClosureUse", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewClosure", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewExceptionsFromToString", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewNullableTypes", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewParamTypeDeclarations", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewReturnTypeDeclarations", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NewTrailingComma", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_NonStaticMagicMethods", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedCallingDestructAfterConstructorExit", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedImplicitlyNullableParam", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedOptionalBeforeRequiredParam", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionDeclarations_RemovedReturnByReferenceFromVoid", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_NewMagicMethods", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedMagicAutoload", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedNamespacedAssert", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_RemovedPHP4StyleConstructors", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionNameRestrictions_ReservedFunctionNames", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsReportCurrentValue", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionUse_ArgumentFunctionsUsage", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionUse_NewFunctionParameters", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionUse_NewFunctions", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionUse_NewNamedParameters", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionUse_OptionalToRequiredFunctionParameters", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctionParameters", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionUse_RemovedFunctions", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_FunctionUse_RequiredToOptionalFunctionParameters", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Generators_NewGeneratorReturn", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Generators_NewYieldFromComment", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_IniDirectives_NewIniDirectives", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_IniDirectives_RemovedIniDirectives", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingConst", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantArraysUsingDefine", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_InitialValue_NewConstantScalarExpressions", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_InitialValue_NewHeredoc", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_InitialValue_NewNewInDefine", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_InitialValue_NewNewInInitializers", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Interfaces_InternalInterfaces", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Interfaces_NewInterfaces", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Interfaces_NewPropertiesInInterfaces", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Interfaces_RemovedSerializable", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Keywords_CaseSensitiveKeywords", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenClassAlias", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Keywords_ForbiddenNames", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Keywords_NewKeywords", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_LanguageConstructs_NewEmptyNonVariable", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_LanguageConstructs_NewLanguageConstructs", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_LanguageConstructs_RemovedLanguageConstructs", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Lists_AssignmentOrder", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Lists_ForbiddenEmptyListAssignment", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Lists_NewKeyedList", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Lists_NewListReferenceAssignment", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Lists_NewShortList", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_MethodUse_ForbiddenToStringParameters", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_MethodUse_NewDirectCallsToClone", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Miscellaneous_NewPHPOpenTagEOF", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Miscellaneous_RemovedAlternativePHPTags", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Namespaces_ReservedNames", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Numbers_NewExplicitOctalNotation", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Numbers_NewNumericLiteralSeparator", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Numbers_RemovedHexadecimalNumericStrings", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Numbers_ValidIntegers", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Operators_ChangedConcatOperatorPrecedence", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Operators_ForbiddenNegativeBitshift", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Operators_NewOperators", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Operators_NewShortTernary", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Operators_RemovedTernaryAssociativity", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_ChangedIntToBoolParamType", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_ChangedObStartEraseFlags", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNoArgsOutsideOO", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenGetClassNull", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenSessionModuleNameUser", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_ForbiddenStripTagsSelfClosingXHTML", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewArrayMergeRecursiveWithGlobalsVar", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewArrayReduceInitialType", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewAssertCustomException", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewClassAliasInternalClass", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_NewExitAsFunctionCall", - "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_NewHTMLEntitiesFlagsDefault", - "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_NewNumberFormatMultibyteSeparators", - "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_RemovedAssertStringAssertion", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedDbaKeySplitNullFalse", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedGetClassNoArgs", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedGetDefinedFunctionsExcludeDisabledFalse", - "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_RemovedLdapConnectSignatures", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbCheckEncodingNoArgs", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedMbStrimWidthNegativeWidth", - "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_RemovedProprietaryCSVEscaping", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedSetlocaleString", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedSplAutoloadRegisterThrowFalse", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedTriggerErrorLevel", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedVersionCompareOperators", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_ParameterValues_RemovedXmlSetHandlerCallbackUnset", - "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_NewClassMemberAccessWithoutParentheses", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewDynamicAccessToStatic", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewDynamicClassConstantFetch", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewFirstClassCallables", - "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_NewInterpolatedStringDereferencing", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewMagicConstantDereferencing", - "level" : "Warning", - "category" : "Compatibility", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "PHPCompatibility_Syntax_NewNestedStaticAccess", - "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_TextStrings_RemovedDollarBraceStringEmbeds", - "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_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_RemovedIndirectModificationOfGlobals", - "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" : "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_ClassKeywordOrder", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "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" : "allowReadonly", - "default" : false - }, { - "name" : "allowNonPublicSet", - "default" : true - }, { - "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_ReadonlyClass", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - } ], - "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" : "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_Classes_RequireSelfReference", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Classes_RequireSingleLineMethodSignature", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxLineLength", - "default" : 120 - }, { - "name" : "includedMethodNormalizedPatterns", - "default" : null - }, { - "name" : "excludedMethodNormalizedPatterns", - "default" : null - } ], - "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_TraitUseOrder", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "caseSensitive", - "default" : false - } ], - "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" : [ { - "name" : "annotations", - "default" : null - } ], - "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_RequireOneDocComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "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_ThrowsAnnotationsOrder", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "caseSensitive", - "default" : false - } ], - "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 - }, { - "name" : "checkIfConditions", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_ControlStructures_RequireNullCoalesceOperator", - "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", - "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_CatchExceptionsOrder", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "caseSensitive", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Exceptions_DeadCatch", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Exceptions_DisallowNonCapturingCatch", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Exceptions_ReferenceThrowableOnly", - "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", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "lineLengthLimit", - "default" : 120 - }, { - "name" : "ignoreComments", - "default" : false - }, { - "name" : "ignoreImports", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Files_TypeNameMatchesFileName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_ArrowFunctionDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacesCountAfterKeyword", - "default" : 1 - }, { - "name" : "spacesCountBeforeArrow", - "default" : 1 - }, { - "name" : "spacesCountAfterArrow", - "default" : 1 - }, { - "name" : "allowMultiLine", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_DisallowArrowFunction", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_DisallowEmptyFunction", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_DisallowNamedArguments", - "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", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "onlySingleLine", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_FunctionLength", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxLinesLength", - "default" : 20 - }, { - "name" : "includeComments", - "default" : false - }, { - "name" : "includeWhitespace", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_NamedArgumentSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireArrowFunction", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "allowNested", - "default" : true - }, { - "name" : "enable", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireMultiLineCall", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "minLineLength", - "default" : null - }, { - "name" : "minParametersCount", - "default" : null - }, { - "name" : "excludedCallNormalizedPatterns", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireSingleLineCall", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxLineLength", - "default" : 120 - }, { - "name" : "ignoreWithComplexParameter", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireTrailingCommaInCall", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireTrailingCommaInClosureUse", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_RequireTrailingCommaInDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_StaticClosure", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_StrictCall", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_UnusedInheritedVariablePassedToClosure", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_UnusedParameter", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Functions_UselessParameterDefaultValue", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_AlphabeticallySortedUses", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "psr12Compatible", - "default" : true - }, { - "name" : "caseSensitive", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_DisallowGroupUse", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedClassNameInAnnotation", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedExceptions", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalConstants", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_FullyQualifiedGlobalFunctions", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "includeSpecialFunctions", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_MultipleUsesPerLine", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_NamespaceDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_NamespaceSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "linesCountBeforeNamespace", - "default" : 1 - }, { - "name" : "linesCountAfterNamespace", - "default" : 1 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_ReferenceUsedNamesOnly", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "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" : "SlevomatCodingStandard_Namespaces_RequireOneNamespaceInFile", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_UnusedUses", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "searchAnnotations", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_UseDoesNotStartWithBackslash", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_UseFromSameNamespace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Namespaces_UseOnlyWhitelistedNamespaces", - "level" : "Info", - "category" : "CodeStyle", - "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" : "SlevomatCodingStandard_Namespaces_UselessAlias", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Numbers_DisallowNumericLiteralSeparator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Numbers_RequireNumericLiteralSeparator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - }, { - "name" : "minDigitsBeforeDecimalPoint", - "default" : 4 - }, { - "name" : "minDigitsAfterDecimalPoint", - "default" : 4 - }, { - "name" : "ignoreOctalNumbers", - "default" : true - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Operators_DisallowEqualOperators", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Operators_DisallowIncrementAndDecrementOperators", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Operators_NegationOperatorSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacesCount", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Operators_RequireCombinedAssignmentOperator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Operators_RequireOnlyStandaloneIncrementAndDecrementOperators", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Operators_SpreadOperatorSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacesCountAfterOperator", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_DisallowDirectMagicInvokeCall", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_DisallowReference", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_ForbiddenClasses", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_OptimizedFunctionsWithoutUnpacking", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_ReferenceSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacesCountAfterReference", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_RequireExplicitAssertion", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enableIntegerRanges", - "default" : false - }, { - "name" : "enableAdvancedStringTypes", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_RequireNowdoc", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_ShortList", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_TypeCast", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_UselessParentheses", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreComplexTernaryConditions", - "default" : false - }, { - "name" : "enableCheckAroundNew", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_PHP_UselessSemicolon", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Strings_DisallowVariableParsing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "disallowDollarCurlySyntax", - "default" : true - }, { - "name" : "disallowCurlyDollarSyntax", - "default" : false - }, { - "name" : "disallowSimpleSyntax", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_ClassConstantTypeHint", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enableNativeTypeHint", - "default" : null - }, { - "name" : "fixableNativeTypeHint", - "default" : "self::YES" - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_DNFTypeHintFormat", - "level" : "Info", - "category" : "CodeStyle", - "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" : "SlevomatCodingStandard_TypeHints_DeclareStrictTypes", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "declareOnFirstLine", - "default" : false - }, { - "name" : "linesCountBeforeDeclare", - "default" : 1 - }, { - "name" : "linesCountAfterDeclare", - "default" : 1 - }, { - "name" : "spacesCountAroundEqualsSign", - "default" : 1 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_DisallowArrayTypeHintSyntax", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_DisallowMixedTypeHint", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_LongTypeHints", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_NullTypeHintOnLastPosition", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_NullableTypeForNullDefaultValue", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_ParameterTypeHint", - "level" : "Info", - "category" : "CodeStyle", - "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" : "SlevomatCodingStandard_TypeHints_ParameterTypeHintSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_PropertyTypeHint", - "level" : "Info", - "category" : "CodeStyle", - "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" : "SlevomatCodingStandard_TypeHints_ReturnTypeHint", - "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 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_ReturnTypeHintSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacesCountBeforeColon", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_UnionTypeHintFormat", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "enable", - "default" : null - }, { - "name" : "withSpaces", - "default" : null - }, { - "name" : "shortNullable", - "default" : null - }, { - "name" : "nullPosition", - "default" : null - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_TypeHints_UselessConstantTypeHint", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Variables_DisallowSuperGlobalVariable", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Variables_DisallowVariableVariable", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Variables_DuplicateAssignmentToVariable", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Variables_UnusedVariable", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Variables_UselessVariable", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "SlevomatCodingStandard_Whitespaces_DuplicateSpaces", - "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 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Arrays_ArrayBracketSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Arrays_ArrayDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Classes_ClassDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Classes_ClassFileName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Classes_LowercaseClassKeywords", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Classes_SelfMemberReference", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Classes_ValidClassName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Commenting_BlockComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Commenting_ClassComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Commenting_ClosingDeclarationComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Commenting_DocCommentAlignment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Commenting_EmptyCatchComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Commenting_FileComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Commenting_FunctionComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "skipIfInheritdoc", - "default" : false - } ], - "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", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "lineLimit", - "default" : 20 - }, { - "name" : "commentFormat", - "default" : "'//end %s'" - } ], - "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 - }, { - "patternId" : "Squiz_ControlStructures_ControlSignature", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "requiredSpacesBeforeColon", - "default" : 1 - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_ControlStructures_ElseIfDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_ControlStructures_ForEachLoopDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "requiredSpacesAfterOpen", - "default" : 0 - }, { - "name" : "requiredSpacesBeforeClose", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_ControlStructures_ForLoopDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "requiredSpacesAfterOpen", - "default" : 0 - }, { - "name" : "requiredSpacesBeforeClose", - "default" : 0 - }, { - "name" : "ignoreNewlines", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_ControlStructures_InlineIfDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_ControlStructures_LowercaseDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_ControlStructures_SwitchDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "indent", - "default" : 4 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Files_FileExtension", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Formatting_OperatorBracket", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Functions_FunctionDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Functions_FunctionDeclarationArgumentSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "equalsSpacing", - "default" : 0 - }, { - "name" : "requiredSpacesAfterOpen", - "default" : 0 - }, { - "name" : "requiredSpacesBeforeClose", - "default" : 0 - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Functions_FunctionDuplicateArgument", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Functions_GlobalFunction", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Functions_LowercaseFunctionKeywords", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Functions_MultiLineFunctionDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_NamingConventions_ValidFunctionName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_NamingConventions_ValidVariableName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Objects_ObjectInstantiation", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Operators_ComparisonOperatorUsage", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Operators_IncrementDecrementUsage", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Operators_ValidLogicalOperators", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_CommentedOutCode", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "maxPercentage", - "default" : 35 - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_DisallowBooleanStatement", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_DisallowComparisonAssignment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_DisallowInlineIf", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_PHP_DisallowMultipleAssignments", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_DisallowSizeFunctionsInLoops", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_DiscouragedFunctions", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "error", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_EmbeddedPhp", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_Eval", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_GlobalKeyword", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_Heredoc", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_InnerFunctions", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_LowercasePHPFunctions", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_PHP_NonExecutableCode", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Scope_MemberVarScope", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Scope_MethodScope", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_Scope_StaticThisUsage", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_Strings_ConcatenationSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacing", - "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", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_WhiteSpace_CastSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_WhiteSpace_ControlStructureSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_WhiteSpace_FunctionClosingBraceSpace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_WhiteSpace_FunctionOpeningBraceSpace", - "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_LogicalOperatorSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_WhiteSpace_MemberVarSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "spacing", - "default" : 1 - }, { - "name" : "spacingBeforeFirst", - "default" : 1 - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_WhiteSpace_ObjectOperatorSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreNewlines", - "default" : false - } ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_WhiteSpace_OperatorSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreNewlines", - "default" : false - }, { - "name" : "ignoreSpacingBeforeAssignments", - "default" : true - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Squiz_WhiteSpace_ScopeClosingBrace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_WhiteSpace_ScopeKeywordSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_WhiteSpace_SemicolonSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Squiz_WhiteSpace_SuperfluousWhitespace", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ { - "name" : "ignoreBlankLines", - "default" : false - } ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Symfony_Arrays_MultiLineArrayComma", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Classes_MultipleClassesOneFile", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Classes_PropertyDeclaration", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Commenting_Annotations", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Commenting_ClassComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Commenting_FunctionComment", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Commenting_License", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Commenting_TypeHinting", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_ControlStructure_IdenticalComparison", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_ControlStructure_UnaryOperators", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_ControlStructure_YodaConditions", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Errors_ExceptionMessage", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Errors_UserDeprecated", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Files_AlphanumericFilename", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Formatting_BlankLineBeforeReturn", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Formatting_ReturnOrThrow", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Functions_Arguments", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Functions_ReturnType", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Functions_ScopeOrder", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_NamingConventions_ValidClassName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Objects_ObjectInstantiation", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Whitespace_AssignmentSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Whitespace_BinaryOperatorSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Whitespace_CommaSpacing", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Symfony_Whitespace_DiscourageFitzinator", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - }, { - "patternId" : "Zend_Files_ClosingTag", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : true - }, { - "patternId" : "Zend_NamingConventions_ValidVariableName", - "level" : "Info", - "category" : "CodeStyle", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false - } ] -} \ No newline at end of file