diff --git a/examples/custom_provider.php b/examples/custom_provider.php index 56be8dacb..773f93cc3 100644 --- a/examples/custom_provider.php +++ b/examples/custom_provider.php @@ -9,7 +9,7 @@ require 'vendor/autoload.php'; /** Provider for all observed holidays by the NYSE (New York Stock Exchange) */ -class NYSE extends \Yasumi\Provider\USA +class NYSE extends Yasumi\Provider\USA { /** * Initialize holidays for the NYSE. diff --git a/phpinsights.php b/phpinsights.php index 7ee615fda..4b5520d8b 100644 --- a/phpinsights.php +++ b/phpinsights.php @@ -60,19 +60,19 @@ ], 'remove' => [ - \PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff::class, - \SlevomatCodingStandard\Sniffs\ControlStructures\DisallowShortTernaryOperatorSniff::class, - \SlevomatCodingStandard\Sniffs\ControlStructures\DisallowYodaComparisonSniff::class, - \SlevomatCodingStandard\Sniffs\Commenting\DocCommentSpacingSniff::class, + PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff::class, + SlevomatCodingStandard\Sniffs\ControlStructures\DisallowShortTernaryOperatorSniff::class, + SlevomatCodingStandard\Sniffs\ControlStructures\DisallowYodaComparisonSniff::class, + SlevomatCodingStandard\Sniffs\Commenting\DocCommentSpacingSniff::class, // Remove checks for superfluous naming as we follow PER which supports such convention - \SlevomatCodingStandard\Sniffs\Classes\SuperfluousInterfaceNamingSniff::class, - \SlevomatCodingStandard\Sniffs\Classes\SuperfluousAbstractClassNamingSniff::class, - \SlevomatCodingStandard\Sniffs\Classes\SuperfluousExceptionNamingSniff::class, + SlevomatCodingStandard\Sniffs\Classes\SuperfluousInterfaceNamingSniff::class, + SlevomatCodingStandard\Sniffs\Classes\SuperfluousAbstractClassNamingSniff::class, + SlevomatCodingStandard\Sniffs\Classes\SuperfluousExceptionNamingSniff::class, ], 'config' => [ - \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff::class => [ + PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff::class => [ 'lineLimit' => 120, 'absoluteLineLimit' => 140, 'ignoreComments' => false,