From 789874168d58546b86a52bf5b206c1ccbbb4628e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 13 Nov 2019 10:40:28 +0100 Subject: [PATCH 1/3] Enhancement: Enable no_alias_functions fixer --- .php_cs.dist | 1 + 1 file changed, 1 insertion(+) diff --git a/.php_cs.dist b/.php_cs.dist index 5a7a578e..aef5bf0b 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -14,6 +14,7 @@ $config 'array_syntax' => array('syntax' => 'long'), 'binary_operator_spaces' => false, 'concat_space' => array('spacing' => 'one'), + 'no_alias_functions' => true, 'no_useless_else' => true, 'no_useless_return' => true, 'ordered_imports' => true, From 914b4cc817fab80502e78fe86868af4624b09db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 13 Nov 2019 10:41:28 +0100 Subject: [PATCH 2/3] Enhancement: Allow risky fixers --- .php_cs.dist | 1 + 1 file changed, 1 insertion(+) diff --git a/.php_cs.dist b/.php_cs.dist index aef5bf0b..aca14f10 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -29,6 +29,7 @@ $config 'phpdoc_types_order' => array('null_adjustment' => 'none', 'sort_algorithm' => 'none'), )) ->setFinder($finder) + ->setRiskyAllowed(true) ; return $config; From 011bf7bf13d1ea2b62fb5210892e86b4c606d04f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 13 Nov 2019 10:41:55 +0100 Subject: [PATCH 3/3] Fix: Run 'composer style-fix' --- src/JsonSchema/Constraints/TypeConstraint.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/JsonSchema/Constraints/TypeConstraint.php b/src/JsonSchema/Constraints/TypeConstraint.php index ff4eba71..b4eb8090 100644 --- a/src/JsonSchema/Constraints/TypeConstraint.php +++ b/src/JsonSchema/Constraints/TypeConstraint.php @@ -134,10 +134,10 @@ protected function implodeWith(array $elements, $delimiter = ', ', $listEnd = fa return implode($delimiter, $elements); } $lastElement = array_slice($elements, -1); - $firsElements = join($delimiter, array_slice($elements, 0, -1)); + $firsElements = implode($delimiter, array_slice($elements, 0, -1)); $implodedElements = array_merge(array($firsElements), $lastElement); - return join(" $listEnd ", $implodedElements); + return implode(" $listEnd ", $implodedElements); } /**