@@ -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 | /** |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $fullComments = $funReflec->retornaComentariosAtributos($obj); |
30 | 30 | $attributos = $funReflec->pegaAtributosDoObjeto($obj); |
31 | 31 | $ann = []; |
32 | - for($i = 0; $i < count($attributos); $i++){ |
|
32 | + for ($i = 0; $i < count($attributos); $i++) { |
|
33 | 33 | preg_match_all($pattern, |
34 | 34 | $fullComments[$attributos[$i]], |
35 | 35 | $out); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | public function __construct() |
16 | 16 | { |
17 | - spl_autoload_register(function ($class) { |
|
17 | + spl_autoload_register(function($class) { |
|
18 | 18 | include_once(str_replace('\\', '/', $class . '.php')); |
19 | 19 | }); |
20 | 20 | } |