Completed
Branch master (55a138)
by Michael
03:21
created
blocks/minical.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -457,12 +457,12 @@
 block discarded – undo
457 457
 /**
458 458
  * @param array      $event
459 459
  * @param array      $eventsArray
460
- * @param Time $timeHandler
461
- * @param            $startMonth
462
- * @param            $endMonth
460
+ * @param Extcal\Time $timeHandler
461
+ * @param            integer $startMonth
462
+ * @param            integer $endMonth
463 463
  * @param            $cats
464 464
  *
465
- * @return bool
465
+ * @return false|null
466 466
  */
467 467
 function bExtcalMinicalAddEventToArray($event, &$eventsArray, $timeHandler, $startMonth, $endMonth, $cats)
468 468
 {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
         new Calendar_Day(
169 169
             date('Y', xoops_getUserTimestamp(time(), $timeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))),
170 170
             date('n', xoops_getUserTimestamp(time(), $timeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))),
171
-                         date('j', xoops_getUserTimestamp(time(), $timeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))
171
+                            date('j', xoops_getUserTimestamp(time(), $timeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))
172 172
         ),
173 173
     ];
174 174
 
Please login to merge, or discard this patch.
class/EventHandler.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
      * @param     $cat
578 578
      * @param int $nbDays
579 579
      *
580
-     * @return CriteriaCompo
580
+     * @return null|\CriteriaElement
581 581
      */
582 582
     public function _getEventWeekCriteria($day, $month, $year, $cat=0, $nbDays = 7)
583 583
     {
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
      * @param $year
600 600
      * @param $cat
601 601
      *
602
-     * @return CriteriaCompo
602
+     * @return null|\CriteriaElement
603 603
      */
604 604
     public function _getEventMonthCriteria($month, $year, $cat=0)
605 605
     {
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
      * @param     $year
621 621
      * @param int $cat
622 622
      *
623
-     * @return CriteriaCompo
623
+     * @return null|\CriteriaElement
624 624
      */
625 625
     public function _getEventYearCriteria($year, $cat = 0)
626 626
     {
@@ -890,7 +890,7 @@  discard block
 block discarded – undo
890 890
 
891 891
     /**
892 892
      * @param $criteria
893
-     * @param $cats
893
+     * @param integer $cats
894 894
      */
895 895
     public function _addCatSelectCriteria(&$criteria, $cats=null)
896 896
     {
@@ -1693,7 +1693,7 @@  discard block
 block discarded – undo
1693 1693
 
1694 1694
     /**
1695 1695
      * @param $month
1696
-     * @param $year
1696
+     * @param string $year
1697 1697
      * @param $dayCode
1698 1698
      *
1699 1699
      * @return int
Please login to merge, or discard this patch.
class/ExtcalPersistableObjectHandler.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
 
513 513
     /**
514 514
      * @param        $objects
515
-     * @param array  $externalKeys
515
+     * @param string[]  $externalKeys
516 516
      * @param string $format
517 517
      *
518 518
      * @return array
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
     }
620 620
 
621 621
     /**
622
-     * @param null|CriteriaElement $criteria
622
+     * @param null|\CriteriaElement $criteria
623 623
      * @param string               $sum
624 624
      *
625 625
      * @return array|string
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
     }
661 661
 
662 662
     /**
663
-     * @param null|CriteriaElement $criteria
663
+     * @param null|\CriteriaElement $criteria
664 664
      * @param string               $max
665 665
      *
666 666
      * @return array|string
Please login to merge, or discard this patch.
class/Form/FormFileCheckBox.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 class FormFileCheckBox extends \XoopsFormCheckBox
24 24
 {
25 25
     /**
26
-     * @param      $caption
27
-     * @param      $name
26
+     * @param      string $caption
27
+     * @param      string $name
28 28
      * @param null $value
29 29
      *
30 30
      * @return FormFileCheckBox
Please login to merge, or discard this patch.
class/Form/FormRRuleCheckBox.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
 class FormRRuleCheckBox extends \XoopsFormCheckBox
25 25
 {
26 26
     /**
27
-     * @param      $caption
28
-     * @param      $name
29
-     * @param null $value
27
+     * @param      string $caption
28
+     * @param      string $name
29
+     * @param string $value
30 30
      */
31 31
     public function __construct($caption, $name, $value = null)
32 32
     {
Please login to merge, or discard this patch.
blocks/random_events.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 {
63 63
     global $xoopsUser;
64 64
 
65
-     $catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
65
+        $catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
66 66
 
67 67
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
68 68
 
Please login to merge, or discard this patch.
include/functions0.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 {
112 112
     global $xoopsUser;
113 113
     // Category selectbox
114
-     $catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
114
+        $catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
115 115
 
116 116
     $catsList  = $catHandler->getAllCat($xoopsUser);
117 117
     $catSelect = new \XoopsFormSelect('', $name, $cat);
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     // Category selectbox
140 140
     //<option style="background-color:#00FFFF;">VARCHAR</option>
141 141
 
142
-     $catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
142
+        $catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
143 143
     $catsList   = $catHandler->getAllCat($xoopsUser);
144 144
 
145 145
     $t = [];
@@ -149,11 +149,11 @@  discard block
 block discarded – undo
149 149
         $cat_color = $catList->getVar('cat_color');
150 150
         $checked   = in_array($cat_id, $cat) ? 'checked' : '';
151 151
         $cat       = ''
152
-                     . "<div style='float:left; margin-left:5px;'>"
153
-                     . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
154
-                     . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"
155
-                     . " {$name}"
156
-                     . '</div>';
152
+                        . "<div style='float:left; margin-left:5px;'>"
153
+                        . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
154
+                        . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"
155
+                        . " {$name}"
156
+                        . '</div>';
157 157
 
158 158
         $t[] = $cat;
159 159
     }
Please login to merge, or discard this patch.
include/agenda_fnc.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -435,7 +435,7 @@
 block discarded – undo
435 435
 
436 436
     $user = isset($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser'] : null;
437 437
     /** @var CategoryHandler $catHandler */
438
-     $catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
438
+        $catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
439 439
     if ($catHandler->haveSubmitRight($user)) {
440 440
         $view = _EXTCAL_NAV_NEW_EVENT;
441 441
         if (in_array($view, $visibleTabs)) {
Please login to merge, or discard this patch.
class/Utility.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         // Category selectbox
153 153
         //<option style="background-color:#00FFFF;">VARCHAR</option>
154 154
 
155
-         $catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
155
+            $catHandler   = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT);
156 156
         $catsList   = $catHandler->getAllCat($xoopsUser);
157 157
 
158 158
         $t = [];
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
             $cat_color = $catList->getVar('cat_color');
163 163
             $checked   = in_array($cat_id, $cat) ? 'checked' : '';
164 164
             $cat       = ''
165
-                         . "<div style='float:left; margin-left:5px;'>"
166
-                         . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
167
-                         . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"
168
-                         . " {$name}"
169
-                         . '</div>';
165
+                            . "<div style='float:left; margin-left:5px;'>"
166
+                            . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
167
+                            . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"
168
+                            . " {$name}"
169
+                            . '</div>';
170 170
 
171 171
             $t[] = $cat;
172 172
         }
Please login to merge, or discard this patch.