@@ -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; |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use DateTime; |
6 | 6 | |
7 | -interface EntityContract |
|
8 | -{ |
|
7 | +interface EntityContract { |
|
9 | 8 | public function getId(); |
10 | 9 | |
11 | 10 | public function getCreatedAt(): ?DateTime; |
@@ -6,8 +6,7 @@ |
||
6 | 6 | * @Annotation |
7 | 7 | * @Target({"PROPERTY"}) |
8 | 8 | */ |
9 | -class Rule |
|
10 | -{ |
|
9 | +class Rule { |
|
11 | 10 | /** |
12 | 11 | * @Enum({"STORE", "UPDATE", "*"}) |
13 | 12 | */ |
@@ -6,7 +6,6 @@ |
||
6 | 6 | * @Annotation |
7 | 7 | * @Target({"PROPERTY"}) |
8 | 8 | */ |
9 | -class Fillable |
|
10 | -{ |
|
9 | +class Fillable { |
|
11 | 10 | |
12 | 11 | } |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Support\ServiceProvider; |
6 | 6 | |
7 | -class CommonServiceProvider extends ServiceProvider |
|
8 | -{ |
|
7 | +class CommonServiceProvider extends ServiceProvider { |
|
9 | 8 | public function register() |
10 | 9 | { |
11 | 10 | register_annotation_dir(__DIR__.'/../Annotations'); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | public function toArray(array $options = []): array |
53 | 53 | { |
54 | 54 | return $this->getResult() |
55 | - ->map(function ($element) use ($options){ |
|
55 | + ->map(function ($element) use ($options) { |
|
56 | 56 | return $element->toArray($options); |
57 | 57 | })->toArray(); |
58 | 58 | } |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Support\ServiceProvider; |
6 | 6 | |
7 | -class ORMServiceProvider extends ServiceProvider |
|
8 | -{ |
|
7 | +class ORMServiceProvider extends ServiceProvider { |
|
9 | 8 | public function register() |
10 | 9 | { |
11 | 10 | $this->app->register(\Bludata\Doctrine\Common\Providers\CommonServiceProvider::class); |