Completed
Pull Request — master (#1150)
by
unknown
01:58
created
src/Livewire/LivewireServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     protected function loadComponents()
32 32
     {
33
-        if (! class_exists('Livewire')) return false;
33
+        if (!class_exists('Livewire')) return false;
34 34
 
35 35
         $modules = \Module::toCollection();
36 36
 
@@ -38,21 +38,21 @@  discard block
 block discarded – undo
38 38
         
39 39
         $filesystem = new Filesystem();
40 40
 
41
-        $modules->map(function ($module) use ($filesystem, $defaultNamespace) {
41
+        $modules->map(function($module) use ($filesystem, $defaultNamespace) {
42 42
             $modulePath = $module->getPath();
43 43
 
44
-            $path = $modulePath. '/'. strtr($defaultNamespace, ['\\' => '/']);
44
+            $path = $modulePath.'/'.strtr($defaultNamespace, ['\\' => '/']);
45 45
 
46
-            $files = collect( $filesystem->isDirectory($path) ? $filesystem->allFiles($path) : [] );
46
+            $files = collect($filesystem->isDirectory($path) ? $filesystem->allFiles($path) : []);
47 47
 
48
-            $files->map(function ($file) use ($module, $path, $defaultNamespace) {
48
+            $files->map(function($file) use ($module, $path, $defaultNamespace) {
49 49
                 $componentPath = \Str::after($file->getPathname(), $path.'/');
50 50
 
51
-                $componentClassPath = strtr( $componentPath , ['/' => '\\', '.php' => '']);
51
+                $componentClassPath = strtr($componentPath, ['/' => '\\', '.php' => '']);
52 52
         
53 53
                 $componentName = $this->getComponentName($componentClassPath, $module);
54 54
 
55
-                $componentClassStr = '\\' . config('modules.namespace') . '\\' . $module->getName() . '\\' . $defaultNamespace . '\\' . $componentClassPath;
55
+                $componentClassStr = '\\'.config('modules.namespace').'\\'.$module->getName().'\\'.$defaultNamespace.'\\'.$componentClassPath;
56 56
 
57 57
                 $componentClass = get_class(new $componentClassStr);
58 58
 
@@ -71,6 +71,6 @@  discard block
 block discarded – undo
71 71
 
72 72
         $moduleNamePrefix = ($module) ? $module->getLowerName().'::' : null;
73 73
 
74
-       return $moduleNamePrefix . $componentName;
74
+       return $moduleNamePrefix.$componentName;
75 75
     }
76 76
 }
77 77
\ No newline at end of file
Please login to merge, or discard this patch.
src/Commands/LivewireCommand.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function handle()
38 38
     {
39
-        if (! class_exists('Livewire')) {
39
+        if (!class_exists('Livewire')) {
40 40
             $this->line("\n<options=bold,reverse;fg=red> WHOOPS! </> 
Please login to merge, or discard this patch.