@@ -19,7 +19,7 @@ |
||
19 | 19 | private static $time; |
20 | 20 | |
21 | 21 | /** |
22 | - * @return mixed |
|
22 | + * @return double |
|
23 | 23 | */ |
24 | 24 | function getTime() |
25 | 25 | { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * Caso o atributo pesquisado não exista, a função retornará falso. |
59 | 59 | * @param $obj |
60 | 60 | * @param $nomeAtributo |
61 | - * @return bool|string |
|
61 | + * @return string|false |
|
62 | 62 | * @throws Exception |
63 | 63 | */ |
64 | 64 | public function pegaNomeAtributoEspecifico($obj, $nomeAtributo) |
@@ -196,8 +196,8 @@ |
||
196 | 196 | { |
197 | 197 | $atributos = []; |
198 | 198 | for ($i = 0; |
199 | - $i < count(self::retornaClassesMaes($obj)); |
|
200 | - $i++) { |
|
199 | + $i < count(self::retornaClassesMaes($obj)); |
|
200 | + $i++) { |
|
201 | 201 | $atributos[$i] = array(self::retornaClassesMaes($obj)[$i] => |
202 | 202 | self::pegaAtributosDoObjeto(self::retornaClassesMaes($obj)[$i])); |
203 | 203 | } |
@@ -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 | } |