Passed
Push — main ( 18fc2b...535c40 )
by Osvaldo
01:29
created
Index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,19 +8,19 @@
 block discarded – undo
8 8
 
9 9
 require_once __DIR__ . '/vendor/autoload.php';
10 10
 
11
-use src\{CuestionarioEts,AcontecimientoTraumaticoSevero, Afectacion, EsfuerzoPorEvitarCircunstanciasParecidasOAsociadasAlAcontecimiento, RecuerdosPersistentesSobreElAcontecimiento};
11
+use src\{CuestionarioEts, AcontecimientoTraumaticoSevero, Afectacion, EsfuerzoPorEvitarCircunstanciasParecidasOAsociadasAlAcontecimiento, RecuerdosPersistentesSobreElAcontecimiento};
12 12
 
13 13
 use src\CrearCuestionarioEts;
14 14
 
15 15
 use src\CambiarValoresParaBaseDeDatosCuestionarioEts;
16 16
 
17
-$ets = new AcontecimientoTraumaticoSevero('No','No','No','No','No','No');
17
+$ets = new AcontecimientoTraumaticoSevero('No', 'No', 'No', 'No', 'No', 'No');
18 18
 
19 19
 $cuestionario = new CuestionarioEts(
20 20
     $ets,
21
-    new RecuerdosPersistentesSobreElAcontecimiento($ets,'Sí', 'No'),
22
-    new EsfuerzoPorEvitarCircunstanciasParecidasOAsociadasAlAcontecimiento($ets,'Sí','No','No','No','No','No','No'),
23
-    new Afectacion($ets,'Sí','No','No','No','No')
21
+    new RecuerdosPersistentesSobreElAcontecimiento($ets, 'Sí', 'No'),
22
+    new EsfuerzoPorEvitarCircunstanciasParecidasOAsociadasAlAcontecimiento($ets, 'Sí', 'No', 'No', 'No', 'No', 'No', 'No'),
23
+    new Afectacion($ets, 'Sí', 'No', 'No', 'No', 'No')
24 24
 );
25 25
 echo '<h1>Crear Cuestionario a partir de forma regular</h1>';
26 26
 echo '<pre>';
Please login to merge, or discard this patch.
src/CambiarValoresParaBaseDeDatosCuestionarioEts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $resultado = 2;
35 35
         
36
-        if($valor == 'No')
36
+        if ($valor == 'No')
37 37
         {
38 38
             $resultado = 1;
39 39
         }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $resultado = 'Sí';
47 47
         
48
-        if($valor == 1)
48
+        if ($valor == 1)
49 49
         {
50 50
             $resultado = 'No';
51 51
         }
Please login to merge, or discard this patch.