@@ -21,12 +21,12 @@ discard block |
||
21 | 21 | public function register() |
22 | 22 | { |
23 | 23 | if (!defined('SCOOL_INVENTORY_PATH')) { |
24 | - define('SCOOL_INVENTORY_PATH', realpath(__DIR__.'/../../')); |
|
24 | + define('SCOOL_INVENTORY_PATH', realpath(__DIR__ . '/../../')); |
|
25 | 25 | } |
26 | 26 | $this->registerNamesServiceProvider(); |
27 | 27 | $this->registerStatefulEloquentServiceProvider(); |
28 | 28 | $this->bindRepositories(); |
29 | - $this->app->bind(StatsRepositoryInterface::class, function () { |
|
29 | + $this->app->bind(StatsRepositoryInterface::class, function() { |
|
30 | 30 | return new CacheableStatsRepository(new StatsRepository()); |
31 | 31 | }); |
32 | 32 | } |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | { |
83 | 83 | if (!$this->app->routesAreCached()) { |
84 | 84 | $router = app('router'); |
85 | - $router->group(['namespace' => 'Scool\Inventory\Http\Controllers'], function () { |
|
86 | - require __DIR__.'/../Http/routes.php'; |
|
85 | + $router->group([ 'namespace' => 'Scool\Inventory\Http\Controllers' ], function() { |
|
86 | + require __DIR__ . '/../Http/routes.php'; |
|
87 | 87 | }); |
88 | 88 | } |
89 | 89 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | private function loadViews() |
95 | 95 | { |
96 | - $this->loadViewsFrom(SCOOL_INVENTORY_PATH.'/resources/views', 'inventory'); |
|
96 | + $this->loadViewsFrom(SCOOL_INVENTORY_PATH . '/resources/views', 'inventory'); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | private function loadMigrations() |
103 | 103 | { |
104 | - $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH.'/database/migrations'); |
|
104 | + $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH . '/database/migrations'); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | ScoolInventory::configs(), 'scool_inventory' |
124 | 124 | ); |
125 | 125 | $this->mergeConfigFrom( |
126 | - SCOOL_INVENTORY_PATH.'/config/inventory.php', 'scool_inventory' |
|
126 | + SCOOL_INVENTORY_PATH . '/config/inventory.php', 'scool_inventory' |
|
127 | 127 | ); |
128 | 128 | } |
129 | 129 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | private function publishTests() |
134 | 134 | { |
135 | 135 | $this->publishes( |
136 | - [SCOOL_INVENTORY_PATH.'/tests/InventoryTest.php' => 'tests/InventoryTest.php'], |
|
136 | + [ SCOOL_INVENTORY_PATH . '/tests/InventoryTest.php' => 'tests/InventoryTest.php' ], |
|
137 | 137 | 'scool_inventory' |
138 | 138 | ); |
139 | 139 | } |