Completed
Push — development ( 67765c...7029e6 )
by Andrij
18:12
created
application/libraries/lib_category.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
     }
336 336
 
337 337
     /**
338
-     * @return array
338
+     * @return string
339 339
      */
340 340
     public function get_default_lang() {
341 341
         if ($this->db) {
Please login to merge, or discard this patch.
application/modules/admin/categories.php 2 patches
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -225,6 +225,10 @@  discard block
 block discarded – undo
225 225
         }
226 226
     }
227 227
 
228
+    /**
229
+     * @param string $url
230
+     * @param integer $id
231
+     */
228 232
     public function url_exists($url, $id = null) {
229 233
 
230 234
         $segment = end(explode('/', $url));
@@ -321,7 +325,7 @@  discard block
 block discarded – undo
321 325
     }
322 326
 
323 327
     /**
324
-     * @return bool
328
+     * @return false|null
325 329
      */
326 330
     public function create_tpl() {
327 331
         $file = trim($this->input->post('filename'));
@@ -480,7 +484,7 @@  discard block
 block discarded – undo
480 484
      * Show edit category window
481 485
      * @access public
482 486
      * @param int $id
483
-     * @return bool
487
+     * @return null|false
484 488
      */
485 489
     public function edit($id) {
486 490
         $cat = $this->cms_admin->get_category($id);
@@ -680,7 +684,7 @@  discard block
 block discarded – undo
680 684
     /**
681 685
      * @param int $id
682 686
      * @param string $lang
683
-     * @return bool
687
+     * @return null|false
684 688
      */
685 689
     public function translate($id, $lang) {
686 690
         $cat = $this->cms_admin->get_category($id);
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use CMSFactory\Events;
4
-use core\models\Route;
5
-use core\models\RouteQuery;
6 4
 use template_manager\classes\TemplateManager;
7 5
 
8 6
 if (!defined('BASEPATH')) {
Please login to merge, or discard this patch.
application/modules/admin/widgets_manager.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-     * @return bool
93
+     * @return null|false
94 94
      */
95 95
     public function create() {
96 96
         if (!$this->_is_writable()) {
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     /**
272 272
      * @param int $id
273 273
      * @param string $locale
274
-     * @return bool
274
+     * @return false|null
275 275
      */
276 276
     public function update_html_widget($id, $locale) {
277 277
         $locale = $locale ?: MY_Controller::defaultLocale();
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      * @param integer $id
338 338
      * @param bool|FALSE $update_info
339 339
      * @param null|string $locale
340
-     * @return bool
340
+     * @return false|null
341 341
      */
342 342
     public function update_widget($id, $update_info = FALSE, $locale = NULL) {
343 343
         //cp_check_perm('widget_access_settings');
Please login to merge, or discard this patch.
application/modules/cmsemail/models/cmsemail_model.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,6 +116,9 @@  discard block
 block discarded – undo
116 116
         }
117 117
     }
118 118
 
119
+    /**
120
+     * @param string $locale
121
+     */
119 122
     public function getTemplateVariables($template_id, $locale) {
120 123
         $query = $this->db->where('id', $template_id)->where('locale', $locale)->get('mod_email_paterns_i18n');
121 124
         if ($query) {
@@ -393,7 +396,7 @@  discard block
 block discarded – undo
393 396
     /**
394 397
      * Save settings
395 398
      * @param array $data
396
-     * @return bool
399
+     * @return boolean|null
397 400
      */
398 401
     public function setSettings($data) {
399 402
         $settings = $this->getSettings();
Please login to merge, or discard this patch.
application/modules/CMSFactory/PropelBaseModelClass.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     /**
33 33
      * @param MY_Form_validation $validator
34
-     * @return mixed
34
+     * @return MY_Form_validation
35 35
      */
36 36
     public function validateCustomData($validator) {
37 37
         if (!empty($this->entityName)) {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * @param string $entityName
64 64
      * @param int $id
65
-     * @return bool
65
+     * @return null|false
66 66
      */
67 67
     public function collectCustomData($entityName, $id) {
68 68
         $this->entityId = $id;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     /**
84 84
      * @param int $key
85
-     * @return bool
85
+     * @return boolean|null
86 86
      */
87 87
     public function curentPostEntitySave($key) {
88 88
         $entity = CustomFieldsQuery::create()->findPk($key);
Please login to merge, or discard this patch.
application/modules/core/core.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use CMSFactory\DependencyInjection\DependencyInjectionProvider;
4 3
 use CMSFactory\Events;
5 4
 use core\src\CoreFactory;
6 5
 
Please login to merge, or discard this patch.
application/modules/core/models/Base/RouteQuery.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
      *                                   to be used as main alias in the secondary query
500 500
      * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
501 501
      *
502
-     * @return \SCategoryQuery A secondary query class using the current class as primary query
502
+     * @return ModelCriteria A secondary query class using the current class as primary query
503 503
      */
504 504
     public function useSCategoryQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)
505 505
     {
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
      *                                   to be used as main alias in the secondary query
573 573
      * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
574 574
      *
575
-     * @return \SProductsQuery A secondary query class using the current class as primary query
575
+     * @return ModelCriteria A secondary query class using the current class as primary query
576 576
      */
577 577
     public function useSProductsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)
578 578
     {
Please login to merge, or discard this patch.
application/modules/core/models/Map/RouteTableMap.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@
 block discarded – undo
245 245
      * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME
246 246
      *                           TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM
247 247
      *
248
-     * @return mixed The primary key of the row
248
+     * @return integer The primary key of the row
249 249
      */
250 250
     public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
251 251
     {
Please login to merge, or discard this patch.
application/modules/core/models/Route.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 core\models;
4 4
 
5 5
 use core\models\Base\Route as BaseRoute;
6
-use core\src\CoreConfiguration;
7 6
 use core\src\CoreFactory;
8 7
 use Propel\Runtime\ActiveQuery\Criteria;
9 8
 use Propel\Runtime\Collection\ObjectCollection;
Please login to merge, or discard this patch.