@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | use MichaelRubel\Formatters\Formatter; |
8 | 8 | use MichaelRubel\Formatters\FormatterServiceProvider; |
9 | 9 | |
10 | -if (! function_exists('format')) { |
|
10 | +if (!function_exists('format')) { |
|
11 | 11 | /** |
12 | 12 | * @param string $formatter |
13 | 13 | * @param string|array $items |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | ? app($formatter) |
22 | 22 | : app($formatter . FormatterServiceProvider::BINDING_POSTFIX); |
23 | 23 | |
24 | - if (! $formatter instanceof Formatter) { |
|
24 | + if (!$formatter instanceof Formatter) { |
|
25 | 25 | if (config('formatters.bindings_case') === 'camel') { |
26 | 26 | throw new ShouldNotUseCamelCaseException(); |
27 | 27 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | $packageFormatters |
64 | 64 | ->merge($appFormatters) |
65 | - ->each(function ($file) use ($app_folder, $bindings_case) { |
|
65 | + ->each(function($file) use ($app_folder, $bindings_case) { |
|
66 | 66 | $filename = $file->getFilenameWithoutExtension(); |
67 | 67 | $name = $this->getFormatterName($bindings_case, $filename); |
68 | 68 | $class = $this->getFormatterClass($file, $filename, $app_folder); |
@@ -100,11 +100,11 @@ |
||
100 | 100 | { |
101 | 101 | $path = str_contains($file->getPathName(), $app_folder) |
102 | 102 | ? Str::ucfirst(str_replace(DIRECTORY_SEPARATOR, self::CLASS_SEPARATOR, $app_folder)) |
103 | - . self::CLASS_SEPARATOR |
|
103 | + . self::CLASS_SEPARATOR |
|
104 | 104 | : (new \ReflectionClass(static::class))->getNamespaceName() |
105 | - . self::CLASS_SEPARATOR |
|
106 | - . self::PACKAGE_FOLDER |
|
107 | - . self::CLASS_SEPARATOR; |
|
105 | + . self::CLASS_SEPARATOR |
|
106 | + . self::PACKAGE_FOLDER |
|
107 | + . self::CLASS_SEPARATOR; |
|
108 | 108 | |
109 | 109 | return sprintf('%s%s', $path, $filename); |
110 | 110 | } |