Completed
Pull Request — master (#4)
by
unknown
02:12
created
util/FuncoesReflections.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
util/FuncoesString.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
util/JsonReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
         
Please login to merge, or discard this patch.
util/FuncoesDatas.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
util/Annotations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.