Test Setup Failed
Push — master ( a515d0...24a3ce )
by Raí
07:35 queued 02:54
created
app/Entities/Rota.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
10 10
  * @ORM\Entity(repositoryClass="LaravelSeed\Repositories\RotaRepository")
11 11
  * @ORM\Table(name="Rota")
12 12
  */
13
-class Rota extends BaseEntity
14
-{
13
+class Rota extends BaseEntity {
15 14
     /**
16 15
      * @ORM\Column(type="string", name="nome")
17 16
      * BdAnnotations\ToArray
Please login to merge, or discard this patch.
Bludata/Doctrine/Common/Annotations/RulePersist.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 RulePersist
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 RulePersist
10
-{
9
+class RulePersist {
11 10
 	/**
12 11
      * @Enum({"STORE", "UPDATE", "*"})
13 12
      */
Please login to merge, or discard this patch.
Bludata/Doctrine/Common/Annotations/ToArray.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 ToArray
10
-{
9
+class ToArray {
11 10
 	
12 11
 }
Please login to merge, or discard this patch.
Bludata/Doctrine/ORM/Entities/BaseEntity.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
  * @ORM\HasLifecycleCallbacks
17 17
  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
18 18
  */
19
-abstract class BaseEntity implements EntityContract
20
-{
19
+abstract class BaseEntity implements EntityContract {
21 20
     use ToArrayTrait;
22 21
     
23 22
     /**
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 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Bludata\Doctrine\ORM\Traits;
4 4
 
5
-trait ToArrayTrait
6
-{
5
+trait ToArrayTrait {
7 6
     public function toArray(array $options = []): array
8 7
     {
9 8
     	$reflectionProperty  = new ReflectionProperty(get_called_class(), $key);
Please login to merge, or discard this patch.