Completed
Pull Request — master (#34)
by Raí
05:45
created
Bludata/Doctrine/ORM/Entities/BaseEntity.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
     public function persist(): EntityContract
118 118
     {
119 119
         $this->getRepository()
120
-             ->em()
121
-             ->persist($this);
120
+                ->em()
121
+                ->persist($this);
122 122
 
123 123
         return $this;
124 124
     }
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
     public function flush(): EntityContract
127 127
     {
128 128
         $this->getRepository()
129
-             ->em()
130
-             ->flush($this);
129
+                ->em()
130
+                ->flush($this);
131 131
 
132 132
         return $this;
133 133
     }
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
     public function remove(): EntityContract
136 136
     {
137 137
         $this->getRepository()
138
-             ->em()
139
-             ->remove($this);
138
+                ->em()
139
+                ->remove($this);
140 140
 
141 141
         return $this;
142 142
     }
Please login to merge, or discard this patch.
Bludata/Doctrine/Common/Annotations/RulePersist.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 RulePersist
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@
 block discarded – undo
62 62
     public function findRemoved($id, bool $abort = true): EntityContract
63 63
     {
64 64
         $entity = $this->findAllRemoved()
65
-                       ->andWhere('id', '=', $id)
66
-                       ->getOneResult();
65
+                        ->andWhere('id', '=', $id)
66
+                        ->getOneResult();
67 67
 
68 68
         enableSoftDeleteableFilter();
69 69
 
Please login to merge, or discard this patch.
Bludata/Doctrine/ORM/Traits/ToArrayTrait.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 {
7 7
     public function toArray(array $options = []): array
8 8
     {
9
-    	$reflectionProperty  = new ReflectionProperty(get_called_class(), $key);
9
+        $reflectionProperty  = new ReflectionProperty(get_called_class(), $key);
10 10
         $annotationReader    = new AnnotationReader();
11 11
         $propertyAnnotations = $annotationReader->getPropertyAnnotations($reflectionProperty);
12 12
         
13 13
         $array = [];
14 14
 
15 15
         $classMetadata = $this->getRepository()
16
-                              ->getClassMetadata();
16
+                                ->getClassMetadata();
17 17
 
18 18
         foreach ($this->getFillable() as $key) {
19 19
             $metaDataKey = $classMetadata->hasField($key) ? $classMetadata->getFieldMapping($key) : null;
Please login to merge, or discard this patch.