@@ -56,6 +56,6 @@ |
||
| 56 | 56 | */ |
| 57 | 57 | protected function getStub() |
| 58 | 58 | { |
| 59 | - return __DIR__.'/stubs/repository-interface.stub'; |
|
| 59 | + return __DIR__ . '/stubs/repository-interface.stub'; |
|
| 60 | 60 | } |
| 61 | 61 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | protected function getStub() |
| 97 | 97 | { |
| 98 | - return __DIR__.$this->stub; |
|
| 98 | + return __DIR__ . $this->stub; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | $name = str_replace('/', '\\', $name); |
| 132 | 132 | |
| 133 | 133 | return $this->qualifyClass( |
| 134 | - $this->getInterfaceNamespace(trim($rootNamespace, '\\'), $interfaceName).'\\'.$name |
|
| 134 | + $this->getInterfaceNamespace(trim($rootNamespace, '\\'), $interfaceName) . '\\' . $name |
|
| 135 | 135 | ); |
| 136 | 136 | } |
| 137 | 137 | |
@@ -24,13 +24,13 @@ discard block |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | $this->publishes([ |
| 27 | - __DIR__.'/config/repositories.php' => config_path('repositories.php'), |
|
| 27 | + __DIR__ . '/config/repositories.php' => config_path('repositories.php'), |
|
| 28 | 28 | ]); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function register() |
| 32 | 32 | { |
| 33 | - $this->app->singleton(ContainerAwareResolver::class, function ($app) { |
|
| 33 | + $this->app->singleton(ContainerAwareResolver::class, function($app) { |
|
| 34 | 34 | return new ContainerAwareResolver($app); |
| 35 | 35 | }); |
| 36 | 36 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | throw new \Exception('Invalid repository config'); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - $this->app->singleton(RepositoryFactory::class, function ($app) { |
|
| 43 | + $this->app->singleton(RepositoryFactory::class, function($app) { |
|
| 44 | 44 | foreach (config('repositories.resolvers') as $resolverClass) { |
| 45 | 45 | $resolver = App::get($resolverClass); |
| 46 | 46 | |