Completed
Pull Request — master (#4037)
by Craig
05:32
created
src/lib/Zikula/Bundle/CoreInstallerBundle/Helper/ParameterHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $this->variableApi->set(VariableApi::CONFIG, 'language_i18n', $params['locale']);
111 111
         // Set the System Identifier as a unique string.
112 112
         if (!$this->variableApi->get(VariableApi::CONFIG, 'system_identifier')) {
113
-            $this->variableApi->set(VariableApi::CONFIG, 'system_identifier', str_replace('.', '', uniqid((string) (random_int(1000000000, 9999999999)), true)));
113
+            $this->variableApi->set(VariableApi::CONFIG, 'system_identifier', str_replace('.', '', uniqid((string)(random_int(1000000000, 9999999999)), true)));
114 114
         }
115 115
         // add admin email as site email
116 116
         $this->variableApi->set(VariableApi::CONFIG, 'adminmail', $params['email']);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             }
158 158
 
159 159
             // on upgrade, if a user doesn't add their custom theme back to the /theme dir, it should be reset to a core theme, if available.
160
-            $defaultTheme = (string) $this->variableApi->getSystemVar('Default_Theme');
160
+            $defaultTheme = (string)$this->variableApi->getSystemVar('Default_Theme');
161 161
             if (!$this->kernel->isBundle($defaultTheme) && $this->kernel->isBundle('ZikulaBootstrapTheme')) {
162 162
                 $this->variableApi->set(VariableApi::CONFIG, 'Default_Theme', 'ZikulaBootstrapTheme');
163 163
             }
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Command/ZikulaExtensionUninstallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $requiredDependents = $this->dependencyHelper->getDependentExtensions($extension);
56 56
         if (!empty($requiredDependents)) {
57 57
             if ($input->isInteractive()) {
58
-                $names = implode(', ', array_map(function ($dependent) {
58
+                $names = implode(', ', array_map(function($dependent) {
59 59
                     return $dependent->getModname();
60 60
                 }, $requiredDependents));
61 61
 
Please login to merge, or discard this patch.
src/system/ZAuthModule/Listener/UserDeleteListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
     public function deleteUsers(GenericEvent $event): void
56 56
     {
57
-        $deletedUid = (int) $event->getSubject();
57
+        $deletedUid = (int)$event->getSubject();
58 58
         $this->mappingRepository->removeByZikulaId($deletedUid);
59 59
         $this->verificationRepository->removeByZikulaId($deletedUid);
60 60
     }
Please login to merge, or discard this patch.
src/system/RoutesModule/Listener/Base/AbstractUserListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
      */
121 121
     public function delete(GenericEvent $event): void
122 122
     {
123
-        $userId = (int) $event->getSubject();
123
+        $userId = (int)$event->getSubject();
124 124
     
125 125
         
126 126
         $repo = $this->entityFactory->getRepository('route');
Please login to merge, or discard this patch.
Validator/Constraints/AuthenticateAdminLoginValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                 ->addViolation()
79 79
             ;
80 80
         } else {
81
-            $granted = $this->permissionApi->hasPermission('.*', '.*', ACCESS_ADMIN, (int) $user['uid']);
81
+            $granted = $this->permissionApi->hasPermission('.*', '.*', ACCESS_ADMIN, (int)$user['uid']);
82 82
             if (!$granted) {
83 83
                 $this->context
84 84
                     ->buildViolation($this->__('Error! You logged in to an account without Admin permissions'))
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreInstallerBundle/Helper/MigrationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         }
79 79
 
80 80
         $mapping = new AuthenticationMappingEntity();
81
-        $mapping->setUid((int) $user['uid']);
81
+        $mapping->setUid((int)$user['uid']);
82 82
         $mapping->setUname($user['uname']);
83 83
         $mapping->setEmail($user['email']);
84 84
         $mapping->setVerifiedEmail(true);
Please login to merge, or discard this patch.
src/system/RoutesModule/Helper/Base/AbstractControllerHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
         $templateParameters['all'] = 'csv' === $request->getRequestFormat() ? 1 : $request->query->getInt('all');
153 153
         $showOnlyOwnEntriesSetting = (bool)$request->query->getInt(
154 154
             'own',
155
-            (int) $this->variableApi->get('ZikulaRoutesModule', 'showOnlyOwnEntries')
155
+            (int)$this->variableApi->get('ZikulaRoutesModule', 'showOnlyOwnEntries')
156 156
         );
157 157
         $showOnlyOwnEntriesSetting = $showOnlyOwnEntriesSetting ? 1 : 0;
158 158
         $templateParameters['own'] = $showOnlyOwnEntriesSetting;
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
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         echo "case 0";
72 72
     default:
73 73
 }
74
-EOF
74
+eof
75 75
         ];
76 76
 
77 77
         // #2 switch with two cases, second with break
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         break;
99 99
     default:
100 100
 }
101
-EOF
101
+eof
102 102
         ];
103 103
 
104 104
         // #3 switch with two cases (second with break) and default
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     default:
127 127
         echo "default case";
128 128
 }
129
-EOF
129
+eof
130 130
         ];
131 131
 
132 132
         // #4 switch with two cases (first without body, second with break) and default
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     default:
154 154
         echo "default case";
155 155
 }
156
-EOF
156
+eof
157 157
         ];
158 158
 
159 159
         return $tests;
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Tests/Translation/PhpFileExtractorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
             $kernel = $this->getMockBuilder(ZikulaHttpKernelInterface::class)->getMock();
83 83
             $kernel
84 84
                 ->method('getBundles')
85
-                ->willReturnCallback(function () {
85
+                ->willReturnCallback(function() {
86 86
                     $bundle = $this->getMockForAbstractClass(
87 87
                         AbstractBundle::class, [],
88 88
                         '',
Please login to merge, or discard this patch.