Passed
Push — master ( 1a7cd7...8d835f )
by Wagner
02:03 queued 11s
created
src/Me.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      */
87 87
     public function token(): Me
88 88
     {
89
-        if( !empty($this->response()->token) ){
89
+        if (!empty($this->response()->token)) {
90 90
             $this->token = $this->response()->token;
91 91
             $this->headers = array("Authorization"=>"Bearer {$this->response()->token}");
92 92
         }
Please login to merge, or discard this patch.
example/user.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
  */
35 35
  echo "<h1>Login</h1>";
36 36
 
37
- $user = $me->auth("[email protected]","123456789");
37
+ $user = $me->auth("[email protected]", "123456789");
38 38
  var_dump($user->response());
39 39
  var_dump($user->error());
40 40
 
Please login to merge, or discard this patch.
example/certificate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
  */
29 29
 echo "<h1>CREATE</h1>";
30 30
 
31
- $certificate = ($_FILES["certificate"] ?? null);
31
+ $certificate = ($_FILES[ "certificate" ] ?? null);
32 32
  $password = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRIPPED);
33 33
  if (!empty($certificate) && !empty($password)) {    
34 34
     $create = $certificates->create([
35
-        "certificate" => $certificate['tmp_name'],
36
-        "password" => $password['password'],
35
+        "certificate" => $certificate[ 'tmp_name' ],
36
+        "password" => $password[ 'password' ],
37 37
     ]);
38 38
     
39 39
     if ($create->error()) {
Please login to merge, or discard this patch.
src/ApiNfeFasa.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
      * ApiNfeFasa constructor.
31 31
      * @param string $apiUrl
32 32
      */
33
-    public function __construct(string $apiUrl,?string $token = null)
33
+    public function __construct(string $apiUrl, ?string $token = null)
34 34
     {
35 35
         $this->apiUrl = $apiUrl;
36
-        $headers = empty($token)?null:array("Authorization"=>"Bearer {$token}");
36
+        $headers = empty($token) ?null:array("Authorization"=>"Bearer {$token}");
37 37
         $this->headers($headers);
38 38
 
39 39
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         }
85 85
 
86 86
         foreach ($headers as $key => $header) {
87
-            $this->headers[] = "{$key}: {$header}";
87
+            $this->headers[ ] = "{$key}: {$header}";
88 88
         }
89 89
     }
90 90
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $curl = curl_init();
97 97
         
98
-        if (empty($this->fields["files"])) {
98
+        if (empty($this->fields[ "files" ])) {
99 99
             $this->fields = (!empty($this->fields) ? http_build_query($this->fields) : null);
100 100
         }
101 101
 
Please login to merge, or discard this patch.
src/Certificates.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
             "/companies/{$this->company}/certificates",
52 52
             array(
53 53
                 "files" => true,
54
-                "certificate" => curl_file_create($files["certificate"],"application/x-pkcs12"),
55
-                "password" => $files["password"]
54
+                "certificate" => curl_file_create($files[ "certificate" ], "application/x-pkcs12"),
55
+                "password" => $files[ "password" ]
56 56
             )
57 57
         );
58 58
 
Please login to merge, or discard this patch.