Completed
Push — master ( 6bbf1f...ec170d )
by András
11s
created
database/migrations/2017_09_28_132800_create_modules_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('modules', function (Blueprint $table) {
16
+        Schema::create('modules', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->timestamps();
19 19
 
Please login to merge, or discard this patch.
src/ModuleManagerServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,17 +11,17 @@
 block discarded – undo
11 11
     public function boot()
12 12
     {
13 13
         $this->publishes([
14
-            __DIR__ . '/../config/module_manager.php' => config_path('module_manager.php'),
14
+            __DIR__.'/../config/module_manager.php' => config_path('module_manager.php'),
15 15
         ]);
16 16
 
17
-        $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
17
+        $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
18 18
     }
19 19
 
20 20
     public function register()
21 21
     {
22
-        $this->mergeConfigFrom(__DIR__ . '/../config/module_manager.php', 'module_manager');
22
+        $this->mergeConfigFrom(__DIR__.'/../config/module_manager.php', 'module_manager');
23 23
 
24
-        $this->app->singleton(ModuleManager::class, function ($app) {
24
+        $this->app->singleton(ModuleManager::class, function($app) {
25 25
             return new ModuleManager($app, $app->make(ModuleRegistryRepository::class));
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
src/ModuleManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
     {
115 115
         $modules = $this->registry->enabled()->all();
116 116
         foreach ($modules as $model) {
117
-            $module = $this->modules->first(function (AbstractModule $module) use ($model) {
117
+            $module = $this->modules->first(function(AbstractModule $module) use ($model) {
118 118
                 return $module->getUniqueName() === $model->uniqueName;
119 119
             });
120 120
 
Please login to merge, or discard this patch.