@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | use MichaelRubel\Formatters\Formatter; |
7 | 7 | use MichaelRubel\Formatters\FormatterServiceProvider; |
8 | 8 | |
9 | -if (! function_exists('format')) { |
|
9 | +if (!function_exists('format')) { |
|
10 | 10 | /** |
11 | 11 | * @param string $formatter |
12 | 12 | * @param string|array $items |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | ? app($formatter) |
21 | 21 | : app($formatter . FormatterServiceProvider::FORMATTER_POSTFIX); |
22 | 22 | |
23 | - if (! $formatter instanceof Formatter) { |
|
23 | + if (!$formatter instanceof Formatter) { |
|
24 | 24 | throw new ShouldImplementInterfaceException(); |
25 | 25 | } |
26 | 26 |
@@ -87,11 +87,11 @@ |
||
87 | 87 | // @codeCoverageIgnoreStart |
88 | 88 | $path = str_contains($file->getPathName(), $app_folder) |
89 | 89 | ? Str::ucfirst(str_replace(DIRECTORY_SEPARATOR, self::CLASS_SEPARATOR, $app_folder)) |
90 | - . self::CLASS_SEPARATOR |
|
90 | + . self::CLASS_SEPARATOR |
|
91 | 91 | : (new \ReflectionClass(static::class))->getNamespaceName() |
92 | - . self::CLASS_SEPARATOR |
|
93 | - . self::PACKAGE_FOLDER |
|
94 | - . self::CLASS_SEPARATOR; |
|
92 | + . self::CLASS_SEPARATOR |
|
93 | + . self::PACKAGE_FOLDER |
|
94 | + . self::CLASS_SEPARATOR; |
|
95 | 95 | // @codeCoverageIgnoreEnd |
96 | 96 | |
97 | 97 | return sprintf( |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | $packageFormatters |
59 | 59 | ->merge($appFormatters) |
60 | - ->each(function ($file) use ($app_folder) { |
|
60 | + ->each(function($file) use ($app_folder) { |
|
61 | 61 | $filename = $file->getFilenameWithoutExtension(); |
62 | 62 | |
63 | 63 | $class = $this->getFormatterClass( |