Test Failed
Branch main (aa55bc)
by Rafael
06:00
created
htdocs/Core/DebugBarCollectors/PhpCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     {
65 65
         $messages = $this->messages;
66 66
 
67
-        usort($messages, function ($itemA, $itemB) {
67
+        usort($messages, function($itemA, $itemB) {
68 68
             if ($itemA['time'] === $itemB['time']) {
69 69
                 return 0;
70 70
             }
Please login to merge, or discard this patch.
htdocs/Core/Utils/FileSystemUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
         $modules = [];
109 109
         foreach (ModuleManager::getEnabledModules() as $value) {
110 110
             $cad = $value['path'];
111
-            $modules[] = substr($cad, strlen('src/'));    // Delete initial 'src\'
111
+            $modules[] = substr($cad, strlen('src/')); // Delete initial 'src\'
112 112
         }
113 113
         $modules[] = 'Alxarafe\Core';
114 114
         foreach ($modules as $module) {
Please login to merge, or discard this patch.
htdocs/index_dol.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
  *    \brief      Dolibarr home page
29 29
  */
30 30
 
31
-define('CSRFCHECK_WITH_TOKEN', 1);    // We force need to use a token to login when making a POST
31
+define('CSRFCHECK_WITH_TOKEN', 1); // We force need to use a token to login when making a POST
32 32
 
33 33
 require 'main.inc.php';
34 34
 require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';
Please login to merge, or discard this patch.
htdocs/Core/Helpers/Auth.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,8 +125,8 @@
 block discarded – undo
125 125
      */
126 126
     public function setUser($user, $password): bool
127 127
     {
128
-        $username_field = 'login';  // Alxarafe use 'username', but Dolibarr use 'login'
129
-        $password_field = 'pass_crypted';  // Alxarafe use 'password', but Dolibarr use 'pass_crypted'
128
+        $username_field = 'login'; // Alxarafe use 'username', but Dolibarr use 'login'
129
+        $password_field = 'pass_crypted'; // Alxarafe use 'password', but Dolibarr use 'pass_crypted'
130 130
         $encrypt_method = "password_hash"; // Alxarafe use 'md5', but Dolibarr use a function called dol_hash
131 131
 
132 132
         $_user = Engine::select("SELECT * FROM {$this->users->tableName} WHERE $username_field='$user';");
Please login to merge, or discard this patch.