@@ -20,12 +20,12 @@ discard block |
||
| 20 | 20 | public function register() |
| 21 | 21 | { |
| 22 | 22 | if (!defined('SCOOL_CURRICULUM_PATH')) { |
| 23 | - define('SCOOL_CURRICULUM_PATH', realpath(__DIR__.'/../../')); |
|
| 23 | + define('SCOOL_CURRICULUM_PATH', realpath(__DIR__ . '/../../')); |
|
| 24 | 24 | } |
| 25 | 25 | $this->registerNamesServiceProvider(); |
| 26 | 26 | $this->registerStatefulEloquentServiceProvider(); |
| 27 | 27 | $this->bindRepositories(); |
| 28 | - $this->app->bind(StatsRepositoryInterface::class,function() { |
|
| 28 | + $this->app->bind(StatsRepositoryInterface::class, function() { |
|
| 29 | 29 | return new CacheableStatsRepository(new StatsRepository()); |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -78,8 +78,8 @@ discard block |
||
| 78 | 78 | { |
| 79 | 79 | if (!$this->app->routesAreCached()) { |
| 80 | 80 | $router = app('router'); |
| 81 | - $router->group(['namespace' => 'Scool\Curriculum\Http\Controllers'], function () { |
|
| 82 | - require __DIR__.'/../Http/routes.php'; |
|
| 81 | + $router->group([ 'namespace' => 'Scool\Curriculum\Http\Controllers' ], function() { |
|
| 82 | + require __DIR__ . '/../Http/routes.php'; |
|
| 83 | 83 | }); |
| 84 | 84 | } |
| 85 | 85 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | private function publishFactories() |
| 104 | 104 | { |
| 105 | 105 | $this->publishes( |
| 106 | - ScoolCurriculum::factories(),"scool_curriculum" |
|
| 106 | + ScoolCurriculum::factories(), "scool_curriculum" |
|
| 107 | 107 | ); |
| 108 | 108 | } |
| 109 | 109 | /** |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | private function publishConfig() { |
| 113 | 113 | $this->publishes( |
| 114 | - ScoolCurriculum::configs(),"scool_curriculum" |
|
| 114 | + ScoolCurriculum::configs(), "scool_curriculum" |
|
| 115 | 115 | ); |
| 116 | 116 | $this->mergeConfigFrom( |
| 117 | 117 | SCOOL_CURRICULUM_PATH . '/config/curriculum.php', 'scool_curriculum' |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | private function publishTests() |
| 124 | 124 | { |
| 125 | 125 | $this->publishes( |
| 126 | - [SCOOL_CURRICULUM_PATH .'/tests/CurriculumTest.php' => 'tests/CurriculumTest.php'] , |
|
| 126 | + [ SCOOL_CURRICULUM_PATH . '/tests/CurriculumTest.php' => 'tests/CurriculumTest.php' ], |
|
| 127 | 127 | 'scool_curriculum' |
| 128 | 128 | ); |
| 129 | 129 | } |