Passed
Push — master ( 1a794a...b16b69 )
by Andrey
33:55 queued 16:44
created
src/Support/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $item = Arr::first($this->items);
58 58
         $keys = Arr::keys($item);
59 59
 
60
-        return Arr::transform($keys, function ($value) {
60
+        return Arr::transform($keys, function($value) {
61 61
             return Str::title($value);
62 62
         });
63 63
     }
Please login to merge, or discard this patch.
src/Support/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,14 +71,14 @@
 block discarded – undo
71 71
 
72 72
     public function directoryExist(string $path, string $locale): void
73 73
     {
74
-        if (! $path || ! $this->exists($path)) {
74
+        if ( ! $path || ! $this->exists($path)) {
75 75
             throw new SourceLocaleDirectoryDoesntExist($locale);
76 76
         }
77 77
     }
78 78
 
79 79
     public function fileExist(string $path, string $locale): void
80 80
     {
81
-        if (! $path || ! $this->exists($path)) {
81
+        if ( ! $path || ! $this->exists($path)) {
82 82
             throw new SourceLocaleFileDoesntExist($locale);
83 83
         }
84 84
     }
Please login to merge, or discard this patch.
src/Traits/Containable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     protected function container(string $class, array $parameters = [])
12 12
     {
13
-        if (! isset(static::$containers[$class])) {
13
+        if ( ! isset(static::$containers[$class])) {
14 14
             static::$containers[$class] = Container::getInstance()->make($class, $parameters);
15 15
         }
16 16
 
Please login to merge, or discard this patch.
src/Services/Processors/PublishJson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $key  = File::name($filename);
26 26
         $keys = Config::getExclude($key, [], true);
27 27
 
28
-        return array_filter($array, static function ($value) use ($keys) {
28
+        return array_filter($array, static function($value) use ($keys) {
29 29
             return in_array($value, $keys);
30 30
         }, ARRAY_FILTER_USE_KEY);
31 31
     }
Please login to merge, or discard this patch.
src/Services/Processors/ResetJson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $key  = File::name($filename);
26 26
         $keys = Config::getExclude($key, [], true);
27 27
 
28
-        return array_filter($array, static function ($value) use ($keys) {
28
+        return array_filter($array, static function($value) use ($keys) {
29 29
             return in_array($value, $keys);
30 30
         }, ARRAY_FILTER_USE_KEY);
31 31
     }
Please login to merge, or discard this patch.
src/Support/Locale.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $locales   = $this->get($this->getInstalledDirectories($is_json));
33 33
         $available = $this->available($is_json);
34 34
 
35
-        return array_values(array_filter($locales, function ($locale) use ($available) {
35
+        return array_values(array_filter($locales, function($locale) use ($available) {
36 36
             return in_array($locale, $available);
37 37
         }));
38 38
     }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
     protected function normalizeNames(array $directories): array
137 137
     {
138
-        return array_map(function ($dir) {
138
+        return array_map(function($dir) {
139 139
             return File::name($dir);
140 140
         }, $directories);
141 141
     }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $unique = ArrFacade::unique($locales);
151 151
         $ignore = Config::getIgnore();
152 152
 
153
-        return array_values(array_filter($unique, static function ($locale) use ($ignore) {
153
+        return array_values(array_filter($unique, static function($locale) use ($ignore) {
154 154
             return ! in_array($locale, $ignore);
155 155
         }));
156 156
     }
Please login to merge, or discard this patch.