@@ -11,7 +11,7 @@ |
||
11 | 11 | /** |
12 | 12 | *Constante que define a base de onde está localizado o projeto |
13 | 13 | */ |
14 | -define("BASE_DIR",str_replace('\\', '/', dirname(__FILE__))); |
|
14 | +define("BASE_DIR", str_replace('\\', '/', dirname(__FILE__))); |
|
15 | 15 | |
16 | 16 | |
17 | 17 | /** |
@@ -21,14 +21,14 @@ |
||
21 | 21 | * Retorna um array de atributos |
22 | 22 | * @return array |
23 | 23 | */ |
24 | - public static final function getAnnotation($obj){ |
|
24 | + public static final function getAnnotation($obj) { |
|
25 | 25 | $funReflec = new FuncoesReflections(); |
26 | 26 | $out = array(); |
27 | 27 | $pattern = '/@+_+[A-z]\w+=\w+/'; |
28 | 28 | $fullComments = $funReflec->retornaComentariosAtributos($obj); |
29 | 29 | $attributos = $funReflec->pegaAtributosDoObjeto($obj); |
30 | - $test =[]; |
|
31 | - for($i = 0; $i < count($attributos); $i++){ |
|
30 | + $test = []; |
|
31 | + for ($i = 0; $i < count($attributos); $i++) { |
|
32 | 32 | preg_match_all($pattern, |
33 | 33 | $fullComments[$attributos[$i]], |
34 | 34 | $out); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | function __construct() |
12 | 12 | { |
13 | - spl_autoload_register(function ($class) { |
|
13 | + spl_autoload_register(function($class) { |
|
14 | 14 | include_once(str_replace('\\', '/', $class . '.php')); |
15 | 15 | }); |
16 | 16 | } |