@@ -70,7 +70,7 @@ |
||
70 | 70 | return false; |
71 | 71 | } |
72 | 72 | |
73 | - list($id, , $timestamp) = $this->tokenGenerator->decode($token); |
|
73 | + list($id,, $timestamp) = $this->tokenGenerator->decode($token); |
|
74 | 74 | $decoded = [ |
75 | 75 | 'id' => $id, |
76 | 76 | 'time' => $timestamp |
@@ -102,10 +102,10 @@ |
||
102 | 102 | $availableLanguages = []; |
103 | 103 | foreach ($matches as $match) { |
104 | 104 | list($languageCode) = explode('-', $match[1]) + ['', '']; |
105 | - $priority = isset($match[2]) ? (float) $match[2] : 1.0; |
|
105 | + $priority = isset($match[2]) ? (float)$match[2] : 1.0; |
|
106 | 106 | $availableLanguages[][$languageCode] = $priority; |
107 | 107 | } |
108 | - $defaultPriority = (float) 0; |
|
108 | + $defaultPriority = (float)0; |
|
109 | 109 | $matchedLanguage = ''; |
110 | 110 | foreach ($availableLanguages as $key => $value) { |
111 | 111 | $languageCode = key($value); |
@@ -89,7 +89,7 @@ |
||
89 | 89 | $resolver->setDefaults([ |
90 | 90 | 'translator' => null, |
91 | 91 | 'includeReset' => false, |
92 | - 'constraints' => new Callback(['callback' => function ($data, ExecutionContextInterface $context) { |
|
92 | + 'constraints' => new Callback(['callback' => function($data, ExecutionContextInterface $context) { |
|
93 | 93 | if (!isset($data['pass']) && empty($data['uname']) && empty($data['email'])) { |
94 | 94 | $context->buildViolation('Error! You must enter either your username or email address.') |
95 | 95 | ->addViolation(); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | { |
44 | 44 | $text = preg_replace_callback( |
45 | 45 | '/<a [^>]*href\s*=\s*\"?([^>\"]*)\"?[^>]*>(.*?)<\/a.*?>/i', |
46 | - function ($matches) { |
|
46 | + function($matches) { |
|
47 | 47 | // work out why some links need decoding twice (&amp;....) #3653 |
48 | 48 | $this->links[] = html_entity_decode(html_entity_decode($matches[1])); |
49 | 49 | // return the replaced link |