@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * but take into account we have to add 'web' middleware group here because Laravel by defaults add this middleware in |
| 6 | 6 | * RouteServiceProvider |
| 7 | 7 | */ |
| 8 | -Route::group(['middleware' => 'web'], function () { |
|
| 8 | +Route::group([ 'middleware' => 'web' ], function() { |
|
| 9 | 9 | Route::auth(); |
| 10 | 10 | Route::get('/home', 'HomeController@index'); |
| 11 | 11 | }); |
| 12 | 12 | \ No newline at end of file |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Acacha\Names\Providers\NamesServiceProvider; |
| 6 | 6 | use Illuminate\Support\ServiceProvider; |
| 7 | -use Acacha\Stateful\Providers\StatatefulServiceProvider; |
|
| 8 | 7 | use Scool\Inventory\ScoolInventory; |
| 9 | 8 | |
| 10 | 9 | /** |
@@ -18,11 +18,11 @@ discard block |
||
| 18 | 18 | public function register() |
| 19 | 19 | { |
| 20 | 20 | if (!defined('SCOOL_INVENTORY_PATH')) { |
| 21 | - define('SCOOL_INVENTORY_PATH', realpath(__DIR__.'/../../')); |
|
| 21 | + define('SCOOL_INVENTORY_PATH', realpath(__DIR__ . '/../../')); |
|
| 22 | 22 | } |
| 23 | 23 | $this->app->register(NamesServiceProvider::class); |
| 24 | 24 | $this->app->bind(\Scool\Inventory\Repositories\StudyRepository::class, \Scool\Inventory\Repositories\StudyRepositoryEloquent::class); |
| 25 | - $this->app->bind(StatsRepositoryInterface::class,function() { |
|
| 25 | + $this->app->bind(StatsRepositoryInterface::class, function() { |
|
| 26 | 26 | return new CacheableStatsRepository(new StatsRepository()); |
| 27 | 27 | }); |
| 28 | 28 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | private function loadMigrations() |
| 46 | 46 | { |
| 47 | - $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH.'/database/migrations'); |
|
| 47 | + $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH . '/database/migrations'); |
|
| 48 | 48 | } |
| 49 | 49 | /** |
| 50 | 50 | * Publish factories. |
@@ -64,13 +64,13 @@ discard block |
||
| 64 | 64 | ScoolInventory::configs(), 'scool_inventory' |
| 65 | 65 | ); |
| 66 | 66 | $this->mergeConfigFrom( |
| 67 | - SCOOL_INVENTORY_PATH.'/config/inventory.php', 'scool_inventory' |
|
| 67 | + SCOOL_INVENTORY_PATH . '/config/inventory.php', 'scool_inventory' |
|
| 68 | 68 | ); |
| 69 | 69 | } |
| 70 | 70 | private function publishTests() |
| 71 | 71 | { |
| 72 | 72 | $this->publishes( |
| 73 | - [SCOOL_INVENTORY_PATH.'/tests/InventoryTest.php' => 'tests/InventoryTest.php'], |
|
| 73 | + [ SCOOL_INVENTORY_PATH . '/tests/InventoryTest.php' => 'tests/InventoryTest.php' ], |
|
| 74 | 74 | |
| 75 | 75 | 'scool_inventory' |
| 76 | 76 | |
@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | { |
| 82 | 82 | if (!$this->app->routesAreCached()) { |
| 83 | 83 | $router = app('router'); |
| 84 | - $router->group(['namespace' => 'Scool\Inventory\Http\Controllers'], function () { |
|
| 85 | - require __DIR__.'/../Http/routes.php'; |
|
| 84 | + $router->group([ 'namespace' => 'Scool\Inventory\Http\Controllers' ], function() { |
|
| 85 | + require __DIR__ . '/../Http/routes.php'; |
|
| 86 | 86 | }); |
| 87 | 87 | } |
| 88 | 88 | } |