Completed
Push — master ( e93f11...cd676e )
by
unknown
12s
created
include/sitemap.plugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
 
26 26
     $myts = MyTextSanitizer::getInstance();
27 27
 
28
-    $moduleDirName = basename(dirname(__DIR__)) ;
28
+    $moduleDirName = basename(dirname(__DIR__));
29 29
     $xfHelper      = Xmf\Module\Helper::getHelper($moduleDirName);
30 30
     $xfCatHandler  = $xfHelper->getHandler('category');
31 31
     $catList       = $xfCatHandler->getList();
32 32
 
33
-    $retVal = array() ;
34
-    foreach ($catList as $id=>$title){
33
+    $retVal = array();
34
+    foreach ($catList as $id=>$title) {
35 35
         $retVal['parent'][] = array('id' => $id,
36 36
                                  'title' => $myts->htmlSpecialChars($title),
37 37
                                    'url' => $xfHelper->url('index.php?cat_id=' . $id)
Please login to merge, or discard this patch.
class/utility.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                 static::rrmdir($fObj->getPathname());
183 183
             }
184 184
         }
185
-        $iterator = null;   // clear iterator Obj to close file/directory
185
+        $iterator = null; // clear iterator Obj to close file/directory
186 186
         return rmdir($src); // remove the directory & return results
187 187
     }
188 188
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 static::rmove($fObj->getPathname(), $dest . '/' . $fObj->getFilename());
222 222
             }
223 223
         }
224
-        $iterator = null;   // clear iterator Obj to close file/directory
224
+        $iterator = null; // clear iterator Obj to close file/directory
225 225
         return rmdir($src); // remove the directory & return results
226 226
     }
227 227
 
@@ -255,11 +255,11 @@  discard block
 block discarded – undo
255 255
 
256 256
         // Open the source directory to read in files
257 257
         $iterator = new DirectoryIterator($src);
258
-        foreach($iterator as $fObj) {
259
-            if($fObj->isFile()) {
258
+        foreach ($iterator as $fObj) {
259
+            if ($fObj->isFile()) {
260 260
                 copy($fObj->getPathname(), $dest . '/' . $fObj->getFilename());
261
-            } else if(!$fObj->isDot() && $fObj->isDir()) {
262
-                static::rcopy($fObj->getPathname(), $dest . '/' . $fObj-getFilename());
261
+            } else if (!$fObj->isDot() && $fObj->isDir()) {
262
+                static::rcopy($fObj->getPathname(), $dest . '/' . $fObj - getFilename());
263 263
             }
264 264
         }
265 265
         return true;
@@ -280,19 +280,19 @@  discard block
 block discarded – undo
280 280
         xoops_loadLanguage('admin', $moduleDirName);
281 281
         $ret = '';
282 282
         if (null !== $value) {
283
-            foreach($icon_array as $_op => $icon) {
283
+            foreach ($icon_array as $_op => $icon) {
284 284
                 if (false === strpos($icon, '.')) {
285 285
                     $iconName = $icon;
286 286
                     $iconExt = 'png';
287 287
                 } else {
288
-                    $iconName = substr($icon, 0, strlen($icon)-strrchr($icon, '.'));
288
+                    $iconName = substr($icon, 0, strlen($icon) - strrchr($icon, '.'));
289 289
                     $iconExt  = substr(strrchr($icon, '.'), 1);
290 290
                 }
291 291
                 $url = (!is_numeric($_op)) ? $_op . '?' . $param . '=' . $value : xoops_getenv('PHP_SELF') . '?op=' . $iconName . '&' . $param . '=' . $value;
292 292
                 if (null !== $extra) {
293 293
                     $url .= ' ' . $extra;
294 294
                 }
295
-                $title = constant (htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName)));
295
+                $title = constant(htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName)));
296 296
                 $img = '<img src="' . Xmf\Module\Admin::iconUrl($iconName . '.' . $iconExt, '16') . '"'
297 297
                      . ' title ="' . $title . '"'
298 298
                      . ' alt = "' . $title . '"'
Please login to merge, or discard this patch.