Completed
Push — master ( 960746...442c5a )
by Andrii
11:23
created
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.
src/components/SettingsStorage.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 
79 79
     /**
80 80
      * Performs request to the API.
81
-     * @param string $key
82
-     * @param array $value
81
+     * @param string $action
83 82
      * @return array
84 83
      */
85 84
     private function perform($action, $data)
Please login to merge, or discard this patch.
src/widgets/IndexPage.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use hipanel\grid\RepresentationCollectionFinder;
14 14
 use hipanel\helpers\ArrayHelper;
15
-use hipanel\helpers\StringHelper;
16 15
 use hipanel\models\IndexPageUiOptions;
17 16
 use hiqdev\higrid\representations\RepresentationCollectionInterface;
18 17
 use hiqdev\yii2\export\widgets\IndexPageExportLinks;
Please login to merge, or discard this patch.
tests/_support/_generated/AcceptanceTesterActions.php 1 patch
Doc Comments   +17 added lines, -14 removed lines patch added patch discarded remove patch
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
      * ```
601 601
      *
602 602
      * @param $link
603
-     * @param $context
603
+     * @param string $context
604 604
      * @see \Codeception\Module\WebDriver::click()
605 605
      */
606 606
     public function click($link, $context = null) {
@@ -1403,8 +1403,8 @@  discard block
 block discarded – undo
1403 1403
      * ?>
1404 1404
      * ```
1405 1405
      *
1406
-     * @param $select
1407
-     * @param $option
1406
+     * @param string $select
1407
+     * @param string $option
1408 1408
      * @see \Codeception\Module\WebDriver::selectOption()
1409 1409
      */
1410 1410
     public function selectOption($select, $option) {
@@ -1476,8 +1476,8 @@  discard block
 block discarded – undo
1476 1476
      * ?>
1477 1477
      * ```
1478 1478
      *
1479
-     * @param $field
1480
-     * @param $value
1479
+     * @param string $field
1480
+     * @param string $value
1481 1481
      * @see \Codeception\Module\WebDriver::fillField()
1482 1482
      */
1483 1483
     public function fillField($field, $value) {
@@ -1562,10 +1562,10 @@  discard block
 block discarded – undo
1562 1562
      * ```
1563 1563
      *
1564 1564
      *
1565
-     * @param $cssOrXpath
1566
-     * @param $attribute
1565
+     * @param string $cssOrXpath
1566
+     * @param string $attribute
1567 1567
      *
1568
-     * @return mixed
1568
+     * @return string
1569 1569
      * @see \Codeception\Module\WebDriver::grabAttributeFrom()
1570 1570
      */
1571 1571
     public function grabAttributeFrom($cssOrXpath, $attribute) {
@@ -1620,7 +1620,7 @@  discard block
 block discarded – undo
1620 1620
      * ?>
1621 1621
      * ```
1622 1622
      *
1623
-     * @param $cssOrXpath
1623
+     * @param string $cssOrXpath
1624 1624
      * @param $attribute
1625 1625
      * @return string[]
1626 1626
      * @see \Codeception\Module\WebDriver::grabMultiple()
@@ -1675,7 +1675,7 @@  discard block
 block discarded – undo
1675 1675
      * ?>
1676 1676
      * ```
1677 1677
      *
1678
-     * @param $selector
1678
+     * @param string $selector
1679 1679
      * @param array $attributes
1680 1680
      * @return
1681 1681
      * @see \Codeception\Module\WebDriver::seeElement()
@@ -2355,7 +2355,7 @@  discard block
 block discarded – undo
2355 2355
      * ?>
2356 2356
      * ```
2357 2357
      *
2358
-     * @param $element
2358
+     * @param string $element
2359 2359
      * @param int $timeout seconds
2360 2360
      * @throws \Exception
2361 2361
      * @see \Codeception\Module\WebDriver::waitForElement()
@@ -2400,7 +2400,7 @@  discard block
 block discarded – undo
2400 2400
      * ?>
2401 2401
      * ```
2402 2402
      *
2403
-     * @param $element
2403
+     * @param string $element
2404 2404
      * @param int $timeout seconds
2405 2405
      * @throws \Exception
2406 2406
      * @see \Codeception\Module\WebDriver::waitForElementNotVisible()
@@ -2465,7 +2465,7 @@  discard block
 block discarded – undo
2465 2465
      *
2466 2466
      * Wait for $timeout seconds.
2467 2467
      *
2468
-     * @param int|float $timeout secs
2468
+     * @param integer $timeout secs
2469 2469
      * @throws \Codeception\Exception\TestRuntimeException
2470 2470
      * @see \Codeception\Module\WebDriver::wait()
2471 2471
      */
@@ -2811,7 +2811,7 @@  discard block
 block discarded – undo
2811 2811
      * ?>
2812 2812
      * ```
2813 2813
      *
2814
-     * @param $element
2814
+     * @param string $element
2815 2815
      * @param $char string|array Can be char or array with modifier. You can provide several chars.
2816 2816
      * @throws \Codeception\Exception\ElementNotFound
2817 2817
      * @see \Codeception\Module\WebDriver::pressKey()
@@ -3136,6 +3136,7 @@  discard block
 block discarded – undo
3136 3136
      *
3137 3137
      *
3138 3138
      * @see \hipanel\tests\_support\Helper\CredentialsProvider::needPage()
3139
+     * @param string $url
3139 3140
      */
3140 3141
     public function needPage($url) {
3141 3142
         return $this->getScenario()->runStep(new \Codeception\Step\Action('needPage', func_get_args()));
@@ -3147,6 +3148,7 @@  discard block
 block discarded – undo
3147 3148
      *
3148 3149
      *
3149 3150
      * @see \hipanel\tests\_support\Helper\CredentialsProvider::storeSession()
3151
+     * @param string $name
3150 3152
      */
3151 3153
     public function storeSession($name) {
3152 3154
         return $this->getScenario()->runStep(new \Codeception\Step\Action('storeSession', func_get_args()));
@@ -3158,6 +3160,7 @@  discard block
 block discarded – undo
3158 3160
      *
3159 3161
      *
3160 3162
      * @see \hipanel\tests\_support\Helper\CredentialsProvider::retrieveSession()
3163
+     * @param string $name
3161 3164
      */
3162 3165
     public function retrieveSession($name) {
3163 3166
         return $this->getScenario()->runStep(new \Codeception\Step\Action('retrieveSession', func_get_args()));
Please login to merge, or discard this patch.
tests/_support/Step/Acceptance/Admin.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace hipanel\tests\_support\Step\Acceptance;
4 4
 
5
-use hipanel\tests\_support\Page\Login;
6
-
7 5
 class Admin extends Client
8 6
 {
9 7
 }
Please login to merge, or discard this patch.