-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from BrandEmbassy/upgrade_libraries
Upgrade libraries, normalize code style and PHP stan
- Loading branch information
Showing
29 changed files
with
331 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
composer.lock | ||
vendor | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,6 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="BrandEmbassyCodingStandard"> | ||
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml"> | ||
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/> | ||
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/> | ||
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/> | ||
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions"/> | ||
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/> | ||
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/> | ||
<exclude name="SlevomatCodingStandard.ControlStructures.RequireYodaComparison"/> | ||
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/> | ||
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversablePropertyTypeHintSpecification"/> | ||
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/> | ||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming"/> | ||
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment"/> | ||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming"/> | ||
<exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit"/> | ||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/> | ||
<exclude name="SlevomatCodingStandard.Functions.UnusedParameter"/> | ||
<exclude name="SlevomatCodingStandard.ControlStructures.NewWithoutParentheses"/> | ||
|
||
<rule ref="vendor/brandembassy/coding-standard/src/BrandEmbassyCodingStandard/ruleset.xml"> | ||
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint"/> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"> | ||
<properties> | ||
<property name="searchAnnotations" type="bool" value="true"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/> | ||
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/> | ||
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/> | ||
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/> | ||
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/> | ||
<rule ref="Generic.Commenting.Todo"/> | ||
<rule ref="Generic.Files.ByteOrderMark"/> | ||
<rule ref="Generic.Files.EndFileNewline"/> | ||
<rule ref="Generic.Files.LineLength"> | ||
<properties> | ||
<property name="lineLimit" value="120"/> | ||
<property name="absoluteLineLimit" value="120"/> | ||
</properties> | ||
</rule> | ||
<rule ref="Generic.PHP.CharacterBeforePHPOpeningTag"/> | ||
<rule ref="Generic.PHP.DeprecatedFunctions"/> | ||
<rule ref="Generic.PHP.ForbiddenFunctions"/> | ||
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/> | ||
<rule ref="PSR2.Files.ClosingTag"/> | ||
<rule ref="PSR2.Methods.MethodDeclaration"/> | ||
<rule ref="PSR2.Namespaces.NamespaceDeclaration"/> | ||
<rule ref="Squiz.PHP.GlobalKeyword"/> | ||
<rule ref="Squiz.PHP.InnerFunctions"/> | ||
<rule ref="Squiz.PHP.LowercasePHPFunctions"/> | ||
<rule ref="Squiz.WhiteSpace.CastSpacing"/> | ||
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/> | ||
<rule ref="Squiz.WhiteSpace.MemberVarSpacing"/> | ||
<rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing"> | ||
<properties> | ||
<property name="ignoreNewlines" value="true"/> | ||
</properties> | ||
</rule> | ||
<rule ref="Squiz.WhiteSpace.OperatorSpacing"> | ||
<properties> | ||
<property name="ignoreNewlines" value="true"/> | ||
</properties> | ||
</rule> | ||
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/> | ||
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"> | ||
<properties> | ||
<property name="spacesCountBeforeColon" value="0"/> | ||
</properties> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration"> | ||
<properties> | ||
<property name="usefulAnnotations" type="array" value="@dataProvider,@internal"/> | ||
</properties> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.Commenting.DisallowOneLinePropertyDocComment"/> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,4 @@ | |
|
||
final class MissingApiArgumentException extends Exception implements RequestException | ||
{ | ||
|
||
} |
Oops, something went wrong.