Passed
Push — master ( 623f1c...608aef )
by Craig
06:30
created
src/lib/Zikula/Core/Token/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/system/SettingsModule/Api/LocaleApi.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,10 +102,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/system/ZAuthModule/Form/Type/LostPasswordType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/themes/PrinterTheme/ZikulaPrinterTheme.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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;amp;....) #3653
48 48
                 $this->links[] = html_entity_decode(html_entity_decode($matches[1]));
49 49
                 // return the replaced link
Please login to merge, or discard this patch.