Completed
Pull Request — master (#119)
by Micheal
05:24
created
src/Repository.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $paths = $this->paths;
97 97
 
98
-        $paths[] = $this->getPath() . '/*';
98
+        $paths[] = $this->getPath().'/*';
99 99
 
100 100
         if ($this->config('scan.enabled')) {
101 101
             $paths = array_merge($paths, $this->config('scan.paths'));
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         $modules = [];
157 157
 
158 158
         foreach ($cached as $name => $module) {
159
-            $path = $this->config('paths.modules') . '/' . $name;
159
+            $path = $this->config('paths.modules').'/'.$name;
160 160
 
161 161
             $modules[$name] = new Module($this->app, $name, $path);
162 162
         }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     public function getCached()
173 173
     {
174
-        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () {
174
+        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() {
175 175
             return $this->toCollection()->toArray();
176 176
         });
177 177
     }
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     {
260 260
         $modules = $this->enabled();
261 261
 
262
-        uasort($modules, function (Module $a, Module $b) use ($direction) {
262
+        uasort($modules, function(Module $a, Module $b) use ($direction) {
263 263
             if ($a->order == $b->order) {
264 264
                 return 0;
265 265
             }
@@ -370,9 +370,9 @@  discard block
 block discarded – undo
370 370
     public function getModulePath($module)
371 371
     {
372 372
         try {
373
-            return $this->findOrFail($module)->getPath() . '/';
373
+            return $this->findOrFail($module)->getPath().'/';
374 374
         } catch (ModuleNotFoundException $e) {
375
-            return $this->getPath() . '/' . Str::studly($module) . '/';
375
+            return $this->getPath().'/'.Str::studly($module).'/';
376 376
         }
377 377
     }
378 378
 
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
      */
386 386
     public function assetPath($module)
387 387
     {
388
-        return $this->config('paths.assets') . '/' . $module;
388
+        return $this->config('paths.assets').'/'.$module;
389 389
     }
390 390
 
391 391
     /**
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
      */
399 399
     public function config($key, $default = null)
400 400
     {
401
-        return $this->app['config']->get('modules.' . $key, $default);
401
+        return $this->app['config']->get('modules.'.$key, $default);
402 402
     }
403 403
 
404 404
     /**
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
             $this->app['files']->makeDirectory($path, 0777, true);
413 413
         }
414 414
 
415
-        return $path . '/modules.used';
415
+        return $path.'/modules.used';
416 416
     }
417 417
 
418 418
     /**
@@ -480,9 +480,9 @@  discard block
 block discarded – undo
480 480
     {
481 481
         list($name, $url) = explode(':', $asset);
482 482
 
483
-        $baseUrl = str_replace(public_path() . DIRECTORY_SEPARATOR, '', $this->getAssetsPath());
483
+        $baseUrl = str_replace(public_path().DIRECTORY_SEPARATOR, '', $this->getAssetsPath());
484 484
 
485
-        $url = $this->app['url']->asset($baseUrl . "/{$name}/" . $url);
485
+        $url = $this->app['url']->asset($baseUrl."/{$name}/".$url);
486 486
 
487 487
         return str_replace(['http://', 'https://'], '//', $url);
488 488
     }
Please login to merge, or discard this patch.