Completed
Push — master ( 81f5ae...3b7c6d )
by Nicolas
04:14
created
src/Repository.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         if ($this->config('scan.enabled')) {
106 106
             $paths = array_merge($paths, $this->config('scan.paths'));
107 107
         }
108
-        $paths = array_map(function ($path) {
108
+        $paths = array_map(function($path) {
109 109
             return str_finish($path, '/*');
110 110
         }, $paths);
111 111
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function getCached()
151 151
     {
152
-        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () {
152
+        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() {
153 153
             return $this->toCollection()->toArray();
154 154
         });
155 155
     }
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     {
238 238
         $modules = $this->enabled();
239 239
 
240
-        uasort($modules, function (Module $a, Module $b) use ($direction) {
240
+        uasort($modules, function(Module $a, Module $b) use ($direction) {
241 241
             if ($a->order == $b->order) {
242 242
                 return 0;
243 243
             }
@@ -387,9 +387,9 @@  discard block
 block discarded – undo
387 387
     public function getModulePath($module)
388 388
     {
389 389
         try {
390
-            return $this->findOrFail($module)->getPath() . '/';
390
+            return $this->findOrFail($module)->getPath().'/';
391 391
         } catch (ModuleNotFoundException $e) {
392
-            return $this->getPath() . '/' . Str::studly($module) . '/';
392
+            return $this->getPath().'/'.Str::studly($module).'/';
393 393
         }
394 394
     }
395 395
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
      */
403 403
     public function assetPath($module) : string
404 404
     {
405
-        return $this->config('paths.assets') . '/' . $module;
405
+        return $this->config('paths.assets').'/'.$module;
406 406
     }
407 407
 
408 408
     /**
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
      */
416 416
     public function config($key, $default = null)
417 417
     {
418
-        return $this->app['config']->get('modules.' . $key, $default);
418
+        return $this->app['config']->get('modules.'.$key, $default);
419 419
     }
420 420
 
421 421
     /**
@@ -516,9 +516,9 @@  discard block
 block discarded – undo
516 516
         }
517 517
         list($name, $url) = explode(':', $asset);
518 518
 
519
-        $baseUrl = str_replace(public_path() . DIRECTORY_SEPARATOR, '', $this->getAssetsPath());
519
+        $baseUrl = str_replace(public_path().DIRECTORY_SEPARATOR, '', $this->getAssetsPath());
520 520
 
521
-        $url = $this->app['url']->asset($baseUrl . "/{$name}/" . $url);
521
+        $url = $this->app['url']->asset($baseUrl."/{$name}/".$url);
522 522
 
523 523
         return str_replace(['http://', 'https://'], '//', $url);
524 524
     }
Please login to merge, or discard this patch.