Completed
Push — master ( e93f11...cd676e )
by
unknown
12s
created
class/contents.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      *
241 241
      * @param CriteriaElement|string sort order ('id', 'cid', 'title', 'publish', or 'weight') default: 'id'
242 242
      *
243
-     * @return mixed XoopsfaqContents object | false on failure
243
+     * @return boolean XoopsfaqContents object | false on failure
244 244
      */
245 245
     public function getObj($sort = 'id')
246 246
     {
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      * XoopsfaqContentsHandler::getPublished()
266 266
      *
267 267
      * @param string $id
268
-     * @return mixed array of XoopsfaqContent objects | false on failure
268
+     * @return boolean array of XoopsfaqContent objects | false on failure
269 269
      */
270 270
     public function getPublished($id = '')
271 271
     {
Please login to merge, or discard this patch.
class/utility.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,8 +268,8 @@
 block discarded – undo
268 268
     /**
269 269
      * Render the icon links
270 270
      *
271
-     * @param array $icon_array contains operation=>icon_name as key=>value
272
-     * @param mixed $param      HTML parameter
271
+     * @param string[] $icon_array contains operation=>icon_name as key=>value
272
+     * @param string $param      HTML parameter
273 273
      * @param mixed $value      HTML parameter value to set
274 274
      * @param mixed $extra      are any additional HTML attributes desired for the <a> tag
275 275
      * @return string
Please login to merge, or discard this 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 . '&amp;' . $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.
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.