Passed
Push — main ( 3467e3...5d2c2f )
by Michael
02:37
created
src/Helpers/helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/FormatterServiceProvider.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,11 +99,11 @@
 block discarded – undo
99 99
     {
100 100
         $path = str_contains($file->getPathName(), $app_folder)
101 101
             ? Str::ucfirst(str_replace(DIRECTORY_SEPARATOR, self::CLASS_SEPARATOR, $app_folder))
102
-              . self::CLASS_SEPARATOR
102
+                . self::CLASS_SEPARATOR
103 103
             : (new \ReflectionClass(static::class))->getNamespaceName()
104
-              . self::CLASS_SEPARATOR
105
-              . self::PACKAGE_FOLDER
106
-              . self::CLASS_SEPARATOR;
104
+                . self::CLASS_SEPARATOR
105
+                . self::PACKAGE_FOLDER
106
+                . self::CLASS_SEPARATOR;
107 107
 
108 108
         return sprintf(
109 109
             '%s%s',
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.