@@ -14,11 +14,11 @@ |
||
14 | 14 | */ |
15 | 15 | class Study extends Model implements Transformable |
16 | 16 | { |
17 | - use HasLaw,HasDepartments,HasCourses,Nameable,TransformableTrait; |
|
17 | + use HasLaw, HasDepartments, HasCourses, Nameable, TransformableTrait; |
|
18 | 18 | /** |
19 | 19 | * The attributes that are mass assignable. |
20 | 20 | * |
21 | 21 | * @var array |
22 | 22 | */ |
23 | - protected $fillable = ['name']; |
|
23 | + protected $fillable = [ 'name' ]; |
|
24 | 24 | } |
25 | 25 | \ No newline at end of file |
@@ -16,11 +16,11 @@ discard block |
||
16 | 16 | public function register() |
17 | 17 | { |
18 | 18 | if (!defined('SCOOL_INVENTORY_PATH')) { |
19 | - define('SCOOL_INVENTORY_PATH', realpath(__DIR__.'/../../')); |
|
19 | + define('SCOOL_INVENTORY_PATH', realpath(__DIR__ . '/../../')); |
|
20 | 20 | } |
21 | 21 | $this->app->register(NamesServiceProvider::class); |
22 | 22 | $this->app->bind(\Scool\Inventory\Repositories\StudyRepository::class, \Scool\Inventory\Repositories\StudyRepositoryEloquent::class); |
23 | - $this->app->bind(StatsRepositoryInterface::class,function() { |
|
23 | + $this->app->bind(StatsRepositoryInterface::class, function() { |
|
24 | 24 | return new CacheableStatsRepository(new StatsRepository()); |
25 | 25 | }); |
26 | 26 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | private function loadMigrations() |
45 | 45 | { |
46 | - $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH.'/database/migrations'); |
|
46 | + $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH . '/database/migrations'); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -65,14 +65,14 @@ discard block |
||
65 | 65 | ScoolInventory::configs(), 'scool_inventory' |
66 | 66 | ); |
67 | 67 | $this->mergeConfigFrom( |
68 | - SCOOL_INVENTORY_PATH.'/config/inventory.php', 'scool_inventory' |
|
68 | + SCOOL_INVENTORY_PATH . '/config/inventory.php', 'scool_inventory' |
|
69 | 69 | ); |
70 | 70 | } |
71 | 71 | |
72 | 72 | private function publishTests() |
73 | 73 | { |
74 | 74 | $this->publishes( |
75 | - [SCOOL_INVENTORY_PATH.'/tests/InventoryTest.php' => 'tests/InventoryTest.php'], |
|
75 | + [ SCOOL_INVENTORY_PATH . '/tests/InventoryTest.php' => 'tests/InventoryTest.php' ], |
|
76 | 76 | 'scool_curriculum' |
77 | 77 | ); |
78 | 78 | } |
@@ -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 |