Completed
Push — master ( 930ea9...460730 )
by Manu
02:31
created
src/Providers/InventoryServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
     public function register()
21 21
     {
22 22
         if (!defined('SCOOL_INVENTORY_PATH')) {
23
-            define('SCOOL_INVENTORY_PATH', realpath(__DIR__.'/../../'));
23
+            define('SCOOL_INVENTORY_PATH', realpath(__DIR__ . '/../../'));
24 24
         }
25 25
         $this->registerNamesServiceProvider();
26 26
         $this->registerStatefulEloquentServiceProvider();
27 27
         $this->bindRepositories();
28
-        $this->app->bind(StatsRepositoryInterface::class,function() {
28
+        $this->app->bind(StatsRepositoryInterface::class, function() {
29 29
             return new CacheableStatsRepository(new StatsRepository());
30 30
         });
31 31
     }
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     {
79 79
         if (!$this->app->routesAreCached()) {
80 80
             $router = app('router');
81
-            $router->group(['namespace' => 'Scool\Inventory\Http\Controllers'], function () {
82
-                require __DIR__.'/../Http/routes.php';
81
+            $router->group([ 'namespace' => 'Scool\Inventory\Http\Controllers' ], function() {
82
+                require __DIR__ . '/../Http/routes.php';
83 83
             });
84 84
         }
85 85
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     private function publishFactories()
104 104
     {
105 105
         $this->publishes(
106
-            ScoolInventory::factories(),"scool_inventory"
106
+            ScoolInventory::factories(), "scool_inventory"
107 107
         );
108 108
     }
109 109
     /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     private function publishConfig() {
113 113
         $this->publishes(
114
-            ScoolInventory::configs(),"scool_inventory"
114
+            ScoolInventory::configs(), "scool_inventory"
115 115
         );
116 116
         $this->mergeConfigFrom(
117 117
             SCOOL_INVENTORY_PATH . '/config/inventory.php', 'scool_inventory'
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     private function publishTests()
124 124
     {
125 125
         $this->publishes(
126
-            [SCOOL_INVENTORY_PATH .'/tests/InventoryTest.php' => 'tests/InventoryTest.php'] ,
126
+            [ SCOOL_INVENTORY_PATH . '/tests/InventoryTest.php' => 'tests/InventoryTest.php' ],
127 127
             'scool_inventory'
128 128
         );
129 129
     }
Please login to merge, or discard this patch.