Test Failed
Push — master ( 9d1fea...db7d4f )
by Alxarafe
49:25
created
dolibarr/htdocs/core/modules/modFckeditor.class.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  *  \brief      Fichier de description et activation du module Fckeditor
26 26
  */
27 27
 
28
-include_once DOL_DOCUMENT_ROOT .'/core/modules/DolibarrModules.class.php';
28
+include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
29 29
 
30 30
 
31 31
 /**
@@ -47,34 +47,34 @@  discard block
 block discarded – undo
47 47
 		$this->family = "technic";
48 48
 		$this->module_position = '20';
49 49
 		// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
50
-		$this->name = preg_replace('/^mod/i','',get_class($this));
50
+		$this->name = preg_replace('/^mod/i', '', get_class($this));
51 51
 		$this->description = "Editeur WYSIWYG";
52 52
 		// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
53 53
 		$this->version = 'dolibarr';
54 54
 		$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
55 55
 		// Name of png file (without png) used for this module.
56 56
 		// Png file must be in theme/yourtheme/img directory under name object_pictovalue.png.
57
-		$this->picto='list';
57
+		$this->picto = 'list';
58 58
 
59 59
 		// Data directories to create when module is enabled
60
-		$this->dirs = array("/medias/temp","/medias/image");
60
+		$this->dirs = array("/medias/temp", "/medias/image");
61 61
 
62 62
 		// Config pages
63 63
 		$this->config_page_url = array("fckeditor.php");
64 64
 
65 65
 		// Dependencies
66
-		$this->disabled = (in_array(constant('JS_CKEDITOR'),array('disabled','disabled/'))?1:0);	// A condition to disable module (used for native debian packages)
66
+		$this->disabled = (in_array(constant('JS_CKEDITOR'), array('disabled', 'disabled/')) ? 1 : 0); // A condition to disable module (used for native debian packages)
67 67
 		$this->depends = array();
68 68
 		$this->requiredby = array('modWebsites');
69 69
 
70 70
 		// Constants
71 71
 		$this->const = array();
72
-        $this->const[0]  = array("FCKEDITOR_ENABLE_SOCIETE","yesno","1","WYSIWIG for description and note (except products/services)");
73
-        $this->const[1]  = array("FCKEDITOR_ENABLE_PRODUCTDESC","yesno","1","WYSIWIG for products/services description and note");
74
-        $this->const[2]  = array("FCKEDITOR_ENABLE_MAILING","yesno","1","WYSIWIG for mass emailings");
75
-        $this->const[3]  = array("FCKEDITOR_ENABLE_DETAILS","yesno","1","WYSIWIG for products details lines for all entities");
76
-        $this->const[4]  = array("FCKEDITOR_ENABLE_USERSIGN","yesno","1","WYSIWIG for user signature");
77
-        $this->const[5]  = array("FCKEDITOR_ENABLE_MAIL","yesno","1","WYSIWIG for products details lines for all entities");
72
+        $this->const[0]  = array("FCKEDITOR_ENABLE_SOCIETE", "yesno", "1", "WYSIWIG for description and note (except products/services)");
73
+        $this->const[1]  = array("FCKEDITOR_ENABLE_PRODUCTDESC", "yesno", "1", "WYSIWIG for products/services description and note");
74
+        $this->const[2]  = array("FCKEDITOR_ENABLE_MAILING", "yesno", "1", "WYSIWIG for mass emailings");
75
+        $this->const[3]  = array("FCKEDITOR_ENABLE_DETAILS", "yesno", "1", "WYSIWIG for products details lines for all entities");
76
+        $this->const[4]  = array("FCKEDITOR_ENABLE_USERSIGN", "yesno", "1", "WYSIWIG for user signature");
77
+        $this->const[5]  = array("FCKEDITOR_ENABLE_MAIL", "yesno", "1", "WYSIWIG for products details lines for all entities");
78 78
 		//$this->const[6]  = array("FCKEDITOR_SKIN","string","moono-lisa","Skin by default for fckeditor");
79 79
         $this->const[6] = array("FCKEDITOR_SKIN", "string", CKEDITOR_SKIN, "Skin by default for fckeditor");
80 80
 
Please login to merge, or discard this patch.
Helpers/AlixarDispatcher.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     {
15 15
         parent::__construct();
16 16
 
17
-        $this->searchDir[] = BASE_PATH . '/plugins';
17
+        $this->searchDir[] = BASE_PATH.'/plugins';
18 18
         $path = null;
19 19
     }
20 20
 
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
           define('SITE_URL', APP_PROTOCOL . '://' . SERVER_NAME);
40 40
           define('BASE_URI', SITE_URL . APP_URI);
41 41
          */
42
-        define('DOL_BASE_PATH', BASE_PATH . '/dolibarr/htdocs');
43
-        define('DOL_BASE_URI', BASE_URI . '/dolibarr/htdocs');
42
+        define('DOL_BASE_PATH', BASE_PATH.'/dolibarr/htdocs');
43
+        define('DOL_BASE_URI', BASE_URI.'/dolibarr/htdocs');
44 44
         //define('DOL_DOCUMENT_ROOT', DOL_BASE_PATH);
45 45
 
46 46
         define('CORE_FOLDER', '/core');
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
         define('CACHE_FOLDER', '/../cache');
55 55
         //define('VENDOR_FOLDER', BASE_URI . '/vendor');
56 56
 
57
-        define('CORE_PATH', BASE_PATH . CORE_FOLDER);
58
-        define('CONFIG_PATH', BASE_PATH . CONFIG_FOLDER);
59
-        define('CONTROLLERS_PATH', BASE_PATH . CONTROLLERS_FOLDER);
60
-        define('HELPERS_PATH', BASE_PATH . HELPERS_FOLDER);
61
-        define('MODELS_PATH', BASE_PATH . MODELS_FOLDER);
62
-        define('SKINS_PATH', BASE_PATH . SKINS_FOLDER);
63
-        define('TEMPLATES_PATH', BASE_PATH . TEMPLATES_FOLDER);
64
-        define('PLUGINS_PATH', BASE_PATH . PLUGINS_FOLDER);
65
-        define('CACHE_PATH', BASE_PATH . CACHE_FOLDER);
57
+        define('CORE_PATH', BASE_PATH.CORE_FOLDER);
58
+        define('CONFIG_PATH', BASE_PATH.CONFIG_FOLDER);
59
+        define('CONTROLLERS_PATH', BASE_PATH.CONTROLLERS_FOLDER);
60
+        define('HELPERS_PATH', BASE_PATH.HELPERS_FOLDER);
61
+        define('MODELS_PATH', BASE_PATH.MODELS_FOLDER);
62
+        define('SKINS_PATH', BASE_PATH.SKINS_FOLDER);
63
+        define('TEMPLATES_PATH', BASE_PATH.TEMPLATES_FOLDER);
64
+        define('PLUGINS_PATH', BASE_PATH.PLUGINS_FOLDER);
65
+        define('CACHE_PATH', BASE_PATH.CACHE_FOLDER);
66 66
         //define('VENDOR_PATH', BASE_PATH . VENDOR_FOLDER);
67 67
 
68 68
         /**
Please login to merge, or discard this patch.