Completed
Pull Request — master (#4522)
by Craig
13:45
created
src/system/PermissionsModule/Tests/Api/PermissionApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $this->currentUserApi
68 68
             ->method('get')
69 69
             ->with($this->equalTo('uid'))
70
-            ->willReturnCallback(static function () use ($userId) {
70
+            ->willReturnCallback(static function() use ($userId) {
71 71
                 return $userId ?? Constant::USER_ID_ANONYMOUS;
72 72
             });
73 73
         $api = new PermissionApi($this->permRepo, $this->userRepo, $this->currentUserApi, $this->translator);
Please login to merge, or discard this patch.
src/system/PermissionsModule/Tests/Api/AbstractPermissionTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         $this->userRepo
75 75
             ->method('findByUids')
76 76
             ->with($this->anything())
77
-            ->willReturnCallback(function (array $uids) {
77
+            ->willReturnCallback(function(array $uids) {
78 78
                 $groups = new ArrayCollection();
79 79
                 // getGroups returns [gid => $group, gid => $group, ...]
80 80
                 if (in_array(self::RANDOM_USER_ID, $uids, true)) {
Please login to merge, or discard this patch.
src/system/CategoriesModule/Entity/Repository/CategoryRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
52 52
 
53 53
         if ($parentId > 0) {
54 54
             $qb->andWhere('c.parent = :parentid')
55
-               ->setParameter('parentid', $parentId);
55
+                ->setParameter('parentid', $parentId);
56 56
         }
57 57
 
58 58
         if (null !== $excludedId && $excludedId > 0) {
59 59
             $qb->andWhere('c.id != :id')
60
-               ->setParameter('id', $excludedId);
60
+                ->setParameter('id', $excludedId);
61 61
         }
62 62
 
63 63
         $query = $qb->getQuery();
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Composer/Process/RequireJsProcess.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
 if (typeof exports !== "undefined" && typeof module !== "undefined") {
209 209
     module.exports = components;
210 210
 }
211
-EOT;
211
+eot;
212 212
 
213 213
         return $output;
214 214
     }
Please login to merge, or discard this patch.
src/system/ZAuthModule/Helper/FileIOHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         if (empty($importValues)) {
82 82
             return $this->trans('Error! The import file does not have values.');
83 83
         }
84
-        $generateErrorList = function ($errors) {
84
+        $generateErrorList = function($errors) {
85 85
             $errorList = '';
86 86
             foreach ($errors as $error) {
87 87
                 $errorList .= $error->getMessage() . PHP_EOL;
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Command/GenerateTestUsersCommand.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
 <info>php %command.full_name% 1000 --active=I --verified=2 --regdate='>20200101'</info>
120 120
 
121
-EOT
121
+eot
122 122
             );
123 123
     }
124 124
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         }
186 186
         $randTimeStamp = mt_rand($regDate->getTimestamp(), $this->nowUTC->getTimestamp());
187 187
 
188
-        return \DateTime::createFromFormat("U", "${randTimeStamp}", $utcTz);
188
+        return \DateTime::createFromFormat("U", "${randtimestamp}", $utcTz);
189 189
     }
190 190
 
191 191
     private function insertUser(string $uname): void
Please login to merge, or discard this patch.
src/system/UsersModule/Command/DeleteCommand.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 
86 86
 <info>--date</info> <comment>YYYYMMDDHHMMSS</comment> before deleting, filter user collection by date <comment>before</comment> this date.
87 87
 
88
-EOT
88
+eot
89 89
             );
90 90
     }
91 91
 
Please login to merge, or discard this patch.
src/system/UsersModule/Helper/DeleteHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         }
100 100
         if (isset($date)) {
101 101
             $date = \DateTime::createFromFormat('YmdHis', $date, new \DateTimeZone('UTC'));
102
-            $users = $users->filter(function (UserEntity $user) use ($date) {
102
+            $users = $users->filter(function(UserEntity $user) use ($date) {
103 103
                 return $user->getRegistrationDate() < $date;
104 104
             });
105 105
         }
Please login to merge, or discard this patch.
src/Zikula/CoreInstallerBundle/Stage/Install/CompleteStage.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,11 +94,11 @@
 block discarded – undo
94 94
     <title>${subject}</title>
95 95
 </head>
96 96
 <body>
97
-<h1>Hi ${uName}!</h1>
97
+<h1>Hi ${uname}!</h1>
98 98
 <p>Zikula has been successfully installed at <a href="${url}">${url}</a>. If you have further questions,
99 99
 visit <a href="https://ziku.la">ziku.la</a></p>
100 100
 </body>
101
-EOF;
101
+eof;
102 102
         $email = (new Email())
103 103
             ->from($adminUser->getEmail())
104 104
             ->to($adminUser->getEmail())
Please login to merge, or discard this patch.