Completed
Pull Request — master (#4242)
by Craig
05:20
created
src/system/RoutesModule/Twig/TwigExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         );
97 97
 
98 98
         $container = $this->container;
99
-        $path = preg_replace_callback('#%(.*?)%#', static function ($matches) use ($container) {
99
+        $path = preg_replace_callback('#%(.*?)%#', static function($matches) use ($container) {
100 100
             return '<abbr title="' . htmlspecialchars($matches[0]) . '">'
101 101
                 . htmlspecialchars($container->getParameter($matches[1]))
102 102
                 . '</abbr>'
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         $defaults = $route->getDefaults();
107 107
         $requirements = $route->getRequirements();
108
-        $path = preg_replace_callback('#{(.*?)}#', function ($matches) use ($defaults, $requirements) {
108
+        $path = preg_replace_callback('#{(.*?)}#', function($matches) use ($defaults, $requirements) {
109 109
             $title = '';
110 110
             if (isset($defaults[$matches[1]])) {
111 111
                 $title .= $this->trans('Default: %value%', ['%value%' => htmlspecialchars($defaults[$matches[1]])]);
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Resources/skeleton/extension/BundleClass.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 
16 16
 use Zikula\ExtensionsModule\Abstract<?php echo $type; ?>;
17 17
 
18
-class <?php echo $name; ?> extends Abstract<?php echo $type."\n"; ?>
18
+class <?php echo $name; ?> extends Abstract<?php echo $type . "\n"; ?>
19 19
 {
20 20
 }
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Resources/skeleton/extension/composer.json.tpl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
             "class": "<?php echo str_replace('\\', '\\\\', $namespace); ?>\\<?php echo $bundleClass; ?>",
23 23
             "displayname": "<?php echo $bundleClass; ?>",
24 24
             "icon": "fas fa-layer-group",
25
-            "url": "<?php echo mb_strtolower($vendor.$name.$type); ?>",
25
+            "url": "<?php echo mb_strtolower($vendor . $name . $type); ?>",
26 26
 <?php if ('Module' === $type) { ?>
27 27
             "securityschema": {
28
-                "<?php echo $vendor.$name.$type; ?>::": "::"
28
+                "<?php echo $vendor . $name . $type; ?>::": "::"
29 29
             },
30 30
 <?php } ?>
31 31
             "capabilities": {
Please login to merge, or discard this patch.
src/system/ThemeModule/Tests/Engine/AssetBagTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         $bag->add(['C' => 2]);
139 139
         $bag->add(['A' => 5]);
140 140
         $bag->add(['A' => 7]);
141
-        $this->assertEquals(3, $bag->allWithWeight()['A']);  // asset listed at lowest weight submitted
141
+        $this->assertEquals(3, $bag->allWithWeight()['A']); // asset listed at lowest weight submitted
142 142
         $expected = [
143 143
             'B' => 1,
144 144
             'C' => 2,
Please login to merge, or discard this patch.