@@ -17,11 +17,11 @@ discard block |
||
17 | 17 | public function register() |
18 | 18 | { |
19 | 19 | if (!defined('SCOOL_INVENTORY_PATH')) { |
20 | - define('SCOOL_INVENTORY_PATH', realpath(__DIR__.'/../../')); |
|
20 | + define('SCOOL_INVENTORY_PATH', realpath(__DIR__ . '/../../')); |
|
21 | 21 | } |
22 | 22 | $this->app->register(NamesServiceProvider::class); |
23 | 23 | $this->app->bind(\Scool\Inventory\Repositories\StudyRepository::class, \Scool\Inventory\Repositories\StudyRepositoryEloquent::class); |
24 | - $this->app->bind(StatsRepositoryInterface::class, function () { |
|
24 | + $this->app->bind(StatsRepositoryInterface::class, function() { |
|
25 | 25 | return new CacheableStatsRepository(new StatsRepository()); |
26 | 26 | }); |
27 | 27 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | private function loadMigrations() |
47 | 47 | { |
48 | - $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH.'/database/migrations'); |
|
48 | + $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH . '/database/migrations'); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
@@ -67,14 +67,14 @@ discard block |
||
67 | 67 | ScoolInventory::configs(), 'scool_inventory' |
68 | 68 | ); |
69 | 69 | $this->mergeConfigFrom( |
70 | - SCOOL_INVENTORY_PATH.'/config/inventory.php', 'scool_inventory' |
|
70 | + SCOOL_INVENTORY_PATH . '/config/inventory.php', 'scool_inventory' |
|
71 | 71 | ); |
72 | 72 | } |
73 | 73 | |
74 | 74 | private function publishTests() |
75 | 75 | { |
76 | 76 | $this->publishes( |
77 | - [SCOOL_INVENTORY_PATH.'/tests/InventoryTest.php' => 'tests/InventoryTest.php'], |
|
77 | + [ SCOOL_INVENTORY_PATH . '/tests/InventoryTest.php' => 'tests/InventoryTest.php' ], |
|
78 | 78 | |
79 | 79 | 'scool_inventory' |
80 | 80 | |
@@ -85,8 +85,8 @@ discard block |
||
85 | 85 | { |
86 | 86 | if (!$this->app->routesAreCached()) { |
87 | 87 | $router = app('router'); |
88 | - $router->group(['namespace' => 'Scool\Inventory\Http\Controllers'], function () { |
|
89 | - require __DIR__.'/../Http/routes.php'; |
|
88 | + $router->group([ 'namespace' => 'Scool\Inventory\Http\Controllers' ], function() { |
|
89 | + require __DIR__ . '/../Http/routes.php'; |
|
90 | 90 | }); |
91 | 91 | } |
92 | 92 | } |
@@ -15,11 +15,11 @@ |
||
15 | 15 | */ |
16 | 16 | class Study extends Model implements Transformable |
17 | 17 | { |
18 | - use HasLaw,HasDepartments,HasCourses,Nameable,TransformableTrait; |
|
18 | + use HasLaw, HasDepartments, HasCourses, Nameable, TransformableTrait; |
|
19 | 19 | /** |
20 | 20 | * The attributes that are mass assignable. |
21 | 21 | * |
22 | 22 | * @var array |
23 | 23 | */ |
24 | - protected $fillable = ['name']; |
|
24 | + protected $fillable = [ 'name' ]; |
|
25 | 25 | } |
@@ -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 | }); |