@@ -34,7 +34,7 @@ |
||
34 | 34 | * |
35 | 35 | * @param $object |
36 | 36 | * @param $nomeAtributo |
37 | - * @return bool|string |
|
37 | + * @return string|false |
|
38 | 38 | * @throws Exception |
39 | 39 | */ |
40 | 40 | public function pegaNomeAtributoEspecifico($object, $nomeAtributo) |
@@ -159,7 +159,7 @@ |
||
159 | 159 | |
160 | 160 | $parents = []; |
161 | 161 | $parent = ""; |
162 | - if ( self::verificaSeEClasseFilha($object) ) { |
|
162 | + if (self::verificaSeEClasseFilha($object)) { |
|
163 | 163 | while ($class->getParentClass()) { |
164 | 164 | $parents[] = $class->getParentClass()->getName(); |
165 | 165 | $class = $parent; |
@@ -100,7 +100,7 @@ |
||
100 | 100 | * @param string $string |
101 | 101 | * @param string $stringBusca |
102 | 102 | * @param string $substituicao |
103 | - * @return mixed |
|
103 | + * @return string |
|
104 | 104 | */ |
105 | 105 | public function substituiOcorrenciasDeUmaString($string, $stringBusca, $substituicao) |
106 | 106 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function read() |
38 | 38 | { |
39 | - $content = file_get_contents($this->file); |
|
39 | + $content = file_get_contents($this->file); |
|
40 | 40 | |
41 | 41 | $read = json_decode($content); |
42 | 42 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | final public static function converterDataParaBrasileira($data) |
22 | 22 | { |
23 | - return date( 'd-m-Y', strtotime($data) ); |
|
23 | + return date('d-m-Y', strtotime($data)); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -34,6 +34,6 @@ discard block |
||
34 | 34 | setlocale(LC_ALL, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese'); |
35 | 35 | date_default_timezone_set('America/Sao_Paulo'); |
36 | 36 | |
37 | - return strftime('%A, %d de %B de %Y', strtotime($data) ); |
|
37 | + return strftime('%A, %d de %B de %Y', strtotime($data)); |
|
38 | 38 | } |
39 | 39 | } |
40 | 40 | \ No newline at end of file |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $pattern = '/@+_+[A-z]\w+=\w+/'; |
29 | 29 | |
30 | 30 | $fullComments = $funReflec->retornaComentariosAtributos($object); |
31 | - $attribuites = $funReflec->pegaAtributosDoObjeto($object); |
|
31 | + $attribuites = $funReflec->pegaAtributosDoObjeto($object); |
|
32 | 32 | |
33 | 33 | $annotationsList = []; |
34 | 34 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $output |
43 | 43 | ); |
44 | 44 | |
45 | - $annotationsList[ $attribuites[$iterator] ] = $output[0]; |
|
45 | + $annotationsList[$attribuites[$iterator]] = $output[0]; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | return $annotationsList; |