@@ -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; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | class Rule |
10 | 10 | { |
11 | - /** |
|
11 | + /** |
|
12 | 12 | * @Enum({"STORE", "UPDATE", "*"}) |
13 | 13 | */ |
14 | 14 | public $value = '*'; |
@@ -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 | } |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | public function findRemoved($id, bool $abort = true): ?EntityContract |
69 | 69 | { |
70 | 70 | $entity = $this->findAllRemoved() |
71 | - ->andWhere('id', '=', $id) |
|
72 | - ->getOneResult(); |
|
71 | + ->andWhere('id', '=', $id) |
|
72 | + ->getOneResult(); |
|
73 | 73 | |
74 | 74 | enableSoftDeleteableFilter(); |
75 | 75 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | public function remove(EntityContract $entity): EntityContract |
91 | 91 | { |
92 | 92 | $this->getEntityManager() |
93 | - ->remove($entity); |
|
93 | + ->remove($entity); |
|
94 | 94 | |
95 | 95 | return $entity; |
96 | 96 | } |