Browse Source

Fix implode() arguments order.

ADmad 6 years ago
parent
commit
e78bd7f18f

+ 1 - 1
src/Console/ConsoleOutput.php

@@ -239,7 +239,7 @@ class ConsoleOutput
             }
         }
 
-        return "\033[" . implode($styleInfo, ';') . 'm' . $matches['text'] . "\033[0m";
+        return "\033[" . implode(';', $styleInfo) . 'm' . $matches['text'] . "\033[0m";
     }
 
     /**

+ 1 - 1
src/Shell/CompletionShell.php

@@ -168,7 +168,7 @@ class CompletionShell extends Shell
     protected function _output($options = [])
     {
         if ($options) {
-            return $this->out(implode($options, ' '));
+            return $this->out(implode(' ', $options));
         }
     }
 }

+ 2 - 2
src/View/Helper/SecureFieldTokenTrait.php

@@ -50,8 +50,8 @@ trait SecureFieldTokenTrait
         ksort($locked, SORT_STRING);
         $fields += $locked;
 
-        $locked = implode(array_keys($locked), '|');
-        $unlocked = implode($unlockedFields, '|');
+        $locked = implode('|', array_keys($locked));
+        $unlocked = implode('|', $unlockedFields);
         $hashParts = [
             $url,
             serialize($fields),