Passed
Push — main ( 6cdb6f...ad9b5a )
by Osvaldo
05:28
created
src/pdodatabase/elementos/Joins.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             $sql = $sql.' '.$join->sql();
28 28
         }
29 29
 
30
-        return $this->_campos.','.$this->campos(). ' FROM '. $this->_tabla->sql().$sql;
30
+        return $this->_campos.','.$this->campos().' FROM '.$this->_tabla->sql().$sql;
31 31
     }
32 32
 
33 33
     private function campos(): string
@@ -39,12 +39,12 @@  discard block
 block discarded – undo
39 39
             $campos = $campos.$join->campos().',';
40 40
         }
41 41
 
42
-        return trim($campos,',');
42
+        return trim($campos, ',');
43 43
     }
44 44
 
45 45
     private function setCampos(string $campos): string
46 46
     {
47
-        $campos = str_replace(',',','.$this->_tabla->sql().'.',$campos);
47
+        $campos = str_replace(',', ','.$this->_tabla->sql().'.', $campos);
48 48
 
49 49
         return $this->_tabla->sql().'.'.$campos;
50 50
     }
Please login to merge, or discard this patch.
src/factory/JoinWhereBetweenOrderBy.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
70
-               array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
70
+                array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
71 71
             }
72 72
 
73 73
             $this->multilplesJoin($value, $value['tabla']);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     private function multilplesJoin(array $value, string $tablaPadre): void
65 65
     {
66
-        if(isset($value['join']))
66
+        if (isset($value['join']))
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
Please login to merge, or discard this patch.
src/factory/JoinWhereLimit.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
70
-               array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
70
+                array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
71 71
             }
72 72
 
73 73
             $this->multilplesJoin($value, $value['tabla']);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     private function multilplesJoin(array $value, string $tablaPadre): void
65 65
     {
66
-        if(isset($value['join']))
66
+        if (isset($value['join']))
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
Please login to merge, or discard this patch.
src/factory/JoinWhereOrderByLimit.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
70
-               array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
70
+                array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
71 71
             }
72 72
 
73 73
             $this->multilplesJoin($value, $value['tabla']);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     private function multilplesJoin(array $value, string $tablaPadre): void
65 65
     {
66
-        if(isset($value['join']))
66
+        if (isset($value['join']))
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
Please login to merge, or discard this patch.
src/factory/JoinWhereOrOrderBy.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
70
-               array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
70
+                array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
71 71
             }
72 72
 
73 73
             $this->multilplesJoin($value, $value['tabla']);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     private function multilplesJoin(array $value, string $tablaPadre): void
65 65
     {
66
-        if(isset($value['join']))
66
+        if (isset($value['join']))
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
Please login to merge, or discard this patch.
src/factory/JoinWhereNotBetweenOrderBy.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
70
-               array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
70
+                array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
71 71
             }
72 72
 
73 73
             $this->multilplesJoin($value, $value['tabla']);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     private function multilplesJoin(array $value, string $tablaPadre): void
65 65
     {
66
-        if(isset($value['join']))
66
+        if (isset($value['join']))
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
Please login to merge, or discard this patch.
src/factory/JoinWhereOrOrderByLimit.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
70
-               array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
70
+                array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
71 71
             }
72 72
 
73 73
             $this->multilplesJoin($value, $value['tabla']);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     private function multilplesJoin(array $value, string $tablaPadre): void
65 65
     {
66
-        if(isset($value['join']))
66
+        if (isset($value['join']))
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
Please login to merge, or discard this patch.
src/factory/JoinWhereAndOrderBy.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
70
-               array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
70
+                array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
71 71
             }
72 72
 
73 73
             $this->multilplesJoin($value, $value['tabla']);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     private function multilplesJoin(array $value, string $tablaPadre): void
65 65
     {
66
-        if(isset($value['join']))
66
+        if (isset($value['join']))
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
Please login to merge, or discard this patch.
src/factory/JoinWhereOrderBy.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
70
-               array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
70
+                array_push($this->_joins, $this->crearJoin($value, $tablaPadre));
71 71
             }
72 72
 
73 73
             $this->multilplesJoin($value, $value['tabla']);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     private function multilplesJoin(array $value, string $tablaPadre): void
65 65
     {
66
-        if(isset($value['join']))
66
+        if (isset($value['join']))
67 67
         {
68 68
             foreach ($value['join'] as $value)
69 69
             {
Please login to merge, or discard this patch.