Passed
Branch master (be24eb)
by Agiel Kurniawan
11:45
created
backend/controllers/WidgetController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     /**
76 76
      * Scan widget directory to get list of all available widgets and list all active widgets.
77 77
      *
78
-     * @return mixed
78
+     * @return string
79 79
      */
80 80
     public function actionIndex()
81 81
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace backend\controllers;
9 9
 
Please login to merge, or discard this patch.
backend/widgets/RenderMenu.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 namespace backend\widgets;
9 9
 
10 10
 use common\models\MenuItem;
11
-use Yii;
12 11
 use yii\base\Widget;
13 12
 use yii\helpers\Html;
14 13
 
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace backend\widgets;
9 9
 
Please login to merge, or discard this patch.
common/components/MediaUploadHandler.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,8 +141,8 @@  discard block
 block discarded – undo
141 141
     /**
142 142
      * Get server var based on id. Return null when it's not exist.
143 143
      *
144
-     * @param $id
145
-     * @return mixed
144
+     * @param string $id
145
+     * @return string
146 146
      */
147 147
     protected function getServerVar($id)
148 148
     {
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      * If the model is not found it will return null.
209 209
      *
210 210
      * @param integer $id
211
-     * @return Media|array
211
+     * @return Media
212 212
      */
213 213
     protected function findMedia($id)
214 214
     {
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
      * The number before fileName extension is replaced by upCountNameCallback.
332 332
      *
333 333
      * @param string $fileName
334
-     * @return mixed
334
+     * @return string
335 335
      * @see upCountNameCallback
336 336
      */
337 337
     protected function upCountName($fileName)
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
     }
411 411
 
412 412
     /**
413
-     * @param $fileName
413
+     * @param string $fileName
414 414
      * @param $version
415 415
      * @param $options
416 416
      * @return bool|\imagine\Image\ManipulatorInterface
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
     }
571 571
 
572 572
     /**
573
-     * @param $pages Pagination
573
+     * @param Pagination $pages Pagination
574 574
      * @return array
575 575
      */
576 576
     protected function getPaging($pages)
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\components;
9 9
 
Please login to merge, or discard this patch.
common/models/ResetPasswordForm.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 
8 8
 namespace common\models;
9 9
 
10
-use Yii;
11 10
 use yii\base\InvalidParamException;
12 11
 use yii\base\Model;
13 12
 
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this patch.
common/models/search/MediaComment.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 namespace common\models\search;
9 9
 
10 10
 use common\models\MediaComment as MediaCommentModel;
11
-use Yii;
12 11
 use yii\base\Model;
13 12
 use yii\data\ActiveDataProvider;
14 13
 
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models\search;
9 9
 
Please login to merge, or discard this 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
         $query = MediaCommentModel::find();
53 53
         $query->innerJoinWith([
54
-            'commentMedia' => function ($query) {
54
+            'commentMedia' => function($query) {
55 55
                 /* @var $query \yii\db\ActiveQuery */
56 56
                 return $query->from(['media' => Media::tableName()]);
57 57
             },
Please login to merge, or discard this patch.
common/models/search/Post.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 namespace common\models\search;
9 9
 
10 10
 use common\models\Post as PostModel;
11
-use Yii;
12 11
 use yii\base\Model;
13 12
 use yii\data\ActiveDataProvider;
14 13
 use yii\helpers\ArrayHelper;
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models\search;
9 9
 
Please login to merge, or discard this patch.
common/models/search/PostComment.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 namespace common\models\search;
9 9
 
10 10
 use common\models\PostComment as PostCommentModel;
11
-use Yii;
12 11
 use yii\base\Model;
13 12
 use yii\data\ActiveDataProvider;
14 13
 
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models\search;
9 9
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $query = PostCommentModel::find();
55 55
 
56 56
         $query->innerJoinWith([
57
-            'commentPost' => function ($query) {
57
+            'commentPost' => function($query) {
58 58
                 /* @var $query \yii\db\ActiveQuery */
59 59
                 return $query->from(['post' => Post::tableName()]);
60 60
             },
Please login to merge, or discard this patch.
common/models/User.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
277 277
     /**
278 278
      * Get array of user status.
279 279
      *
280
-     * @return array
280
+     * @return string[]
281 281
      */
282 282
     public function getStatuses()
283 283
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace common\models;
9 9
 
Please login to merge, or discard this patch.
frontend/controllers/MediaController.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @param integer|null $id Media ID
26 26
      * @param string|null $slug Media slug
27
-     * @return mixed
27
+     * @return string
28 28
      * @throws \yii\web\NotFoundHttpException
29 29
      */
30 30
     public function actionView($id = null, $slug = null)
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      * If the model is not found, a 404 HTTP exception will be thrown.
73 73
      *
74 74
      * @param integer $id Media ID
75
-     * @return Media the loaded model
75
+     * @return string the loaded model
76 76
      * @throws NotFoundHttpException if the model cannot be found
77 77
      */
78 78
     protected function findModel($id)
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * If the model is not found, a 404 HTTP exception will be thrown.
90 90
      *
91 91
      * @param string $slug Media slug
92
-     * @return Media the loaded model
92
+     * @return string the loaded model
93 93
      * @throws NotFoundHttpException if the model cannot be found
94 94
      */
95 95
     protected function findModelBySlug($slug)
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.writesdown.com/
4
- * @copyright Copyright (c) 2015 WritesDown
5
- * @license http://www.writesdown.com/license/
6
- */
3
+     * @link http://www.writesdown.com/
4
+     * @copyright Copyright (c) 2015 WritesDown
5
+     * @license http://www.writesdown.com/license/
6
+     */
7 7
 
8 8
 namespace frontend\controllers;
9 9
 
Please login to merge, or discard this patch.