Completed
Push — master ( 3291d4...297176 )
by Dmitry
03:06 queued 36s
created
src/models/Ref.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -51,6 +51,10 @@
 block discarded – undo
51 51
         return ArrayHelper::map($models, $from, $to, $group);
52 52
     }
53 53
 
54
+    /**
55
+     * @param string $name
56
+     * @param string $translate
57
+     */
54 58
     public static function findCached($name, $translate = null, $options = [])
55 59
     {
56 60
         if ($translate === null) {
Please login to merge, or discard this patch.
src/widgets/gridLegend/GridLegend.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 
15 15
     /**
16 16
      * @param GridLegendInterface $legendItem
17
-     * @param array $config
18 17
      * @return self
19 18
      */
20 19
     public static function create(GridLegendInterface $legendItem)
Please login to merge, or discard this patch.
src/widgets/obj/ObjLinkWidget.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 namespace hipanel\widgets\obj;
12 12
 
13 13
 use hipanel\models\Obj;
14
-use Yii;
15 14
 use yii\helpers\Html;
16 15
 
17 16
 class ObjLinkWidget extends \yii\base\Widget
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
40 40
         $this->_label = $label;
41 41
     }
42 42
 
43
+    /**
44
+     * @return string
45
+     */
43 46
     public function getLabel()
44 47
     {
45 48
         if ($this->_label === null) {
Please login to merge, or discard this patch.
src/filters/EasyAccessControl.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,13 +62,16 @@  discard block
 block discarded – undo
62 62
      * This method is invoked right before an action is to be executed (after all possible filters.)
63 63
      * You may override this method to do last-minute preparation for the action.
64 64
      * @param Action $action the action to be executed.
65
-     * @return bool whether the action execution should be continued.
65
+     * @return null|boolean whether the action execution should be continued.
66 66
      */
67 67
     public function beforeAction($action)
68 68
     {
69 69
         return $this->checkActions($action) ?: $this->denyAccess($action);
70 70
     }
71 71
 
72
+    /**
73
+     * @param Action $action
74
+     */
72 75
     protected function checkActions($action)
73 76
     {
74 77
         foreach ($this->actions as $names => $permissions) {
@@ -110,8 +113,8 @@  discard block
 block discarded – undo
110 113
      * Denies the access of the user.
111 114
      * The default implementation will redirect the user to the login page if he is a guest;
112 115
      * if the user is already logged, a 403 HTTP exception will be thrown.
113
-     * @param User|false $user the current user or boolean `false` in case of detached User component
114 116
      * @throws ForbiddenHttpException if the user is already logged in or in case of detached User component.
117
+     * @param Action $action
115 118
      */
116 119
     protected function denyAccess($action)
117 120
     {
Please login to merge, or discard this patch.
src/models/User.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@
 block discarded – undo
58 58
         Yii::$app->session->set('identity:' . $this->id, $this);
59 59
     }
60 60
 
61
+    /**
62
+     * @return IdentityInterface|null
63
+     */
61 64
     public static function findOne($id)
62 65
     {
63 66
         if (isset(static::$_users[$id])) {
Please login to merge, or discard this patch.
src/behaviors/UiOptionsBehavior.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 use hipanel\components\UiOptionsStorage;
14 14
 use hipanel\grid\RepresentationCollectionFinder;
15 15
 use hipanel\models\IndexPageUiOptions;
16
-use hiqdev\higrid\representations\RepresentationCollectionInterface;
17 16
 use Yii;
18 17
 use yii\base\Behavior;
19 18
 use yii\helpers\Html;
Please login to merge, or discard this patch.
src/grid/RepresentationCollectionFinder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
24 24
      */
25 25
     private $representationsLocation;
26 26
 
27
+    /**
28
+     * @param string $controller
29
+     */
27 30
     public function __construct($module, $controller, string $representationsLocation)
28 31
     {
29 32
         $this->module = $module;
Please login to merge, or discard this patch.
tests/_support/Page/Login.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -14,6 +14,10 @@
 block discarded – undo
14 14
         $this->tester = $I;
15 15
     }
16 16
 
17
+    /**
18
+     * @param string $login
19
+     * @param string $password
20
+     */
17 21
     public function login($login, $password)
18 22
     {
19 23
         $I = $this->tester;
Please login to merge, or discard this patch.