Completed
Push — devel ( cac778...cbc34f )
by Philippe
26s queued 13s
created
src/services/redis/JwtService.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 use sweelix\oauth2\server\interfaces\JwtServiceInterface;
21 21
 use yii\db\Exception as DatabaseException;
22 22
 use Yii;
23
-use Exception;
24 23
 
25 24
 /**
26 25
  * This is the jwt service for redis
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     protected function getJwtKey($jid)
47 47
     {
48
-        return $this->namespace . ':' . $jid;
48
+        return $this->namespace.':'.$jid;
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
src/traits/redis/TypeConverter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         if ((isset($this->attributesDefinitions[$key]) === true)
57 57
             && (in_array($this->attributesDefinitions[$key], $bypassTypes) === false)
58 58
         ) {
59
-            switch($this->attributesDefinitions[$key]) {
59
+            switch ($this->attributesDefinitions[$key]) {
60 60
                 case 'bool':
61 61
                 case 'boolean':
62 62
                     $value = $value ? 1 : 0;
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
             switch ($this->attributesDefinitions[$key]) {
96 96
                 case 'bool':
97 97
                 case 'boolean':
98
-                    $value = (bool) $value;
98
+                    $value = (bool)$value;
99 99
                     break;
100 100
                 case 'int':
101 101
                 case 'integer':
102
-                    $value = (int) $value;
102
+                    $value = (int)$value;
103 103
                     break;
104 104
                 case 'array':
105 105
                     try {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 case 'real':
112 112
                 case 'double':
113 113
                 case 'float':
114
-                    $value = (float) $value;
114
+                    $value = (float)$value;
115 115
                     break;
116 116
             }
117 117
         }
Please login to merge, or discard this patch.
src/services/redis/BaseService.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     protected function encodeAttributes(Array $attributes)
79 79
     {
80 80
         $data = Json::encode($attributes);
81
-        $etag = '"' . rtrim(base64_encode(sha1($data, true)), '=') . '"';
81
+        $etag = '"'.rtrim(base64_encode(sha1($data, true)), '=').'"';
82 82
         return $etag;
83 83
     }
84 84
 
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,14 +15,12 @@
 block discarded – undo
15 15
 namespace sweelix\oauth2\server\services\redis;
16 16
 
17 17
 use sweelix\oauth2\server\interfaces\BaseModelInterface;
18
-use sweelix\oauth2\server\models\BaseModel;
19 18
 use sweelix\oauth2\server\Module;
20 19
 use sweelix\oauth2\server\traits\redis\TypeConverter;
21 20
 use yii\base\BaseObject;
22 21
 use yii\di\Instance;
23 22
 use yii\helpers\Json;
24 23
 use yii\redis\Connection;
25
-use Yii;
26 24
 
27 25
 /**
28 26
  * This is the base service for redis
Please login to merge, or discard this patch.
src/services/redis/ScopeService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     protected function getScopeKey($sid)
49 49
     {
50
-        return $this->namespace . ':' . $sid;
50
+        return $this->namespace.':'.$sid;
51 51
     }
52 52
 
53 53
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected function getScopeListKey()
58 58
     {
59
-        return $this->namespace . ':keys';
59
+        return $this->namespace.':keys';
60 60
     }
61 61
 
62 62
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function getScopeDefaultListKey()
67 67
     {
68
-        return $this->namespace . ':defaultkeys';
68
+        return $this->namespace.':defaultkeys';
69 69
     }
70 70
 
71 71
     /**
Please login to merge, or discard this patch.
src/services/redis/CypherKeyService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     protected function getCypherKeyKey($aid)
46 46
     {
47
-        return $this->namespace . ':' . $aid;
47
+        return $this->namespace.':'.$aid;
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
src/services/redis/AuthCodeService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     protected function getAuthCodeKey($aid)
46 46
     {
47
-        return $this->namespace . ':' . $aid;
47
+        return $this->namespace.':'.$aid;
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
src/behaviors/EmptyArrayBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     public function updateAttribute()
53 53
     {
54
-        foreach($this->attributes as $attribute) {
54
+        foreach ($this->attributes as $attribute) {
55 55
             if ($this->owner->{$attribute} === null) {
56 56
                 $this->owner->{$attribute} = [];
57 57
             }
Please login to merge, or discard this patch.
src/views/authorize/error.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
     <div class="row">
33 33
         <div class="col-md-push-3 col-md-6 col-sm-push-2 col-sm-8 col-xs-12 white-panel">
34 34
             <div class="alert" role="alert">
35
-                <h4 class="alert-heading"><?php echo ($type ? : 'Unkown error'); ?></h4>
36
-                <p><?php echo ($description ? : 'Please check your request'); ?></p>
35
+                <h4 class="alert-heading"><?php echo ($type ?: 'Unkown error'); ?></h4>
36
+                <p><?php echo ($description ?: 'Please check your request'); ?></p>
37 37
             </div>
38 38
         </div>
39 39
     </div>
Please login to merge, or discard this patch.
src/views/layouts/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     </head>
28 28
     <body>
29 29
         <?php $this->beginBody(); ?>
30
-            <?php echo $content;?>
30
+            <?php echo $content; ?>
31 31
         <?php $this->endBody(); ?>
32 32
     </body>
33 33
 
Please login to merge, or discard this patch.