Passed
Push — master ( f62223...75b16c )
by Michael
02:33
created
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
  *
17 17
  * @author       Mage, Mamba
18 18
  **/
19
-require_once __DIR__ . '/admin_header.php';
19
+require_once __DIR__.'/admin_header.php';
20 20
 xoops_cp_header();
21 21
 
22 22
 $adminObject->displayNavigation(basename(__FILE__));
23 23
 $adminObject->displayAbout('[email protected]', false);
24 24
 
25
-require_once __DIR__ . '/admin_footer.php';
25
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
language/english/main.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -1,35 +1,35 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php';
3
+require_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php';
4 4
 define('_MD_CLEAR_CRITERIA', 'clear criteria');
5
-define('_MD_EXTCAL_1_FR', '1st ' . _CAL_FRIDAY);
6
-define('_MD_EXTCAL_1_MO', '1st ' . _CAL_MONDAY);
7
-define('_MD_EXTCAL_1_SA', '1st ' . _CAL_SATURDAY);
8
-define('_MD_EXTCAL_1_SU', '1st ' . _CAL_SUNDAY);
9
-define('_MD_EXTCAL_1_TH', '1st ' . _CAL_THURSDAY);
10
-define('_MD_EXTCAL_1_TU', '1st ' . _CAL_TUESDAY);
11
-define('_MD_EXTCAL_1_WE', '1st ' . _CAL_WEDNESDAY);
12
-define('_MD_EXTCAL_2_FR', '2nd ' . _CAL_FRIDAY);
13
-define('_MD_EXTCAL_2_MO', '2nd ' . _CAL_MONDAY);
14
-define('_MD_EXTCAL_2_SA', '2nd ' . _CAL_SATURDAY);
15
-define('_MD_EXTCAL_2_SU', '2nd ' . _CAL_SUNDAY);
16
-define('_MD_EXTCAL_2_TH', '2nd ' . _CAL_THURSDAY);
17
-define('_MD_EXTCAL_2_TU', '2nd ' . _CAL_TUESDAY);
18
-define('_MD_EXTCAL_2_WE', '2nd ' . _CAL_WEDNESDAY);
19
-define('_MD_EXTCAL_3_FR', '3rd ' . _CAL_FRIDAY);
20
-define('_MD_EXTCAL_3_MO', '3rd ' . _CAL_MONDAY);
21
-define('_MD_EXTCAL_3_SA', '3rd ' . _CAL_SATURDAY);
22
-define('_MD_EXTCAL_3_SU', '3rd ' . _CAL_SUNDAY);
23
-define('_MD_EXTCAL_3_TH', '3rd ' . _CAL_THURSDAY);
24
-define('_MD_EXTCAL_3_TU', '3rd ' . _CAL_TUESDAY);
25
-define('_MD_EXTCAL_3_WE', '3rd ' . _CAL_WEDNESDAY);
26
-define('_MD_EXTCAL_4_FR', '4th ' . _CAL_FRIDAY);
27
-define('_MD_EXTCAL_4_MO', '4th ' . _CAL_MONDAY);
28
-define('_MD_EXTCAL_4_SA', '4th ' . _CAL_SATURDAY);
29
-define('_MD_EXTCAL_4_SU', '4th ' . _CAL_SUNDAY);
30
-define('_MD_EXTCAL_4_TH', '4th ' . _CAL_THURSDAY);
31
-define('_MD_EXTCAL_4_TU', '4th ' . _CAL_TUESDAY);
32
-define('_MD_EXTCAL_4_WE', '4th ' . _CAL_WEDNESDAY);
5
+define('_MD_EXTCAL_1_FR', '1st '._CAL_FRIDAY);
6
+define('_MD_EXTCAL_1_MO', '1st '._CAL_MONDAY);
7
+define('_MD_EXTCAL_1_SA', '1st '._CAL_SATURDAY);
8
+define('_MD_EXTCAL_1_SU', '1st '._CAL_SUNDAY);
9
+define('_MD_EXTCAL_1_TH', '1st '._CAL_THURSDAY);
10
+define('_MD_EXTCAL_1_TU', '1st '._CAL_TUESDAY);
11
+define('_MD_EXTCAL_1_WE', '1st '._CAL_WEDNESDAY);
12
+define('_MD_EXTCAL_2_FR', '2nd '._CAL_FRIDAY);
13
+define('_MD_EXTCAL_2_MO', '2nd '._CAL_MONDAY);
14
+define('_MD_EXTCAL_2_SA', '2nd '._CAL_SATURDAY);
15
+define('_MD_EXTCAL_2_SU', '2nd '._CAL_SUNDAY);
16
+define('_MD_EXTCAL_2_TH', '2nd '._CAL_THURSDAY);
17
+define('_MD_EXTCAL_2_TU', '2nd '._CAL_TUESDAY);
18
+define('_MD_EXTCAL_2_WE', '2nd '._CAL_WEDNESDAY);
19
+define('_MD_EXTCAL_3_FR', '3rd '._CAL_FRIDAY);
20
+define('_MD_EXTCAL_3_MO', '3rd '._CAL_MONDAY);
21
+define('_MD_EXTCAL_3_SA', '3rd '._CAL_SATURDAY);
22
+define('_MD_EXTCAL_3_SU', '3rd '._CAL_SUNDAY);
23
+define('_MD_EXTCAL_3_TH', '3rd '._CAL_THURSDAY);
24
+define('_MD_EXTCAL_3_TU', '3rd '._CAL_TUESDAY);
25
+define('_MD_EXTCAL_3_WE', '3rd '._CAL_WEDNESDAY);
26
+define('_MD_EXTCAL_4_FR', '4th '._CAL_FRIDAY);
27
+define('_MD_EXTCAL_4_MO', '4th '._CAL_MONDAY);
28
+define('_MD_EXTCAL_4_SA', '4th '._CAL_SATURDAY);
29
+define('_MD_EXTCAL_4_SU', '4th '._CAL_SUNDAY);
30
+define('_MD_EXTCAL_4_TH', '4th '._CAL_THURSDAY);
31
+define('_MD_EXTCAL_4_TU', '4th '._CAL_TUESDAY);
32
+define('_MD_EXTCAL_4_WE', '4th '._CAL_WEDNESDAY);
33 33
 define('_MD_EXTCAL_ABSENT', 'Absent');
34 34
 define('_MD_EXTCAL_ACTION_COME', 'Register');
35 35
 define('_MD_EXTCAL_ACTION_DELEGATION', 'Delegate');
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
 define('_MD_EXTCAL_JAN', 'Jan');
111 111
 define('_MD_EXTCAL_JUL', 'Jul');
112 112
 define('_MD_EXTCAL_JUN', 'Jun');
113
-define('_MD_EXTCAL_LAST_FR', 'Last ' . _CAL_FRIDAY);
114
-define('_MD_EXTCAL_LAST_MO', 'Last ' . _CAL_MONDAY);
115
-define('_MD_EXTCAL_LAST_SA', 'Last ' . _CAL_SATURDAY);
116
-define('_MD_EXTCAL_LAST_SU', 'Last ' . _CAL_SUNDAY);
117
-define('_MD_EXTCAL_LAST_TH', 'Last ' . _CAL_THURSDAY);
118
-define('_MD_EXTCAL_LAST_TU', 'Last ' . _CAL_TUESDAY);
119
-define('_MD_EXTCAL_LAST_WE', 'Last ' . _CAL_WEDNESDAY);
113
+define('_MD_EXTCAL_LAST_FR', 'Last '._CAL_FRIDAY);
114
+define('_MD_EXTCAL_LAST_MO', 'Last '._CAL_MONDAY);
115
+define('_MD_EXTCAL_LAST_SA', 'Last '._CAL_SATURDAY);
116
+define('_MD_EXTCAL_LAST_SU', 'Last '._CAL_SUNDAY);
117
+define('_MD_EXTCAL_LAST_TH', 'Last '._CAL_THURSDAY);
118
+define('_MD_EXTCAL_LAST_TU', 'Last '._CAL_TUESDAY);
119
+define('_MD_EXTCAL_LAST_WE', 'Last '._CAL_WEDNESDAY);
120 120
 define('_MD_EXTCAL_LIB_COME', 'Register');
121 121
 define('_MD_EXTCAL_LIB_NONE', 'None');
122 122
 define('_MD_EXTCAL_LIB_NOTCOME', 'Unsubscribe');
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
  **/
20 20
 
21 21
 $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32);
22
-echo "<div class='adminfooter'>\n" . "  <div style='text-align: center;'>\n" . "    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . "  </div>\n" . '  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>';
22
+echo "<div class='adminfooter'>\n"."  <div style='text-align: center;'>\n"."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"."  </div>\n".'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>';
23 23
 
24 24
 xoops_cp_footer();
Please login to merge, or discard this patch.
class/pclerror.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         global $g_pcl_error_string;
139 139
         global $g_pcl_error_code;
140 140
 
141
-        return $g_pcl_error_string . " [code $g_pcl_error_code]";
141
+        return $g_pcl_error_string." [code $g_pcl_error_code]";
142 142
     }
143 143
 
144 144
     // --------------------------------------------------------------------------------
Please login to merge, or discard this patch.
class/pear/Calendar/Factory.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 /**
51 51
  * Load Calendar base class.
52 52
  */
53
-require_once CALENDAR_ROOT . 'Calendar.php';
53
+require_once CALENDAR_ROOT.'Calendar.php';
54 54
 
55 55
 /**
56 56
  * Contains a factory method to return a Singleton instance of a class
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $firstDay = defined('CALENDAR_FIRST_DAY_OF_WEEK') ? CALENDAR_FIRST_DAY_OF_WEEK : 1;
98 98
         switch ($type) {
99 99
             case 'Day':
100
-                require_once CALENDAR_ROOT . 'Day.php';
100
+                require_once CALENDAR_ROOT.'Day.php';
101 101
 
102 102
                 return new Calendar_Day($y, $m, $d);
103 103
             case 'Month':
@@ -107,44 +107,44 @@  discard block
 block discarded – undo
107 107
                 }
108 108
                 switch (CALENDAR_MONTH_STATE) {
109 109
                     case CALENDAR_USE_MONTH_WEEKDAYS:
110
-                        require_once CALENDAR_ROOT . 'Month/Weekdays.php';
110
+                        require_once CALENDAR_ROOT.'Month/Weekdays.php';
111 111
                         $class = 'Calendar_Month_Weekdays';
112 112
                         break;
113 113
                     case CALENDAR_USE_MONTH_WEEKS:
114
-                        require_once CALENDAR_ROOT . 'Month/Weeks.php';
114
+                        require_once CALENDAR_ROOT.'Month/Weeks.php';
115 115
                         $class = 'Calendar_Month_Weeks';
116 116
                         break;
117 117
                     case CALENDAR_USE_MONTH:
118 118
                     default:
119
-                        require_once CALENDAR_ROOT . 'Month.php';
119
+                        require_once CALENDAR_ROOT.'Month.php';
120 120
                         $class = 'Calendar_Month';
121 121
                         break;
122 122
                 }
123 123
 
124 124
                 return new $class($y, $m, $firstDay);
125 125
             case 'Week':
126
-                require_once CALENDAR_ROOT . 'Week.php';
126
+                require_once CALENDAR_ROOT.'Week.php';
127 127
 
128 128
                 return new Calendar_Week($y, $m, $d, $firstDay);
129 129
             case 'Hour':
130
-                require_once CALENDAR_ROOT . 'Hour.php';
130
+                require_once CALENDAR_ROOT.'Hour.php';
131 131
 
132 132
                 return new Calendar_Hour($y, $m, $d, $h);
133 133
             case 'Minute':
134
-                require_once CALENDAR_ROOT . 'Minute.php';
134
+                require_once CALENDAR_ROOT.'Minute.php';
135 135
 
136 136
                 return new Calendar_Minute($y, $m, $d, $h, $i);
137 137
             case 'Second':
138
-                require_once CALENDAR_ROOT . 'Second.php';
138
+                require_once CALENDAR_ROOT.'Second.php';
139 139
 
140 140
                 return new Calendar_Second($y, $m, $d, $h, $i, $s);
141 141
             case 'Year':
142
-                require_once CALENDAR_ROOT . 'Year.php';
142
+                require_once CALENDAR_ROOT.'Year.php';
143 143
 
144 144
                 return new Calendar_Year($y);
145 145
             default:
146
-                require_once __DIR__ . '/PEAR.php';
147
-                PEAR::raiseError('Calendar_Factory::create() unrecognised type: ' . $type, null, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Factory::create()');
146
+                require_once __DIR__.'/PEAR.php';
147
+                PEAR::raiseError('Calendar_Factory::create() unrecognised type: '.$type, null, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Factory::create()');
148 148
 
149 149
                 return false;
150 150
         }
Please login to merge, or discard this patch.
class/pear/Calendar/Engine/UnixTS.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $date = self::stampCollection($stamp);
97 97
 
98
-        return (int)$date[0];
98
+        return (int) $date[0];
99 99
     }
100 100
 
101 101
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $date = self::stampCollection($stamp);
111 111
 
112
-        return (int)$date[1];
112
+        return (int) $date[1];
113 113
     }
114 114
 
115 115
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $date = self::stampCollection($stamp);
125 125
 
126
-        return (int)$date[2];
126
+        return (int) $date[2];
127 127
     }
128 128
 
129 129
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $date = self::stampCollection($stamp);
139 139
 
140
-        return (int)$date[3];
140
+        return (int) $date[3];
141 141
     }
142 142
 
143 143
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     {
152 152
         $date = self::stampCollection($stamp);
153 153
 
154
-        return (int)$date[4];
154
+        return (int) $date[4];
155 155
     }
156 156
 
157 157
     /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     {
166 166
         $date = self::stampCollection($stamp);
167 167
 
168
-        return (int)$date[5];
168
+        return (int) $date[5];
169 169
     }
170 170
 
171 171
     /**
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
         }
337 337
         $daysInTheFirstWeek %= $this->getDaysInWeek();
338 338
 
339
-        return (int)(ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks);
339
+        return (int) (ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks);
340 340
     }
341 341
 
342 342
     /**
Please login to merge, or discard this patch.
class/pear/Calendar/tests/decorator_test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 //
3 3
 
4
-require_once __DIR__ . '/simple_include.php';
5
-require_once __DIR__ . '/calendar_include.php';
4
+require_once __DIR__.'/simple_include.php';
5
+require_once __DIR__.'/calendar_include.php';
6 6
 
7 7
 Mock::generate('Calendar_Engine_Interface', 'Mock_Calendar_Engine');
8 8
 Mock::generate('Calendar_Second', 'Mock_Calendar_Second');
Please login to merge, or discard this patch.
class/pear/Calendar/tests/second_test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 //
3 3
 
4
-require_once __DIR__ . '/simple_include.php';
5
-require_once __DIR__ . '/calendar_include.php';
4
+require_once __DIR__.'/simple_include.php';
5
+require_once __DIR__.'/calendar_include.php';
6 6
 
7
-require_once __DIR__ . '/./calendar_test.php';
7
+require_once __DIR__.'/./calendar_test.php';
8 8
 
9 9
 /**
10 10
  * Class TestOfSecond.
Please login to merge, or discard this patch.
class/pear/Calendar/tests/all_tests.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 //
3 3
 
4
-require_once __DIR__ . '/simple_include.php';
5
-require_once __DIR__ . '/calendar_include.php';
4
+require_once __DIR__.'/simple_include.php';
5
+require_once __DIR__.'/calendar_include.php';
6 6
 
7 7
 define('TEST_RUNNING', true);
8 8
 
9
-require_once __DIR__ . '/calendar_tests.php';
10
-require_once __DIR__ . '/calendar_tabular_tests.php';
11
-require_once __DIR__ . '/validator_tests.php';
12
-require_once __DIR__ . '/calendar_engine_tests.php';
13
-require_once __DIR__ . '/calendar_engine_tests.php';
14
-require_once __DIR__ . '/table_helper_tests.php';
15
-require_once __DIR__ . '/decorator_tests.php';
16
-require_once __DIR__ . '/util_tests.php';
9
+require_once __DIR__.'/calendar_tests.php';
10
+require_once __DIR__.'/calendar_tabular_tests.php';
11
+require_once __DIR__.'/validator_tests.php';
12
+require_once __DIR__.'/calendar_engine_tests.php';
13
+require_once __DIR__.'/calendar_engine_tests.php';
14
+require_once __DIR__.'/table_helper_tests.php';
15
+require_once __DIR__.'/decorator_tests.php';
16
+require_once __DIR__.'/util_tests.php';
17 17
 
18 18
 /**
19 19
  * Class AllTests.
Please login to merge, or discard this patch.