Test Failed
Push — CI ( 02428e...3e0292 )
by Adam
55:43
created
src/SuiteCrm/Install/DatabaseChecker.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by Adam Jakab.
4
- * Date: 09/03/16
5
- * Time: 8.54
6
- */
3
+     * Created by Adam Jakab.
4
+     * Date: 09/03/16
5
+     * Time: 8.54
6
+     */
7 7
 
8 8
 namespace SuiteCrm\Install;
9 9
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,18 +37,18 @@
 block discarded – undo
37 37
      * @throws \Exception
38 38
      */
39 39
     protected static function checkSessionData() {
40
-        if(empty(trim($_SESSION['setup_db_database_name']))){
40
+        if (empty(trim($_SESSION['setup_db_database_name']))) {
41 41
             throw new \Exception('No database name was supplied!');
42 42
         }
43 43
 
44
-        if($_SESSION['setup_db_type'] != 'oci8') {
44
+        if ($_SESSION['setup_db_type'] != 'oci8') {
45 45
             // Oracle doesn't need host name, others do
46
-            if(empty(trim($_SESSION['setup_db_host_name']))){
46
+            if (empty(trim($_SESSION['setup_db_host_name']))) {
47 47
                 throw new \Exception('No database hostname name was supplied!');
48 48
             }
49 49
         }
50 50
 
51
-        if(isset($_SESSION['setup_db_type']) && (!isset($_SESSION['setup_db_manager']) || empty($_SESSION['setup_db_manager']))) {
51
+        if (isset($_SESSION['setup_db_type']) && (!isset($_SESSION['setup_db_manager']) || empty($_SESSION['setup_db_manager']))) {
52 52
             $_SESSION['setup_db_manager'] = \DBManagerFactory::getManagerByType($_SESSION['setup_db_type']);
53 53
         }
54 54
     }
Please login to merge, or discard this patch.
src/SuiteCrm/Install/InstallCommand.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     protected function execute(InputInterface $input, OutputInterface $output) {
44 44
         parent::_execute($input, $output);
45
-        $this->log("Starting command " . static::COMMAND_NAME . "...");
45
+        $this->log("Starting command ".static::COMMAND_NAME."...");
46 46
         $this->doPhpVersionCheck();
47 47
         $this->setupSugarGlobals();
48 48
         $this->setupSugarSessionVars([]);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 
53 53
 
54
-        $this->log("Command " . static::COMMAND_NAME . " done.");
54
+        $this->log("Command ".static::COMMAND_NAME." done.");
55 55
     }
56 56
 
57 57
 
@@ -61,17 +61,17 @@  discard block
 block discarded – undo
61 61
     protected function executeInstallation() {
62 62
         define('sugarEntry', true);
63 63
         //require_once(PROJECT_ROOT . '/include/SugarLogger/LoggerManager.php');
64
-        require_once(PROJECT_ROOT . '/sugar_version.php');
65
-        require_once(PROJECT_ROOT . '/suitecrm_version.php');
66
-        require_once(PROJECT_ROOT . '/include/utils.php');
67
-        require_once(PROJECT_ROOT . '/install/install_utils.php');
68
-        require_once(PROJECT_ROOT . '/install/install_defaults.php');
69
-        require_once(PROJECT_ROOT . '/include/TimeDate.php');
70
-        require_once(PROJECT_ROOT . '/include/Localization/Localization.php');
71
-        require_once(PROJECT_ROOT . '/include/SugarTheme/SugarTheme.php');
72
-        require_once(PROJECT_ROOT . '/include/utils/LogicHook.php');
73
-        require_once(PROJECT_ROOT . '/data/SugarBean.php');
74
-        require_once(PROJECT_ROOT . '/include/entryPoint.php');
64
+        require_once(PROJECT_ROOT.'/sugar_version.php');
65
+        require_once(PROJECT_ROOT.'/suitecrm_version.php');
66
+        require_once(PROJECT_ROOT.'/include/utils.php');
67
+        require_once(PROJECT_ROOT.'/install/install_utils.php');
68
+        require_once(PROJECT_ROOT.'/install/install_defaults.php');
69
+        require_once(PROJECT_ROOT.'/include/TimeDate.php');
70
+        require_once(PROJECT_ROOT.'/include/Localization/Localization.php');
71
+        require_once(PROJECT_ROOT.'/include/SugarTheme/SugarTheme.php');
72
+        require_once(PROJECT_ROOT.'/include/utils/LogicHook.php');
73
+        require_once(PROJECT_ROOT.'/data/SugarBean.php');
74
+        require_once(PROJECT_ROOT.'/include/entryPoint.php');
75 75
         //
76 76
         $timedate = \TimeDate::getInstance();
77 77
         setPhpIniSettings();
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         DatabaseChecker::runChecks();
86 86
 
87 87
 
88
-        $this->log("SESSION VARS: " . json_encode($_SESSION));
88
+        $this->log("SESSION VARS: ".json_encode($_SESSION));
89 89
 
90 90
     }
91 91
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param array $data
104 104
      */
105 105
     protected function setupSugarSessionVars($data) {
106
-        if((function_exists('session_status') && session_status() == PHP_SESSION_NONE) || session_id() == '') {
106
+        if ((function_exists('session_status') && session_status() == PHP_SESSION_NONE) || session_id() == '') {
107 107
             session_start();
108 108
         }
109 109
         //$_SESSION['setup_db_type'], array("db_manager" => $_SESSION['setup_db_manager'])
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
             'setup_db_database_name' => 'suitecrm_bradipo_tests',
117 117
             'setup_db_host_name' => 'localhost',
118 118
             'setup_db_port_num' => '',
119
-            'setup_db_host_instance' => '',//SQLEXPRESS
120
-            'setup_db_manager' => '',//'MysqliManager',
119
+            'setup_db_host_instance' => '', //SQLEXPRESS
120
+            'setup_db_manager' => '', //'MysqliManager',
121 121
             /*FTS SUPPORT*/
122 122
             'setup_fts_type' => '',
123 123
             'setup_fts_host' => '',
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
      * @throws \Exception
149 149
      */
150 150
     protected function doPhpVersionCheck() {
151
-        if (version_compare(phpversion(),'5.2.0') < 0) {
152
-            throw new \Exception('Minimum PHP version required is 5.2.0.  You are using PHP version  '. phpversion());
151
+        if (version_compare(phpversion(), '5.2.0') < 0) {
152
+            throw new \Exception('Minimum PHP version required is 5.2.0.  You are using PHP version  '.phpversion());
153 153
         }
154 154
     }
155 155
 }
156 156
\ No newline at end of file
Please login to merge, or discard this patch.
src/SuiteCrm/Install/SystemChecker.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             'include/javascript'
42 42
         ];
43 43
         foreach ($cache_files as $cache_file) {
44
-            $dirname = PROJECT_ROOT . '/' . sugar_cached( $cache_file);
44
+            $dirname = PROJECT_ROOT.'/'.sugar_cached($cache_file);
45 45
             $ok = FALSE;
46 46
             if ((is_dir($dirname)) || @sugar_mkdir($dirname, 0755, TRUE)) {
47 47
                 $ok = make_writable($dirname);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @throws \Exception
57 57
      */
58 58
     protected static function checkCustomDirectory() {
59
-        if (!make_writable(PROJECT_ROOT . '/custom')) {
59
+        if (!make_writable(PROJECT_ROOT.'/custom')) {
60 60
             throw new \Exception("The Custom Directory exists but is not writable.");
61 61
         }
62 62
     }
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
      * @throws \Exception
66 66
      */
67 67
     protected static function checkConfigOverrideFile() {
68
-        if (file_exists(PROJECT_ROOT . '/config_override.php')
69
-            && (!(make_writable(PROJECT_ROOT . '/config_override.php'))
68
+        if (file_exists(PROJECT_ROOT.'/config_override.php')
69
+            && (!(make_writable(PROJECT_ROOT.'/config_override.php'))
70 70
                 || !(is_writable(
71
-                    PROJECT_ROOT . '/config_override.php'
71
+                    PROJECT_ROOT.'/config_override.php'
72 72
                 )))
73 73
         ) {
74 74
             throw new \Exception("The config_override file is not writable!");
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
      * @throws \Exception
80 80
      */
81 81
     protected static function checkConfigFile() {
82
-        if (file_exists(PROJECT_ROOT . '/config.php')
83
-            && (!(make_writable(PROJECT_ROOT . '/config.php')) || !(is_writable(PROJECT_ROOT . '/config.php')))
82
+        if (file_exists(PROJECT_ROOT.'/config.php')
83
+            && (!(make_writable(PROJECT_ROOT.'/config.php')) || !(is_writable(PROJECT_ROOT.'/config.php')))
84 84
         ) {
85 85
             throw new \Exception("The config file is not writable!");
86 86
         }
Please login to merge, or discard this patch.