Passed
Push — master ( d2520f...3f8ec2 )
by Michael
02:50
created
comment_post.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-include XOOPS_ROOT_PATH . '/include/comment_post.php';
20
+include __DIR__.'/../../mainfile.php';
21
+include XOOPS_ROOT_PATH.'/include/comment_post.php';
Please login to merge, or discard this patch.
blocks/spotlight_events.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/../include/constantes.php';
3
+require_once __DIR__.'/../include/constantes.php';
4 4
 
5 5
 //---------------------------------------------------------------------
6 6
 
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.
include/install_function.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 {
10 10
 
11 11
     // Create eXtCal upload directory
12
-    $dir = XOOPS_ROOT_PATH . '/uploads/extcal';
12
+    $dir = XOOPS_ROOT_PATH.'/uploads/extcal';
13 13
     if (!is_dir($dir)) {
14 14
         mkdir($dir);
15
-        mkdir($dir . '/etablissement');
15
+        mkdir($dir.'/etablissement');
16 16
 
17 17
         // Copy index.html files on uploads folders
18
-        $indexFile = __DIR__ . '/index.html';
19
-        copy($indexFile, $dir . '/index.html');
20
-        copy($indexFile, $dir . '/etablissement/index.html');
18
+        $indexFile = __DIR__.'/index.html';
19
+        copy($indexFile, $dir.'/index.html');
20
+        copy($indexFile, $dir.'/etablissement/index.html');
21 21
     }
22 22
 
23 23
     $moduleId               = $xoopsModule->getVar('mid');
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.