Completed
Pull Request — master (#3788)
by Craig
01:31
created
src/system/SecurityCenterModule/Api/HtmlFilterApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
             // Fix the HTML that we want
115 115
             $value = preg_replace_callback(
116 116
                 '#\022([^\024]*)\024#',
117
-                    function ($matches) {
117
+                    function($matches) {
118 118
                         if (!$matches) {
119 119
                             return;
120 120
                         }
Please login to merge, or discard this patch.
src/system/SettingsModule/Form/Type/MainSettingsType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
         $this->translator = $options['translator'];
46 46
 
47 47
         $spaceReplaceCallbackTransformer = new CallbackTransformer(
48
-            function ($originalDescription) {
48
+            function($originalDescription) {
49 49
                 return $originalDescription;
50 50
             },
51
-            function ($submittedDescription) {
51
+            function($submittedDescription) {
52 52
                 return mb_ereg_replace(' ', '', $submittedDescription);
53 53
             }
54 54
         );
55 55
         $pageTitleLocalizationTransformer = new CallbackTransformer(
56
-            function ($originalPageTitle) {
56
+            function($originalPageTitle) {
57 57
                 $originalPageTitle = empty($originalPageTitle) ? '%pagetitle%' : $originalPageTitle;
58 58
                 $originalPageTitle = str_replace('%pagetitle%', $this->translator->__('%pagetitle%'), $originalPageTitle);
59 59
                 $originalPageTitle = str_replace('%sitename%', $this->translator->__('%sitename%'), $originalPageTitle);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
                 return $originalPageTitle;
63 63
             },
64
-            function ($submittedPageTitle) {
64
+            function($submittedPageTitle) {
65 65
                 $submittedPageTitle = str_replace($this->translator->__('%pagetitle%'), '%pagetitle%', $submittedPageTitle);
66 66
                 $submittedPageTitle = str_replace($this->translator->__('%sitename%'), '%sitename%', $submittedPageTitle);
67 67
                 $submittedPageTitle = str_replace($this->translator->__('%modulename%'), '%modulename%', $submittedPageTitle);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             ->add('entrypoint', TextType::class, [
108 108
                 'label' => $this->translator->__('Site entry point (front controller)'),
109 109
                 'constraints' => new Callback([
110
-                    'callback' => function ($data, ExecutionContextInterface $context) {
110
+                    'callback' => function($data, ExecutionContextInterface $context) {
111 111
                         $falseEntryPoints = ['admin.php', 'ajax.php', 'user.php', 'mo2json.php', 'jcss.php'];
112 112
                         $entryPointExt = pathinfo($data, PATHINFO_EXTENSION);
113 113
                         if (in_array($data, $falseEntryPoints) || strtolower($entryPointExt) != 'php') {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 $builder->create('permasearch', TextType::class, [
147 147
                     'label' => $this->translator->__('List to search for'),
148 148
                     'constraints' => new Callback([
149
-                        'callback' => function ($data, ExecutionContextInterface $context) {
149
+                        'callback' => function($data, ExecutionContextInterface $context) {
150 150
                             if (mb_ereg(',$', $data)) {
151 151
                                 $context->addViolation($this->translator->__('Error! In your permalink settings, strings cannot be terminated with a comma.'));
152 152
                             }
Please login to merge, or discard this patch.
src/system/CategoriesModule/Form/Type/CategoryTreeType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $resolver->setAllowedTypes('includeLeaf', 'bool');
81 81
         $resolver->setAllowedTypes('all', 'bool');
82 82
 
83
-        $resolver->setNormalizer('label', function (Options $options, $label) {
83
+        $resolver->setNormalizer('label', function(Options $options, $label) {
84 84
             if (null === $label || empty($label)) {
85 85
                 $isMultiple = $options['multiple'];
86 86
                 $translator = $options['translator'];
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
             return $label;
92 92
         });
93
-        $resolver->setNormalizer('placeholder', function (Options $options, $placeholder) {
93
+        $resolver->setNormalizer('placeholder', function(Options $options, $placeholder) {
94 94
             if (!$options['required']) {
95 95
                 if (null === $placeholder || empty($placeholder)) {
96 96
                     $isMultiple = $options['multiple'];
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
             return $placeholder;
104 104
         });
105
-        $resolver->setNormalizer('choices', function (Options $options, $choices) {
105
+        $resolver->setNormalizer('choices', function(Options $options, $choices) {
106 106
             if (empty($choices)) {
107 107
                 $choices = $this->getCategoryChoices($options);
108 108
             }
Please login to merge, or discard this patch.
src/system/CategoriesModule/Tests/Api/CategoryPermissionApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
         $api = $this->getMockBuilder(PermissionApiInterface::class)
105 105
             ->getMock();
106 106
         $api->method('hasPermission')->will($this->returnCallback(
107
-            function ($component = null, $instance = null, $level = ACCESS_NONE, $user = null) {
107
+            function($component = null, $instance = null, $level = ACCESS_NONE, $user = null) {
108 108
                 list($regId, $catId) = explode('::', $instance);
109 109
 
110 110
                 return $catId % 2 == 0;
Please login to merge, or discard this patch.
src/system/ThemeModule/DependencyInjection/ZikulaThemeExtension.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
     public function load(array $configs, ContainerBuilder $container)
25 25
     {
26
-        $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__.'/../Resources/config')));
26
+        $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__ . '/../Resources/config')));
27 27
 
28 28
         $loader->load('services.yml');
29 29
         $loader->load('twig.yml');
Please login to merge, or discard this patch.
system/ExtensionsModule/DependencyInjection/ZikulaExtensionsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function load(array $configs, ContainerBuilder $container)
28 28
     {
29
-        $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__.'/../Resources/config')));
29
+        $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__ . '/../Resources/config')));
30 30
 
31 31
         $loader->load('services.yml');
32 32
         $loader->load('helpers.yml');
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Twig/Extension/CoreExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,8 +131,8 @@
 block discarded – undo
131 131
     {
132 132
         $string = preg_replace_callback(
133 133
             '/(.)@(.)/s',
134
-            function ($m) {
135
-                return "&#" . sprintf("%03d", ord($m[1])) . ";@&#" .sprintf("%03d", ord($m[2])) . ";";
134
+            function($m) {
135
+                return "&#" . sprintf("%03d", ord($m[1])) . ";@&#" . sprintf("%03d", ord($m[2])) . ";";
136 136
             },
137 137
             $string
138 138
         );
Please login to merge, or discard this patch.
src/system/SecurityCenterModule/Tests/Api/HtmlFilterApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     {
65 65
         $variableApi = $this->getMockBuilder(VariableApiInterface::class)->getMock();
66 66
         $variableApi->method('getSystemVar')->willReturnCallback(
67
-            function ($string, $default) use ($htmlEntities, $outputFilter) {
67
+            function($string, $default) use ($htmlEntities, $outputFilter) {
68 68
                 switch ($string) {
69 69
                     case 'outputfilter':
70 70
                         return $outputFilter;
Please login to merge, or discard this patch.
src/system/UsersModule/DependencyInjection/ZikulaUsersExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function load(array $configs, ContainerBuilder $container)
28 28
     {
29
-        $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__.'/../Resources/config')));
29
+        $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__ . '/../Resources/config')));
30 30
 
31 31
         $loader->load('services.yml');
32 32
         $loader->load('doctrine.yml');
Please login to merge, or discard this patch.