From 319cd531d6c90b99d256218f12555d6c44f8341a Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 14 Jul 2020 21:46:40 +0300 Subject: [PATCH] refactor(core): code standard fixes #436 --- src/flextype/Foundation/Serializers/Frontmatter.php | 2 +- src/flextype/Foundation/Serializers/Json.php | 4 ++-- src/flextype/Foundation/Serializers/Serializer.php | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/flextype/Foundation/Serializers/Frontmatter.php b/src/flextype/Foundation/Serializers/Frontmatter.php index 242f8c22..a6883d67 100644 --- a/src/flextype/Foundation/Serializers/Frontmatter.php +++ b/src/flextype/Foundation/Serializers/Frontmatter.php @@ -10,13 +10,13 @@ declare(strict_types=1); namespace Flextype; use Flextype\Component\Arr\Arr; -use const PHP_EOL; use function array_slice; use function count; use function implode; use function ltrim; use function preg_split; use function trim; +use const PHP_EOL; class Frontmatter { diff --git a/src/flextype/Foundation/Serializers/Json.php b/src/flextype/Foundation/Serializers/Json.php index 71c80171..03b5a5ae 100644 --- a/src/flextype/Foundation/Serializers/Json.php +++ b/src/flextype/Foundation/Serializers/Json.php @@ -10,11 +10,11 @@ declare(strict_types=1); namespace Flextype; use RuntimeException; +use function json_decode; +use function json_encode; use const JSON_PRETTY_PRINT; use const JSON_UNESCAPED_SLASHES; use const JSON_UNESCAPED_UNICODE; -use function json_decode; -use function json_encode; class Json { diff --git a/src/flextype/Foundation/Serializers/Serializer.php b/src/flextype/Foundation/Serializers/Serializer.php index fbf71ef0..8808af50 100644 --- a/src/flextype/Foundation/Serializers/Serializer.php +++ b/src/flextype/Foundation/Serializers/Serializer.php @@ -27,10 +27,12 @@ class Serializer 'frontmatter' => [ 'name' => 'frontmatter', 'ext' => 'md', - ], 'json' => [ + ], + 'json' => [ 'name' => 'json', 'ext' => 'json', - ], 'yaml' => [ + ], + 'yaml' => [ 'name' => 'yaml', 'ext' => 'yaml', ],