Completed
Push — master ( 614fcd...4d4354 )
by Adriano
02:59
created
src/FipeApi/Client.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,8 +38,9 @@  discard block
 block discarded – undo
38 38
         {
39 39
             foreach ($params as $key => $param)
40 40
             {
41
-                if(!in_array($key, array_keys($params)))
42
-                    throw new \Exception(sprintf("Parâmetro %s inválido", $key));
41
+                if(!in_array($key, array_keys($params))) {
42
+                                    throw new \Exception(sprintf("Parâmetro %s inválido", $key));
43
+                }
43 44
             }
44 45
         }
45 46
 
@@ -48,8 +49,9 @@  discard block
 block discarded – undo
48 49
 
49 50
         if(!is_null($params) && is_array($params))
50 51
         {
51
-            foreach ($params as $key => $value)
52
-                putenv(sprintf("%s=%s",$key,$value));
52
+            foreach ($params as $key => $value) {
53
+                            putenv(sprintf("%s=%s",$key,$value));
54
+            }
53 55
         }
54 56
     }
55 57
 
Please login to merge, or discard this patch.
src/FipeApi/AbstractConsultaApi.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         if(is_null($client))
45 45
         {
46 46
             $this->client = new Client();
47
-        }else{
47
+        } else{
48 48
             $this->client = $client;
49 49
         }
50 50
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                 $this->tipo)
63 63
             );
64 64
             return $this->getResponse();
65
-        }catch(\Exception $ex){
65
+        } catch(\Exception $ex){
66 66
             $this->logger->error("Falha ao executar requisição", $ex);
67 67
             throw new \Exception($ex->getMessage());
68 68
         }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                     $fabricante)
84 84
             );
85 85
             return $this->getResponse();
86
-        }catch(\Exception $ex){
86
+        } catch(\Exception $ex){
87 87
             $this->logger->error("Falha ao executar requisição", $ex);
88 88
             throw new \Exception($ex->getMessage());
89 89
         }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                     $veiculo)
107 107
             );
108 108
             return $this->getResponse();
109
-        }catch(\Exception $ex){
109
+        } catch(\Exception $ex){
110 110
             $this->logger->error("Falha ao executar requisição", $ex);
111 111
             throw new \Exception($ex->getMessage());
112 112
         }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                     $fipeCodigo)
124 124
             );
125 125
             return $this->getResponse();
126
-        }catch(\Exception $ex){
126
+        } catch(\Exception $ex){
127 127
             $this->logger->error("Falha ao executar requisição", $ex);
128 128
             throw new \Exception($ex->getMessage());
129 129
         }
Please login to merge, or discard this patch.