@@ -19,15 +19,15 @@ discard block |
||
19 | 19 | */ |
20 | 20 | public function register() |
21 | 21 | { |
22 | - include __DIR__.'/routes.php'; |
|
22 | + include __DIR__ . '/routes.php'; |
|
23 | 23 | $this->app->make('Scool\Inventory\InventoryController'); |
24 | 24 | if (!defined('SCOOL_INVENTORY_PATH')) { |
25 | - define('SCOOL_INVENTORY_PATH', realpath(__DIR__.'/../../')); |
|
25 | + define('SCOOL_INVENTORY_PATH', realpath(__DIR__ . '/../../')); |
|
26 | 26 | } |
27 | 27 | $this->registerNamesServiceProvider(); |
28 | 28 | $this->registerStatefulEloquentServiceProvider(); |
29 | 29 | $this->bindRepositories(); |
30 | - $this->app->bind(StatsRepositoryInterface::class,function() { |
|
30 | + $this->app->bind(StatsRepositoryInterface::class, function() { |
|
31 | 31 | return new CacheableStatsRepository(new StatsRepository()); |
32 | 32 | }); |
33 | 33 | } |
@@ -80,8 +80,8 @@ discard block |
||
80 | 80 | { |
81 | 81 | if (!$this->app->routesAreCached()) { |
82 | 82 | $router = app('router'); |
83 | - $router->group(['namespace' => 'Scool\Inventory\Http\Controllers'], function () { |
|
84 | - require __DIR__.'/../Http/routes.php'; |
|
83 | + $router->group([ 'namespace' => 'Scool\Inventory\Http\Controllers' ], function() { |
|
84 | + require __DIR__ . '/../Http/routes.php'; |
|
85 | 85 | }); |
86 | 86 | } |
87 | 87 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | private function publishFactories() |
106 | 106 | { |
107 | 107 | $this->publishes( |
108 | - ScoolInventory::factories(),"scool_inventory" |
|
108 | + ScoolInventory::factories(), "scool_inventory" |
|
109 | 109 | ); |
110 | 110 | } |
111 | 111 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | private function publishConfig() { |
115 | 115 | $this->publishes( |
116 | - ScoolInventory::configs(),"scool_inventory" |
|
116 | + ScoolInventory::configs(), "scool_inventory" |
|
117 | 117 | ); |
118 | 118 | $this->mergeConfigFrom( |
119 | 119 | SCOOL_INVENTORY_PATH . '/config/inventory.php', 'scool_inventory' |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | private function publishTests() |
126 | 126 | { |
127 | 127 | $this->publishes( |
128 | - [SCOOL_INVENTORY_PATH .'/tests/InventoryTest.php' => 'tests/InventoryTest.php'] , |
|
128 | + [ SCOOL_INVENTORY_PATH . '/tests/InventoryTest.php' => 'tests/InventoryTest.php' ], |
|
129 | 129 | 'scool_inventory' |
130 | 130 | ); |
131 | 131 | } |