Passed
Push — master ( dea9c6...b5b0f8 )
by Arthur
02:41
created
src/Extension/BaseJwt.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
      */
30 30
     public function handle($request, Closure $next)
31 31
     {
32
-        if(ConfigHelper::getNestedParam(ConfigInterface::JWT, ConfigInterface::ENABLED) === true) {
33
-            if(empty($request->jwt)) {
32
+        if (ConfigHelper::getNestedParam(ConfigInterface::JWT, ConfigInterface::ENABLED) === true) {
33
+            if (empty($request->jwt)) {
34 34
                 die('JWT token required.');
35 35
             }
36 36
             $token = (new Parser())->parse((string)$request->jwt);
37
-            if(Jwt::verify($token, $token->getHeader('jti')) === false) {
37
+            if (Jwt::verify($token, $token->getHeader('jti')) === false) {
38 38
                 header('HTTP/1.1 403 Forbidden');
39 39
                 die('Access forbidden.');
40 40
             }
Please login to merge, or discard this patch.
src/Extension/CustomSql.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  */
12 12
 class CustomSql
13 13
 {
14
-    private $entity    = [];
14
+    private $entity = [];
15 15
     private $isEnabled;
16 16
 
17 17
     /**
Please login to merge, or discard this patch.
src/Extension/BitMask.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  */
12 12
 class BitMask
13 13
 {
14
-    private $entity    = [];
14
+    private $entity = [];
15 15
     private $field;
16 16
     private $isEnabled;
17 17
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function getFlags()
50 50
     {
51
-        if(empty($this->entity[$this->field][ConfigInterface::FLAGS])) {
51
+        if (empty($this->entity[$this->field][ConfigInterface::FLAGS])) {
52 52
             throw new AttributesException(ErrorsInterface::JSON_API_ERRORS[ErrorsInterface::HTTP_CODE_FSM_FLAGS], ErrorsInterface::HTTP_CODE_FSM_FLAGS);
53 53
         }
54 54
         return $this->entity[$this->field][ConfigInterface::FLAGS];
Please login to merge, or discard this patch.