Passed
Push — main ( 67a4aa...1c1b74 )
by Osvaldo
05:10
created
src/pdodatabase/elementos/Update.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,13 +63,13 @@
 block discarded – undo
63 63
     {
64 64
         $set = "";
65 65
 
66
-		$values = [];
66
+        $values = [];
67 67
 
68
-		foreach ($array as $key => $value)
69
-		{
70
-			$set = $set.$key. ' = ?,';
71
-		}
68
+        foreach ($array as $key => $value)
69
+        {
70
+            $set = $set.$key. ' = ?,';
71
+        }
72 72
 
73
-		return trim($set, ',');  
73
+        return trim($set, ',');  
74 74
     }
75 75
 }
76 76
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         foreach ($array as $key => $value)
54 54
         {
55
-            if(empty($key))
55
+            if (empty($key))
56 56
             {
57 57
                 throw new Exception("Error Processing Request");   
58 58
             }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
 		foreach ($array as $key => $value)
69 69
 		{
70
-			$set = $set.$key. ' = ?,';
70
+			$set = $set.$key.' = ?,';
71 71
 		}
72 72
 
73 73
 		return trim($set, ',');  
Please login to merge, or discard this patch.
Index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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
 use src\Factory;
6 6
 use src\pdodatabase\elementos\Update;
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 
19 19
 // SELECT * FROM prueba
20 20
 
21
-$select = $factory->crear('src\factory\SelectWhere',[
21
+$select = $factory->crear('src\factory\SelectWhere', [
22 22
     'tabla' => 'prueba',
23 23
     'campos' => ['*'],
24
-    'where' => ['id','=','42']
24
+    'where' => ['id', '=', '42']
25 25
 ]);
26 26
 
27 27
 $select = $select->obtener();
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 var_dump($resultadoJson->resultado($select));
50 50
 
51 51
 
52
-$up = new Update(['uno' => 1,'dos' => 2], new Where(new ValidadorDeParametrosWhere(['id','=',1])));
52
+$up = new Update(['uno' => 1, 'dos' => 2], new Where(new ValidadorDeParametrosWhere(['id', '=', 1])));
53 53
 
54 54
 
55 55
 print_r($up->datos());
56 56
\ No newline at end of file
Please login to merge, or discard this patch.