Completed
Push — master ( 801d7c...b01e4d )
by Basil
05:34
created
modules/cmsadmin/models/NavItem.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * 
184 184
      * @todo fix me above!
185 185
      *
186
-     * @param unknown $moduleName
186
+     * @param string $moduleName
187 187
      */
188 188
     public static function fromModule($moduleName)
189 189
     {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     /**
236 236
      * @todo use AR or queryCommand? NavItem::find()->leftJoin('cms_nav_item_module', 'nav_item_type_id=cms_nav_item_module.id')->where(['nav_item_type' => 2, 'cms_nav_item_module.module_name' => $moduleName])->asArray()->one()
237 237
      *
238
-     * @param unknown $moduleName
238
+     * @param string $moduleName
239 239
      *
240 240
      * @return unknown
241 241
      */
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      *
267 267
      * Copy content of type cms_nav_item_page to a target nav item. This will create a new entry in cms_nav_item_page and for every used block a new entry in cms_nav_item_page_block_item
268 268
      *
269
-     * @param $targetNavItem nav item object
269
+     * @param \yii\db\ActiveRecord $targetNavItem nav item object
270 270
      * @return bool
271 271
      */
272 272
     public function copyPageItem($targetNavItem)
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
      *
321 321
      * Copy content of type cms_nav_item_module to a target nav item. This will create a new entry in cms_nav_item_module.
322 322
      *
323
-     * @param $targetNavItem
323
+     * @param \yii\db\ActiveRecord $targetNavItem
324 324
      * @return bool
325 325
      */
326 326
     public function copyModuleItem($targetNavItem)
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
      *
349 349
      * Copy content of type cms_nav_item_redirect to a target nav item. This will create a new entry in cms_nav_item_redirect.
350 350
      *
351
-     * @param $targetNavItem
351
+     * @param \yii\db\ActiveRecord $targetNavItem
352 352
      * @return bool
353 353
      */
354 354
     public function copyRedirectItem($targetNavItem)
Please login to merge, or discard this patch.
modules/cmsadmin/models/NavItemModule.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 
21 21
     private $_module = null;
22 22
 
23
+    /**
24
+     * @return \luya\base\Module
25
+     */
23 26
     private function getModule()
24 27
     {
25 28
         if ($this->_module !== null) {
Please login to merge, or discard this patch.
modules/cmsadmin/models/NavItemPage.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
         throw new Exception("Could not find the requested cms layout id '".$this->layout_id."' for nav item page id '". $this->id . "'. Make sure your page does not have an old inactive/deleted cms layout selected.");
80 80
     }
81 81
     
82
+    /**
83
+     * @param string $key
84
+     */
82 85
     private function setHasCache($key, $value, $expirationTime)
83 86
     {
84 87
         if (Yii::$app->has('cache')) {
@@ -86,6 +89,9 @@  discard block
 block discarded – undo
86 89
         }
87 90
     }
88 91
     
92
+    /**
93
+     * @param string $key
94
+     */
89 95
     private function getHasCache($key)
90 96
     {
91 97
         if (Yii::$app->has('cache')) {
@@ -98,6 +104,9 @@  discard block
 block discarded – undo
98 104
         return false;
99 105
     }
100 106
 
107
+    /**
108
+     * @param integer $prevId
109
+     */
101 110
     public function renderPlaceholder($navItemPageId, $placeholderVar, $prevId)
102 111
     {
103 112
         $string = '';
Please login to merge, or discard this patch.
modules/crawler/classes/CrawlContainer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
         'filtered' => [],
32 32
     ];
33 33
     
34
+    /**
35
+     * @param string $cat
36
+     */
34 37
     public function addLog($cat, $message)
35 38
     {
36 39
         $this->log[$cat][] = $message;
Please login to merge, or discard this patch.
modules/errorapi/controllers/DefaultController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -46,6 +46,9 @@
 block discarded – undo
46 46
         return $model->getErrors();
47 47
     }
48 48
 
49
+    /**
50
+     * @param string $message
51
+     */
49 52
     public function slack($message, $room)
50 53
     {
51 54
         $ch = curl_init('https://slack.com/api/chat.postMessage');
Please login to merge, or discard this patch.
modules/admin/Module.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -46,6 +46,9 @@
 block discarded – undo
46 46
         return $model->getErrors();
47 47
     }
48 48
 
49
+    /**
50
+     * @param string $message
51
+     */
49 52
     public function slack($message, $room)
50 53
     {
51 54
         $ch = curl_init('https://slack.com/api/chat.postMessage');
Please login to merge, or discard this patch.
modules/cmsadmin/Module.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -46,6 +46,9 @@
 block discarded – undo
46 46
         return $model->getErrors();
47 47
     }
48 48
 
49
+    /**
50
+     * @param string $message
51
+     */
49 52
     public function slack($message, $room)
50 53
     {
51 54
         $ch = curl_init('https://slack.com/api/chat.postMessage');
Please login to merge, or discard this patch.