@@ -5,8 +5,7 @@ |
||
5 | 5 | use Illuminate\Foundation\Auth\AuthenticatesUsers; |
6 | 6 | use LaravelSeed\Http\Controllers\Controller; |
7 | 7 | |
8 | -class LoginController extends Controller |
|
9 | -{ |
|
8 | +class LoginController extends Controller { |
|
10 | 9 | /* |
11 | 10 | |-------------------------------------------------------------------------- |
12 | 11 | | Login Controller |
@@ -7,8 +7,7 @@ |
||
7 | 7 | use LaravelSeed\Http\Controllers\Controller; |
8 | 8 | use LaravelSeed\User; |
9 | 9 | |
10 | -class RegisterController extends Controller |
|
11 | -{ |
|
10 | +class RegisterController extends Controller { |
|
12 | 11 | /* |
13 | 12 | |-------------------------------------------------------------------------- |
14 | 13 | | Register Controller |
@@ -5,6 +5,5 @@ |
||
5 | 5 | use Bludata\Doctrine\ORM\Repositories\BaseRepository; |
6 | 6 | use LaravelSeed\Contracts\Repositories\RotaRepositoryContract; |
7 | 7 | |
8 | -class RotaRepository extends BaseRepository implements RotaRepositoryContract |
|
9 | -{ |
|
8 | +class RotaRepository extends BaseRepository implements RotaRepositoryContract { |
|
10 | 9 | } |
@@ -2,6 +2,5 @@ |
||
2 | 2 | |
3 | 3 | namespace LaravelSeed\Contracts\Repositories; |
4 | 4 | |
5 | -interface RotaRepositoryContract |
|
6 | -{ |
|
5 | +interface RotaRepositoryContract { |
|
7 | 6 | } |
@@ -9,8 +9,7 @@ |
||
9 | 9 | use Doctrine\ORM\EntityRepository; |
10 | 10 | use Doctrine\ORM\Mapping\ClassMetadata; |
11 | 11 | |
12 | -abstract class BaseRepository extends EntityRepository implements RepositoryContract |
|
13 | -{ |
|
12 | +abstract class BaseRepository extends EntityRepository implements RepositoryContract { |
|
14 | 13 | public function getEntityManager(): EntityManager |
15 | 14 | { |
16 | 15 | return parent::getEntityManager(); |
@@ -5,8 +5,7 @@ |
||
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | 6 | use Doctrine\ORM\Mapping\ClassMetadata; |
7 | 7 | |
8 | -interface RepositoryContract |
|
9 | -{ |
|
8 | +interface RepositoryContract { |
|
10 | 9 | public function getEntityManager(): EntityManager; |
11 | 10 | |
12 | 11 | public function getClassMetadata(): ClassMetadata; |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Support\ServiceProvider; |
6 | 6 | |
7 | -class LaravelServiceProvider extends ServiceProvider |
|
8 | -{ |
|
7 | +class LaravelServiceProvider extends ServiceProvider { |
|
9 | 8 | public function register() |
10 | 9 | { |
11 | 10 | $this->app->register(\Bludata\Doctrine\ORM\Providers\ORMServiceProvider::class); |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Bludata\Doctrine\Common\Contracts; |
4 | 4 | |
5 | -interface ToArrayContract |
|
6 | -{ |
|
5 | +interface ToArrayContract { |
|
7 | 6 | public function toArray(array $options = []): array; |
8 | 7 | } |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | 6 | |
7 | -interface QueryWorkerContract |
|
8 | -{ |
|
7 | +interface QueryWorkerContract { |
|
9 | 8 | public function __construct(RepositoryContract $repository); |
10 | 9 | |
11 | 10 | public function getResult(): ArrayCollection; |