@@ -121,7 +121,6 @@ |
||
| 121 | 121 | * |
| 122 | 122 | * @param string $messageId |
| 123 | 123 | * @param array $parameters |
| 124 | - * @param string $locale |
|
| 125 | 124 | * @return string[] |
| 126 | 125 | */ |
| 127 | 126 | public function getMessages($messageId, $parameters = []) |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | ); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - $uniqueId = uniqid('exp_',true); |
|
| 64 | + $uniqueId = uniqid('exp_', true); |
|
| 65 | 65 | $this->checkVariable = new Variable('check', 'Text', 'This', "\"$uniqueId\""); |
| 66 | 66 | $this->checkOldVariable = new Variable('check_old', 'Text', 'Page', "\"$uniqueId\""); |
| 67 | 67 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | if ($this->variables[$variable]->getValue() != $newValue) { |
| 78 | 78 | $this->variables[$variable]->setValue($newValue); |
| 79 | - $uniqueId = '"' . uniqid('exp_', true) . '"'; |
|
| 79 | + $uniqueId = '"'.uniqid('exp_', true).'"'; |
|
| 80 | 80 | $this->checkVariable->setValue($uniqueId); |
| 81 | 81 | |
| 82 | 82 | if (is_null($this->queuedForUpdate)) { |
@@ -135,16 +135,16 @@ discard block |
||
| 135 | 135 | { |
| 136 | 136 | $scriptContent = ''; |
| 137 | 137 | foreach ($this->variables as $variable) { |
| 138 | - $scriptContent .= $variable->getScriptDeclaration() . "\n"; |
|
| 138 | + $scriptContent .= $variable->getScriptDeclaration()."\n"; |
|
| 139 | 139 | if ($defaultValues) { |
| 140 | - $scriptContent .= $variable->getScriptValueSet() . "\n"; |
|
| 140 | + $scriptContent .= $variable->getScriptValueSet()."\n"; |
|
| 141 | 141 | } |
| 142 | 142 | } |
| 143 | - $scriptContent .= $this->checkVariable->getScriptDeclaration() . "\n"; |
|
| 144 | - $scriptContent .= $this->checkOldVariable->getScriptDeclaration() . "\n"; |
|
| 143 | + $scriptContent .= $this->checkVariable->getScriptDeclaration()."\n"; |
|
| 144 | + $scriptContent .= $this->checkOldVariable->getScriptDeclaration()."\n"; |
|
| 145 | 145 | if ($defaultValues) { |
| 146 | - $scriptContent .= $this->checkVariable->getScriptValueSet() . "\n"; |
|
| 147 | - $scriptContent .= $this->checkOldVariable->getScriptValueSet() . "\n"; |
|
| 146 | + $scriptContent .= $this->checkVariable->getScriptValueSet()."\n"; |
|
| 147 | + $scriptContent .= $this->checkOldVariable->getScriptValueSet()."\n"; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | return $scriptContent; |