Passed
Push — main ( 2ab95f...30be7b )
by Osvaldo
01:40
created
src/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     private function verificarSiExisteLaClase($nombreDeLaClase): string
21 21
     {
22
-        if(!class_exists($nombreDeLaClase))
22
+        if (!class_exists($nombreDeLaClase))
23 23
         {
24 24
             throw new Exception("La clase no existe", 1);
25 25
         }
Please login to merge, or discard this patch.
test/FactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
 
24 24
     public function testSiLaClaseExisteYDevuelveUnObjeto()
25 25
     {
26
-        $this->assertIsObject($this->class->crear('test\Dummy', array() ) );
26
+        $this->assertIsObject($this->class->crear('test\Dummy', array()));
27 27
     }
28 28
 
29 29
     public function testSiRegresaUnaClaseEsConsideradaUnObjeto()
30 30
     {
31
-        $this->assertIsObject( $this->crearDummy->crear(array() ) );
31
+        $this->assertIsObject($this->crearDummy->crear(array()));
32 32
     }
33 33
 }
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 declare(strict_types=1);
7 7
 
8
-require_once __DIR__ . '/vendor/autoload.php';
8
+require_once __DIR__.'/vendor/autoload.php';
9 9
 
10 10
 /*
11 11
 Creamos la clase Dummy a partir de una clase que devuelve Dummy, esto permite pasar Factory dentro de un contenedor sin necesidad de pasar los parametros del constructor en el momento
Please login to merge, or discard this patch.