Completed
Push — master ( fb9b26...18d354 )
by zacksleo
07:35
created
src/migrations/m160501_075311_add_oauth2_server.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -5,6 +5,9 @@  discard block
 block discarded – undo
5 5
 class m160501_075311_add_oauth2_server extends \yii\db\Migration
6 6
 {
7 7
 
8
+    /**
9
+     * @return string|null
10
+     */
8 11
     public function mysql($yes, $no = '')
9 12
     {
10 13
         return $this->db->driverName === 'mysql' ? $yes : $no;
@@ -15,6 +18,13 @@  discard block
 block discarded – undo
15 18
         return 'PRIMARY KEY (' . $this->db->getQueryBuilder()->buildColumns($columns) . ')';
16 19
     }
17 20
 
21
+    /**
22
+     * @param string $columns
23
+     * @param string $refTable
24
+     * @param string $refColumns
25
+     * @param string $onDelete
26
+     * @param string $onUpdate
27
+     */
18 28
     public function foreignKey($columns, $refTable, $refColumns, $onDelete = null, $onUpdate = null)
19 29
     {
20 30
         $builder = $this->db->getQueryBuilder();
Please login to merge, or discard this patch.
src/api/filters/ErrorToExceptionFilter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     /**
22 22
      * @param ActionEvent $event
23
-     * @return boolean
23
+     * @return boolean|null
24 24
      * @throws HttpException when the request method is not allowed.
25 25
      */
26 26
     public function afterAction($event)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace zacksleo\yii2\oauth2\api\filters;
4 4
 
5
-use Yii;
6 5
 use yii\base\Controller;
7 6
 use filsh\yii2\oauth2server\Module;
8 7
 use filsh\yii2\oauth2server\exceptions\HttpException;
Please login to merge, or discard this patch.
src/backend/controllers/AppController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     /**
43 43
      * Lists all App models.
44
-     * @return mixed
44
+     * @return string
45 45
      */
46 46
     public function actionIndex()
47 47
     {
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * Displays a single App model.
59 59
      * @param integer $id
60
-     * @return mixed
60
+     * @return string
61 61
      */
62 62
     public function actionView($id)
63 63
     {
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      * Deletes an existing App model.
108 108
      * If deletion is successful, the browser will be redirected to the 'index' page.
109 109
      * @param integer $id
110
-     * @return mixed
110
+     * @return \yii\web\Response
111 111
      */
112 112
     public function actionDelete($id)
113 113
     {
Please login to merge, or discard this patch.
src/common/behaviors/TokenBehavior.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace zacksleo\yii2\oauth2\common\behaviors;
4 4
 
5 5
 use zacksleo\yii2\oauth2\common\helpers\Predis;
6
-use yii;
7 6
 use yii\base\Behavior;
8 7
 use yii\web\Controller;
9 8
 use zacksleo\yii2\oauth2\common\models\storage\AccessToken;
Please login to merge, or discard this patch.
src/api/controllers/TokenController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use zacksleo\yii2\oauth2\common\behaviors\TokenBehavior;
6 6
 use zacksleo\yii2\oauth2\api\components\RestController;
7
-use yii;
8 7
 use yii\helpers\ArrayHelper;
9 8
 
10 9
 class TokenController extends RestController
Please login to merge, or discard this patch.
src/common/models/OauthClients.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace zacksleo\yii2\oauth2\common\models;
4 4
 
5
-use yii;
6 5
 use zacksleo\yii2\oauth2\common\behaviors\OauthClientsDeleteBehavior;
7 6
 use Ramsey\Uuid\Uuid;
8 7
 use filsh\yii2\oauth2server\models\OauthClients as Clients;
Please login to merge, or discard this patch.