Completed
Pull Request — master (#37)
by Raí
06:17
created
Bludata/Doctrine/Common/Annotations/Rule.php 1 patch
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.
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.
Bludata/Doctrine/ORM/Traits/ToArrayTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
     private function getPropertiesFillable(): array
32 32
     {
33 33
         $allProperties = $this->getRepository()
34
-                              ->getClassMetadata()
35
-                              ->getReflectionClass()
36
-                              ->getProperties();
34
+                                ->getClassMetadata()
35
+                                ->getReflectionClass()
36
+                                ->getProperties();
37 37
 
38 38
         return array_filter($allProperties, function ($property) {
39 39
             $existAnnotationToArray = array_filter((new AnnotationReader())->getPropertyAnnotations($property), function ($annotation) {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function toArray(array $options = []): array
48 48
     {
49 49
         $classMetadata = $this->getRepository()
50
-                              ->getClassMetadata();
50
+                                ->getClassMetadata();
51 51
 
52 52
         $propertiesFillable = $this->getPropertiesFillable();
53 53
 
Please login to merge, or discard this patch.
Bludata/Doctrine/ORM/Entities/BaseEntity.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
     public function persist(): BdContracts\EntityContract
126 126
     {
127 127
         $this->getRepository()
128
-             ->getEntityManager()
129
-             ->persist($this);
128
+                ->getEntityManager()
129
+                ->persist($this);
130 130
 
131 131
         return $this;
132 132
     }
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
     public function flush(): BdContracts\EntityContract
135 135
     {
136 136
         $this->getRepository()
137
-             ->getEntityManager()
138
-             ->flush($this);
137
+                ->getEntityManager()
138
+                ->flush($this);
139 139
 
140 140
         return $this;
141 141
     }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     public function remove(): BdContracts\EntityContract
144 144
     {
145 145
         $this->getRepository()
146
-             ->remove($this);
146
+                ->remove($this);
147 147
 
148 148
         return $this;
149 149
     }
Please login to merge, or discard this patch.