Completed
Pull Request — master (#41)
by Raí
07:11
created
Bludata/Framework/Laravel/Providers/LaravelServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Bludata/Doctrine/Common/Contracts/ToArrayContract.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Bludata/Doctrine/Common/Contracts/QueryWorkerContract.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Bludata/Doctrine/Common/Contracts/EntityContract.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Bludata/Doctrine/Common/Annotations/Rule.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  */
9 9
 class Rule
10 10
 {
11
-	/**
11
+    /**
12 12
      * @Enum({"STORE", "UPDATE", "*"})
13 13
      */
14 14
     public $value = '*';
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Bludata/Doctrine/Common/Annotations/Fillable.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * @Annotation
7 7
  * @Target({"PROPERTY"})
8 8
  */
9
-class Fillable
10
-{
9
+class Fillable {
11 10
 
12 11
 }
Please login to merge, or discard this patch.
Bludata/Doctrine/Common/Providers/CommonServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Bludata/Doctrine/ORM/Repositories/QueryWorker.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Bludata/Doctrine/ORM/Repositories/BaseRepository.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.