Completed
Push — master ( 7065a9...1a6be8 )
by Craig
08:16
created
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/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.
src/lib/Zikula/Core/Doctrine/EntityAccess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
             return $getMethod;
129 129
         }
130 130
 
131
-        $isMethod  = 'is' . ucfirst($name);
131
+        $isMethod = 'is' . ucfirst($name);
132 132
         if (method_exists($this, $isMethod)) {
133 133
             return $isMethod;
134 134
         }
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/DependencyInjection/CoreExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             }
109 109
 
110 110
             $finder = Finder::create()->files()
111
-                ->filter(function (\SplFileInfo $file) {
111
+                ->filter(function(\SplFileInfo $file) {
112 112
                     return 2 === substr_count($file->getBasename(), '.') && preg_match('/\.\w+$/', $file->getBasename());
113 113
                 })
114 114
                 ->in($dirs);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 list($domain, $locale, $format) = explode('.', $file->getBasename(), 3);
119 119
                 $translatorServiceDefinition->addMethodCall('addResource', [
120 120
                     $format,
121
-                    (string) $file,
121
+                    (string)$file,
122 122
                     $locale,
123 123
                     $domain
124 124
                 ]);
Please login to merge, or discard this patch.
CoreBundle/DependencyInjection/Compiler/RegisterCoreListenersPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 }
34 34
 
35 35
                 if (!isset($event['method'])) {
36
-                    $event['method'] = 'on'.preg_replace([
36
+                    $event['method'] = 'on' . preg_replace([
37 37
                         '/(?<=\b)[a-z]/ie',
38 38
                         '/[^a-z0-9]/i'
39 39
                     ], ['strtoupper("\\0")', ''], $event['event']);
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function __construct($debug)
31 31
     {
32
-        $this->debug = (bool) $debug;
32
+        $this->debug = (bool)$debug;
33 33
     }
34 34
 
35 35
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         ->fixXmlConfig('fallback')
57 57
         ->children()
58 58
         ->arrayNode('fallbacks')
59
-        ->beforeNormalization()->ifString()->then(function ($v) {
59
+        ->beforeNormalization()->ifString()->then(function($v) {
60 60
             return [$v];
61 61
         })->end()
62 62
         ->prototype('scalar')->end()
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Tests/Twig/Node/SwitchNodeTest.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     case 0:
64 64
         echo "case 0";
65 65
 }
66
-EOF
66
+eof
67 67
         ];
68 68
 
69 69
         // #2 switch with two cases, second with break
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         echo "case 1";
90 90
         break;
91 91
 }
92
-EOF
92
+eof
93 93
         ];
94 94
 
95 95
         // #3 switch with two cases (second with break) and default
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     default:
118 118
         echo "default case";
119 119
 }
120
-EOF
120
+eof
121 121
         ];
122 122
 
123 123
         // #4 switch with two cases (first without body, second with break) and default
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     default:
145 145
         echo "default case";
146 146
 }
147
-EOF
147
+eof
148 148
         ];
149 149
 
150 150
         return $tests;
Please login to merge, or discard this patch.