Test Failed
Push — main ( 2d691a...d7c671 )
by Rafael
06:30
created
src/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.
src/Core/DebugBarCollectors/TranslatorCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      *
38 38
      * @param Translator $translator
39 39
      */
40
-    public function __construct(Translator &$translator)
40
+    public function __construct(Translator & $translator)
41 41
     {
42 42
         static::$translator = $translator;
43 43
         $this->translations = [];
Please login to merge, or discard this patch.
src/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
-        $usernameField = 'login';  // Alxarafe use 'username', but Dolibarr use 'login'
129
-        $passwordField = 'pass_crypted';  // Alxarafe use 'password', but Dolibarr use 'pass_crypted'
128
+        $usernameField = 'login'; // Alxarafe use 'username', but Dolibarr use 'login'
129
+        $passwordField = 'pass_crypted'; // Alxarafe use 'password', but Dolibarr use 'pass_crypted'
130 130
         $encryptMethod = "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 $usernameField='$user';");
Please login to merge, or discard this patch.