Passed
Push — master ( 59d1e8...aa9994 )
by Alxarafe
02:29
created
index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
  * Alxarafe. Development of PHP applications in a flash!
5 5
  * Copyright (C) 2018 Alxarafe <[email protected]>
6 6
  */
7
-define('BASE_PATH', __DIR__ . DIRECTORY_SEPARATOR);
7
+define('BASE_PATH', __DIR__.DIRECTORY_SEPARATOR);
8 8
 
9
-include BASE_PATH . 'config/constants.php';
10
-include BASE_PATH . 'vendor/autoload.php';
9
+include BASE_PATH.'config/constants.php';
10
+include BASE_PATH.'vendor/autoload.php';
11 11
 
12 12
 include('dolibarr/htdocs/index.php');
Please login to merge, or discard this patch.
config/constants.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@  discard block
 block discarded – undo
4 4
  * Alxarafe. Development of PHP applications in a flash!
5 5
  * Copyright (C) 2018 Alxarafe <[email protected]>
6 6
  */
7
-$_appURI = trim(pathinfo(filter_input(INPUT_SERVER, 'SCRIPT_NAME'), PATHINFO_DIRNAME), ' /') . '/';
8
-define('APP_URI', $_appURI === '/' ? $_appURI : '/' . $_appURI);
7
+$_appURI = trim(pathinfo(filter_input(INPUT_SERVER, 'SCRIPT_NAME'), PATHINFO_DIRNAME), ' /').'/';
8
+define('APP_URI', $_appURI === '/' ? $_appURI : '/'.$_appURI);
9 9
 
10 10
 define('SERVER_NAME', filter_input(INPUT_SERVER, 'SERVER_NAME'));
11 11
 define('APP_PROTOCOL', filter_input(INPUT_SERVER, 'REQUEST_SCHEME'));
12
-define('SITE_URL', APP_PROTOCOL . '://' . SERVER_NAME);
13
-define('BASE_URI', SITE_URL . APP_URI);
12
+define('SITE_URL', APP_PROTOCOL.'://'.SERVER_NAME);
13
+define('BASE_URI', SITE_URL.APP_URI);
14 14
 
15 15
 define('CORE_FOLDER', 'core/');
16 16
 define('CONFIG_FOLDER', 'core/');
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 define('CACHE_FOLDER', '../cache/');
24 24
 define('VENDOR_FOLDER', '../vendor/');
25 25
 
26
-define('CORE_PATH', BASE_PATH . CORE_FOLDER);
27
-define('CONFIG_PATH', BASE_PATH . CONFIG_FOLDER);
28
-define('CONTROLLERS_PATH', BASE_PATH . CONTROLLERS_FOLDER);
29
-define('HELPERS_PATH', BASE_PATH . HELPERS_FOLDER);
30
-define('MODELS_PATH', BASE_PATH . MODELS_FOLDER);
31
-define('SKINS_PATH', BASE_PATH . SKINS_FOLDER);
32
-define('TEMPLATES_PATH', BASE_PATH . TEMPLATES_FOLDER);
33
-define('PLUGINS_PATH', BASE_PATH . PLUGINS_FOLDER);
34
-define('CACHE_PATH', BASE_PATH . CACHE_FOLDER);
35
-define('VENDOR_PATH', BASE_PATH . VENDOR_FOLDER);
26
+define('CORE_PATH', BASE_PATH.CORE_FOLDER);
27
+define('CONFIG_PATH', BASE_PATH.CONFIG_FOLDER);
28
+define('CONTROLLERS_PATH', BASE_PATH.CONTROLLERS_FOLDER);
29
+define('HELPERS_PATH', BASE_PATH.HELPERS_FOLDER);
30
+define('MODELS_PATH', BASE_PATH.MODELS_FOLDER);
31
+define('SKINS_PATH', BASE_PATH.SKINS_FOLDER);
32
+define('TEMPLATES_PATH', BASE_PATH.TEMPLATES_FOLDER);
33
+define('PLUGINS_PATH', BASE_PATH.PLUGINS_FOLDER);
34
+define('CACHE_PATH', BASE_PATH.CACHE_FOLDER);
35
+define('VENDOR_PATH', BASE_PATH.VENDOR_FOLDER);
Please login to merge, or discard this patch.