Completed
Pull Request — master (#3788)
by Craig
01:31
created
src/system/ExtensionsModule/Tests/Helper/ComposerValidationHelperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,6 +76,6 @@
 block discarded – undo
76 76
 
77 77
     private function getSplFileInfo($file)
78 78
     {
79
-        return new SplFileInfo(realpath(__DIR__ . '/../Fixtures/'. $file), '/../Fixtures', '/../Fixtures/' . $file);
79
+        return new SplFileInfo(realpath(__DIR__ . '/../Fixtures/' . $file), '/../Fixtures', '/../Fixtures/' . $file);
80 80
     }
81 81
 }
Please login to merge, or discard this patch.
src/system/RoutesModule/Entity/Base/AbstractRouteEntity.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1130,7 +1130,7 @@
 block discarded – undo
1130 1130
      * 
1131 1131
      * @return array of entity objects
1132 1132
      */
1133
-    public function getRelatedObjectsToPersist(&$objects = []) 
1133
+    public function getRelatedObjectsToPersist(&$objects = [])
1134 1134
     {
1135 1135
         return [];
1136 1136
     }
Please login to merge, or discard this patch.
src/system/UsersModule/Form/ConfigType/ConfigType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
                 'constraints' => [
140 140
                     new Type('string'),
141 141
                     new Regex([
142
-                        'pattern' => '/^(?:'. UsersConstant::UNAME_VALIDATION_PATTERN .'(?:\s*,\s*'. UsersConstant::UNAME_VALIDATION_PATTERN .')*)?$/uD',
142
+                        'pattern' => '/^(?:' . UsersConstant::UNAME_VALIDATION_PATTERN . '(?:\s*,\s*' . UsersConstant::UNAME_VALIDATION_PATTERN . ')*)?$/uD',
143 143
                         'message' => $options['translator']->__('The value provided does not appear to be a valid list of user names. The list should consist of one or more user names made up of lowercase letters, numbers, underscores, periods, or dashes. Separate each user name with a comma. For example: \'root, administrator, superuser\' (the quotes should not appear in the list). Spaces surrounding commas are ignored, however extra spaces before or after the list are not and will result in an error. Empty values (two commas together, or separated only by spaces) are not allowed. The list is optional, and if no values are to be defined then the list should be completely empty (no extra spaces, commas, or any other characters).')
144 144
                     ])
145 145
                 ]
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                 'constraints' => [
167 167
                     new Type('string'),
168 168
                     new Regex([
169
-                        'pattern' => '/^(?:'. UsersConstant::EMAIL_DOMAIN_VALIDATION_PATTERN .'(?:\s*,\s*'. UsersConstant::EMAIL_DOMAIN_VALIDATION_PATTERN .')*)?$/Ui',
169
+                        'pattern' => '/^(?:' . UsersConstant::EMAIL_DOMAIN_VALIDATION_PATTERN . '(?:\s*,\s*' . UsersConstant::EMAIL_DOMAIN_VALIDATION_PATTERN . ')*)?$/Ui',
170 170
                         'message' => $options['translator']->__('The contents of this field does not appear to be a valid list of e-mail address domains. The list should consist of one or more e-mail address domains (the part after the \'@\'), separated by commas. For example: \'gmail.com, example.org, acme.co.uk\' (the quotes should not appear in the list). Do not include the \'@\' itself. Spaces surrounding commas are ignored, however extra spaces before or after the list are not and will result in an error. Empty values (two commas together, or separated only by spaces) are not allowed. The list is optional, and if no values are to be defined then the list should be completely empty (no extra spaces, commas, or any other characters).')
171 171
                     ])
172 172
                 ]
Please login to merge, or discard this patch.
src/system/UsersModule/Form/Type/DeleteType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         $builder
25 25
             ->add('users', EntityType::class, [
26
-                'choice_attr' => function () {
26
+                'choice_attr' => function() {
27 27
                     return ['class' => 'user-checkboxes'];
28 28
                 },
29 29
                 'class' => 'ZikulaUsersModule:UserEntity',
Please login to merge, or discard this patch.
src/lib/i18n/ZMO.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -475,7 +475,7 @@
 block discarded – undo
475 475
             } else {
476 476
                 $expr = "nplurals=2; plural=n == 1 ? 0 : 1;";
477 477
             }
478
-            $this->pluralheader = $expr .';';
478
+            $this->pluralheader = $expr . ';';
479 479
         }
480 480
 
481 481
         return $this->pluralheader;
Please login to merge, or discard this patch.
src/lib/i18n/ZLanguageBrowser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,11 +59,11 @@
 block discarded – undo
59 59
         $availableLanguages = [];
60 60
         foreach ($matches as $match) {
61 61
             list($languageCode, $unusedVar) = explode('-', $match[1]) + ['', ''];
62
-            $priority = isset($match[2]) ? (float) $match[2] : 1.0;
62
+            $priority = isset($match[2]) ? (float)$match[2] : 1.0;
63 63
             $availableLanguages[][$languageCode] = $priority;
64 64
         }
65 65
 
66
-        $defaultPriority = (float) 0;
66
+        $defaultPriority = (float)0;
67 67
         $matchedLanguage = '';
68 68
         foreach ($availableLanguages as $key => $value) {
69 69
             $languageCode = key($value);
Please login to merge, or discard this patch.
src/lib/i18n/ZLanguage.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
         $domain = self::getThemeDomain($themeName);
430 430
         $theme = ThemeUtil::getTheme($themeName);
431 431
         if (null !== $theme) {
432
-            $path = $_this->searchOverrides($domain, $theme->getPath().'/Resources/locale');
432
+            $path = $_this->searchOverrides($domain, $theme->getPath() . '/Resources/locale');
433 433
         } else {
434 434
             $path = $_this->searchOverrides($domain, "themes/$themeName/locale");
435 435
         }
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
             return 'zikula';
453 453
         }
454 454
 
455
-        $_this  = self::getInstance();
455
+        $_this = self::getInstance();
456 456
         if (!$_this->locale) {
457 457
             $request = ServiceUtil::get('request');
458 458
             $_this->setup($request);
@@ -461,9 +461,9 @@  discard block
 block discarded – undo
461 461
         $domain = self::getModuleDomain($modName);
462 462
         $module = ModUtil::getModule($modName);
463 463
         if (null !== $module) {
464
-            $path = $_this->searchOverrides($domain, $module->getPath().'/Resources/locale');
464
+            $path = $_this->searchOverrides($domain, $module->getPath() . '/Resources/locale');
465 465
         } else {
466
-            $path = $_this->searchOverrides($domain, 'modules/'.$modName.'/locale');
466
+            $path = $_this->searchOverrides($domain, 'modules/' . $modName . '/locale');
467 467
         }
468 468
 
469 469
         return self::bindDomain($domain, $path);
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
     private function searchOverrides($domain, $path)
540 540
     {
541 541
         $lang = self::transformFS($this->languageCode);
542
-        $override = realpath('config/locale/'.$lang.'/LC_MESSAGES/'.$domain.'.mo');
542
+        $override = realpath('config/locale/' . $lang . '/LC_MESSAGES/' . $domain . '.mo');
543 543
 
544 544
         return $override ? realpath('config/locale') : realpath($path);
545 545
     }
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
     {
556 556
         $module = ModUtil::getModule($name);
557 557
 
558
-        return (null === $module) ? strtolower('module_'.$name) : $module->getTranslationDomain();
558
+        return (null === $module) ? strtolower('module_' . $name) : $module->getTranslationDomain();
559 559
     }
560 560
 
561 561
     /**
Please login to merge, or discard this patch.
src/lib/i18n/ZI18n.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
         $this->processSign($number);
175 175
         $number = number_format(abs($number), $this->locale['frac_digits'], $this->locale['mon_decimal_point'], $this->locale['mon_thousands_sep']);
176 176
         $space = ($this->sep_by_space ? ' ' : '');
177
-        $number = $this->cs_precedes ? $this->locale['currency_symbol']."$space$number" : "$number$space".$this->locale['currency_symbol'];
177
+        $number = $this->cs_precedes ? $this->locale['currency_symbol'] . "$space$number" : "$number$space" . $this->locale['currency_symbol'];
178 178
 
179 179
         switch ($this->sign_posn) {
180 180
             case 0:
Please login to merge, or discard this patch.
src/lib/Zikula/Component/SortableColumns/Tests/SortableColumnsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
         $router
33 33
             ->method('generate')
34
-            ->will($this->returnCallback(function ($id, $params) {
34
+            ->will($this->returnCallback(function($id, $params) {
35 35
                 return '/foo?' . http_build_query($params);
36 36
             }));
37 37
 
Please login to merge, or discard this patch.