OXDEV-3559 update to latest coding guides

This commit is contained in:
Florian Engelhardt 2020-07-03 14:35:08 +02:00
parent 52badb8ac8
commit 1588b5bc61
No known key found for this signature in database
GPG Key ID: 39B8DAD75A95B500
6 changed files with 6 additions and 17 deletions

View File

@ -3,12 +3,12 @@
declare(strict_types=1); declare(strict_types=1);
$header = <<<'EOF' $header = <<<'EOF'
All rights reserved. Copyright © OXID eSales AG. All rights reserved.
See LICENSE file for license details. See LICENSE file for license details.
EOF; EOF;
$finder = PhpCsFixer\Finder::create() $finder = PhpCsFixer\Finder::create()
->files() ->exclude('Codeception/_support/_generated/')
->in(__DIR__ . '/src') ->in(__DIR__ . '/src')
->in(__DIR__ . '/tests/'); ->in(__DIR__ . '/tests/');
@ -23,6 +23,7 @@ return PhpCsFixer\Config::create()
'space' => 'none' 'space' => 'none'
], ],
'function_typehint_space' => true, 'function_typehint_space' => true,
'final_class' => true,
'method_argument_space' => [ 'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline', 'on_multiline' => 'ensure_fully_multiline',
], ],

View File

@ -25,6 +25,5 @@ script:
- cd graphql-module - cd graphql-module
- composer test:syntax - composer test:syntax
- composer test:lint - composer test:lint
- composer test:lint-fixer
- composer test:static - composer test:static
- composer test:unit - composer test:unit

View File

@ -24,6 +24,5 @@ before_script:
script: script:
- composer test:syntax - composer test:syntax
- composer test:lint - composer test:lint
- composer test:lint-fixer
- composer test:static - composer test:static
- composer test:unit - composer test:unit

View File

@ -5,7 +5,7 @@
"source": { "source": {
"url": "./", "url": "./",
"type": "git", "type": "git",
"reference": "master" "reference": "master-prepare-webinar-OXDEV-3559"
} }
} }
} }

View File

@ -1,10 +0,0 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
<file>src/</file>
<file>tests/</file>
<arg name="colors"/>
<arg name="parallel" value="75"/>
<arg name="extensions" value="php"/>
<arg value="np"/>
<rule ref="PSR12" />
</ruleset>

View File

@ -1,6 +1,6 @@
parameters: parameters:
checkMissingIterableValueType: false
level: max level: max
inferPrivatePropertyTypeFromConstructor: true scanFiles:
autoload_files:
- vendor/oxid-esales/oxideshop-ce/source/oxfunctions.php - vendor/oxid-esales/oxideshop-ce/source/oxfunctions.php
- vendor/oxid-esales/oxideshop-ce/source/overridablefunctions.php - vendor/oxid-esales/oxideshop-ce/source/overridablefunctions.php