Passed
Push — main ( 088d44...a78334 )
by Osvaldo
01:57
created
Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 declare(strict_types=1);
3
-require_once __DIR__ . '/vendor/autoload.php';
3
+require_once __DIR__.'/vendor/autoload.php';
4 4
 
5 5
 
6 6
 use src\pdodatabase\elementos\Columna;
Please login to merge, or discard this patch.
test/ElementosTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     public function testCamposSoloRetornaTexto()
41 41
     {
42
-        $campos = new Campos(['*','78']);
42
+        $campos = new Campos(['*', '78']);
43 43
         $this->assertIsString($campos->campos());
44 44
     }
45 45
 
Please login to merge, or discard this patch.
src/interfaces/SeleccionarInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace src\interfaces;
3 3
 
4
-use src\pdodatabase\elementos\{Tabla,Campos};
4
+use src\pdodatabase\elementos\{Tabla, Campos};
5 5
 
6 6
 interface SeleccionarInterface
7 7
 {
Please login to merge, or discard this patch.
src/interfaces/SentenciaDeComparacionInterface.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 
6 6
 interface SentenciaDeComparacionInterface
7 7
 {
8
-    public function __construct
9
-    (
8
+    public function __construct(
10 9
         UnidadDeValorInterface $UnidadDeValorInterface1,
11 10
         UnidadDeValorInterface $UnidadDeValorInterface2,
12 11
         UnidadDeValorInterface $UnidadDeValorInterface3
Please login to merge, or discard this patch.
src/pdodatabase/elementos/WhereAnd.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function datos(): array
25 25
     {
26 26
         $array = $this->_where->datos();
27
-        array_push($array,$this->_sentencia->datos()[0]);
27
+        array_push($array, $this->_sentencia->datos()[0]);
28 28
 
29 29
         return $array;        
30 30
     }
Please login to merge, or discard this patch.
src/pdodatabase/elementos/WhereNotBetween.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function sql(): string
17 17
     {
18
-        return ' WHERE '. $this->_sentencia->sql();
18
+        return ' WHERE '.$this->_sentencia->sql();
19 19
     }
20 20
 
21 21
     public function datos(): array
Please login to merge, or discard this patch.
pdodatabase/elementos/SentenciaDeComparacionColumnaValorValorNegacion.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
     private $_segundoValor;
11 11
     private $_tercerValor;
12 12
 
13
-    public function __construct
14
-    (
13
+    public function __construct(
15 14
         UnidadDeValorInterface $UnidadDeValorInterface1,
16 15
         UnidadDeValorInterface $UnidadDeValorInterface2,
17 16
         UnidadDeValorInterface $UnidadDeValorInterface3
@@ -29,6 +28,6 @@  discard block
 block discarded – undo
29 28
 
30 29
     public function datos(): array
31 30
     {
32
-        return [$this->_segundoValor->valor(),$this->_tercerValor->valor()];
31
+        return [$this->_segundoValor->valor(), $this->_tercerValor->valor()];
33 32
     } 
34 33
 }
35 34
\ No newline at end of file
Please login to merge, or discard this patch.
src/pdodatabase/elementos/Operador.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     private function operadorVacio(string $operador)
36 36
     {
37
-        if(empty($operador))
37
+        if (empty($operador))
38 38
         {
39 39
             throw new Exception("Operador vacio"); 
40 40
         }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     private function operadorValido(string $operador)
44 44
     {
45
-        if(!in_array($operador,$this->_operadoresValidos))
45
+        if (!in_array($operador, $this->_operadoresValidos))
46 46
         {
47 47
             throw new Exception("Operador no valido"); 
48 48
         }
Please login to merge, or discard this patch.
src/pdodatabase/elementos/WhereBetween.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function sql(): string
17 17
     {
18
-        return 'WHERE '. $this->_sentencia->sql();
18
+        return 'WHERE '.$this->_sentencia->sql();
19 19
     }
20 20
 
21 21
     public function datos(): array
Please login to merge, or discard this patch.