Completed
Push — master ( e91126...cc5cb8 )
by Gino
03:37
created
class/modules.php 3 patches
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      * @param $logoIcon
392 392
      * @param $moduleDirname
393 393
      *
394
-     * @return bool|string
394
+     * @return false|string
395 395
      */
396 396
     private static function createLogo($logoIcon, $moduleDirname)
397 397
     {
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
      * Get Defined Language.
475 475
      */
476 476
     /**
477
-     * @param $lang
477
+     * @param string $lang
478 478
      *
479 479
      * @return string
480 480
      */
@@ -587,6 +587,10 @@  discard block
 block discarded – undo
587 587
 
588 588
     /**
589 589
      * Get Modules Criteria.
590
+     * @param integer $start
591
+     * @param integer $limit
592
+     * @param string $sort
593
+     * @param string $order
590 594
      */
591 595
     private function getModulesCriteria($criteriaModules, $start, $limit, $sort, $order)
592 596
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -415,7 +415,7 @@
 block discarded – undo
415 415
         $imageIcon = imagecreatefrompng($iconFile);
416 416
         // Write text
417 417
         $textColor = imagecolorallocate($imageModule, 0, 0, 0);
418
-        $spaceBorder = (92 - strlen($moduleDirname) * 7.5) / 2;
418
+        $spaceBorder = (92-strlen($moduleDirname) * 7.5) / 2;
419 419
         imagefttext($imageModule, 8.5, 0, $spaceBorder, 45, $textColor, $font, ucfirst($moduleDirname), array());
420 420
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
421 421
         $logoImg = '/'.$moduleDirname.'_logo.png';
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -544,7 +544,7 @@
 block discarded – undo
544 544
         return $ret;
545 545
     }
546 546
 	
547
-	/*
547
+    /*
548 548
      * @public function getRemoveCarriageReturn
549 549
      * @param $string     
550 550
      *
Please login to merge, or discard this patch.
admin/logo.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@
 block discarded – undo
26 26
 $iconName = XoopsRequest::getString('iconName', '', 'GET');
27 27
 $caption = XoopsRequest::getString('caption', '', 'GET');
28 28
 if (function_exists($funct)) {
29
-	$ret = TDMCreateLogo::getInstance()->createLogo($iconName, $caption);
30
-	phpFunction($ret);
29
+    $ret = TDMCreateLogo::getInstance()->createLogo($iconName, $caption);
30
+    phpFunction($ret);
31 31
 } else {
32
-	redirect_header('logo.php', 3, 'Method Not Exist');
32
+    redirect_header('logo.php', 3, 'Method Not Exist');
33 33
 }
34 34
 // phpFunction
35 35
 function phpFunction($val = '')
36 36
 {   // create php function here
37
-	echo $val;
37
+    echo $val;
38 38
 }
39 39
\ No newline at end of file
Please login to merge, or discard this patch.
class/logo.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         return $instance;
46 46
     }
47 47
     	
48
-	/*
48
+    /*
49 49
     *  @private static function createLogo
50 50
     *  @param mixed $logoIcon
51 51
     *  @param string $moduleDirname
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
 
89 89
         return TDMC_UPLOAD_IMGMOD_URL.$logoImg;
90 90
 	}*/
91
-		/**
92
-     * @param $logoIcon
93
-     * @param $moduleDirname
94
-     *
95
-     * @return bool|string
96
-     */
91
+        /**
92
+         * @param $logoIcon
93
+         * @param $moduleDirname
94
+         *
95
+         * @return bool|string
96
+         */
97 97
     public static function createLogo($logoIcon, $moduleDirname)
98 98
     {
99 99
         if (!extension_loaded('gd')) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 
135 135
         // Write text
136 136
         $textColor = imagecolorallocate($imageModule, 0, 0, 0);
137
-        $spaceToBorder = (92 - strlen($moduleDirname) * 7.5) / 2;
137
+        $spaceToBorder = (92-strlen($moduleDirname) * 7.5) / 2;
138 138
         imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, ucfirst($moduleDirname), array());
139 139
 
140 140
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
Please login to merge, or discard this patch.
include/common.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 $dirname = $GLOBALS['xoopsModule']->getVar('dirname');
25 25
 // Root Frameworks icons 32x32 directory
26 26
 if (!defined('XOOPS_ICONS32_PATH')) define('XOOPS_ICONS32_PATH', XOOPS_ROOT_PATH.'/Frameworks/moduleclasses/icons/32');
27
-if (!defined('XOOPS_ICONS32_URL')) define('XOOPS_ICONS32_URL', XOOPS_URL . '/Frameworks/moduleclasses/icons/32');
27
+if (!defined('XOOPS_ICONS32_URL')) define('XOOPS_ICONS32_URL', XOOPS_URL.'/Frameworks/moduleclasses/icons/32');
28 28
 // Local Directories
29 29
 define('TDMC_PATH', XOOPS_ROOT_PATH.'/modules/'.$dirname);
30 30
 define('TDMC_URL', XOOPS_URL.'/modules/'.$dirname);
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,12 @@
 block discarded – undo
23 23
 defined('XOOPS_ROOT_PATH') or die('Restricted access');
24 24
 $dirname = $GLOBALS['xoopsModule']->getVar('dirname');
25 25
 // Root Frameworks icons 32x32 directory
26
-if (!defined('XOOPS_ICONS32_PATH')) define('XOOPS_ICONS32_PATH', XOOPS_ROOT_PATH.'/Frameworks/moduleclasses/icons/32');
27
-if (!defined('XOOPS_ICONS32_URL')) define('XOOPS_ICONS32_URL', XOOPS_URL . '/Frameworks/moduleclasses/icons/32');
26
+if (!defined('XOOPS_ICONS32_PATH')) {
27
+    define('XOOPS_ICONS32_PATH', XOOPS_ROOT_PATH.'/Frameworks/moduleclasses/icons/32');
28
+}
29
+if (!defined('XOOPS_ICONS32_URL')) {
30
+    define('XOOPS_ICONS32_URL', XOOPS_URL . '/Frameworks/moduleclasses/icons/32');
31
+}
28 32
 // Local Directories
29 33
 define('TDMC_PATH', XOOPS_ROOT_PATH.'/modules/'.$dirname);
30 34
 define('TDMC_URL', XOOPS_URL.'/modules/'.$dirname);
Please login to merge, or discard this patch.