Completed
Push — master ( f743f0...1a0e57 )
by Dmitry
01:59
created
src/Provider31/Response.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,9 @@
 block discarded – undo
136 136
      */
137 137
     protected function sign($options)
138 138
     {
139
-        if (isset($this->Sign)) return;
139
+        if (isset($this->Sign)) {
140
+                return;
141
+        }
140 142
 
141 143
         if (isset($options['UseSign']) && ($options['UseSign'] === true))
142 144
         {
Please login to merge, or discard this patch.
src/Sign.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
         if ($result == -1)
61 61
         {
62 62
             throw new Exception\Sign('Error verify signature of request!', -96);
63
-        }
64
-        elseif ($result == 0)
63
+        } elseif ($result == 0)
65 64
         {
66 65
             throw new Exception\Sign('Signature of request is incorrect!', -95);
67 66
         }
@@ -88,8 +87,7 @@  discard block
 block discarded – undo
88 87
             );
89 88
 
90 89
             return strtoupper(bin2hex($sign));
91
-        }
92
-        catch (\Exception $e)
90
+        } catch (\Exception $e)
93 91
         {
94 92
             return null;
95 93
         }
Please login to merge, or discard this patch.