Completed
Push — master ( 579211...343140 )
by Craig
06:19
created
src/system/MenuModule/Controller/NodeController.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,9 +122,9 @@
 block discarded – undo
122 122
         $entityId = str_replace($this->domTreeNodePrefix, '', $node['id']);
123 123
         $menuItemEntity = $repo->find($entityId);
124 124
         $oldParent = $request->request->get('old_parent');
125
-        $oldPosition = (int) $request->request->get('old_position');
125
+        $oldPosition = (int)$request->request->get('old_position');
126 126
         $parent = $request->request->get('parent');
127
-        $position = (int) $request->request->get('position');
127
+        $position = (int)$request->request->get('position');
128 128
         if ($oldParent == $parent) {
129 129
             $diff = $oldPosition - $position; // if $diff is positive, then node moved up
130 130
             $methodName = $diff > 0 ? 'moveUp' : 'moveDown';
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,8 @@
 block discarded – undo
56 56
                         $parent = $repo->find($request->request->get('parent'));
57 57
                         $menuItemEntity->setParent($parent);
58 58
                         $menuItemEntity->setRoot($parent->getRoot());
59
-                    } elseif (empty($parent) && $request->request->has('after')) { // sibling of top-level child
59
+                    } elseif (empty($parent) && $request->request->has('after')) {
60
+// sibling of top-level child
60 61
                         $sibling = $repo->find($request->request->get('after'));
61 62
                         $menuItemEntity->setParent($sibling->getParent());
62 63
                         $menuItemEntity->setRoot($sibling->getRoot());
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
@@ -36,12 +36,12 @@
 block discarded – undo
36 36
 
37 37
         if ($parentId > 0) {
38 38
             $qb->andWhere('c.parent = :parentid')
39
-               ->setParameter('parentid', $parentId);
39
+                ->setParameter('parentid', $parentId);
40 40
         }
41 41
 
42 42
         if ($excludedId > 0) {
43 43
             $qb->andWhere('c.id != :id')
44
-               ->setParameter('id', $excludedId);
44
+                ->setParameter('id', $excludedId);
45 45
         }
46 46
 
47 47
         $query = $qb->getQuery();
Please login to merge, or discard this patch.
CategoriesModule/Form/DataTransformer/CategoriesCollectionTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $class = $this->entityCategoryClass;
36 36
 
37 37
         foreach ($value as $regId => $categories) {
38
-            $regId = (int) substr($regId, strpos($regId, '_') + 1);
38
+            $regId = (int)substr($regId, strpos($regId, '_') + 1);
39 39
             $subCollection = new ArrayCollection();
40 40
             if (!is_array($categories) && $categories instanceof CategoryEntity) {
41 41
                 $categories = [$categories];
Please login to merge, or discard this patch.
src/system/UsersModule/Block/OnlineBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function display(array $properties)
27 27
     {
28
-        if (!$this->hasPermission('Onlineblock::', $properties['bid'].'::', ACCESS_READ)) {
28
+        if (!$this->hasPermission('Onlineblock::', $properties['bid'] . '::', ACCESS_READ)) {
29 29
             return '';
30 30
         }
31 31
 
Please login to merge, or discard this patch.
src/system/UsersModule/Block/LoginBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 {
22 22
     public function display(array $properties)
23 23
     {
24
-        if ($this->hasPermission('Loginblock::', $properties['title'].'::', ACCESS_READ)) {
24
+        if ($this->hasPermission('Loginblock::', $properties['title'] . '::', ACCESS_READ)) {
25 25
             if (!$this->get('zikula_users_module.current_user')->isLoggedIn()) {
26 26
                 $request = $this->get('request_stack')->getCurrentRequest();
27 27
 
Please login to merge, or discard this patch.
src/system/UsersModule/Controller/FileIOController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             if ($form->get('download')->isClicked()) {
47 47
                 $data = $form->getData();
48 48
                 $response = new StreamedResponse();
49
-                $response->setCallback(function () use ($data) {
49
+                $response->setCallback(function() use ($data) {
50 50
                     $fields = ['uid', 'uname', 'activated', 'email', 'user_regdate', 'lastlogin', 'groups'];
51 51
                     foreach ($fields as $k => $field) {
52 52
                         if (isset($data[$field]) && !$data[$field]) {
Please login to merge, or discard this patch.
src/system/UsersModule/UsersModuleInstaller.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                     UsersConstant::MODVAR_LOGIN_DISPLAY_APPROVAL_STATUS
118 118
                 ];
119 119
                 foreach ($modvarsToConvertToBool as $modvarToConvert) {
120
-                    $this->setVar($modvarToConvert, (bool) $this->getVar($modvarToConvert));
120
+                    $this->setVar($modvarToConvert, (bool)$this->getVar($modvarToConvert));
121 121
                 }
122 122
                 $this->schemaTool->update(['Zikula\UsersModule\Entity\UserEntity']);
123 123
                 $this->delVar('login_redirect');
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
             $value = in_array($migratedModVarName, [
291 291
                 ZAuthConstant::MODVAR_EMAIL_VERIFICATION_REQUIRED,
292 292
                 ZAuthConstant::MODVAR_PASSWORD_STRENGTH_METER_ENABLED
293
-            ]) ? (bool) $value : $value;
293
+            ]) ? (bool)$value : $value;
294 294
             $this->container->get('zikula_extensions_module.api.variable')->set('ZikulaZAuthModule', $migratedModVarName, $value);
295 295
         }
296 296
     }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
 
296 296
     /**
297 297
      * These modvar names used to have UsersConstant values, but have been moved to ZAuthConstant and maintain their actual values.
298
-     * @return array
298
+     * @return string[]
299 299
      */
300 300
     private function getMigratedModVarNames()
301 301
     {
Please login to merge, or discard this patch.
src/system/MailerModule/Api/MailerApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
 
176 176
         // add body with formatting
177 177
         $bodyFormat = 'text/plain';
178
-        if (!empty($altBody) || ((bool) $html) || $this->dataValues['html']) {
178
+        if (!empty($altBody) || ((bool)$html) || $this->dataValues['html']) {
179 179
             $bodyFormat = 'text/html';
180 180
         }
181 181
         if (isset($body)) {
Please login to merge, or discard this patch.
src/system/SecurityCenterModule/Entity/Repository/IntrusionRepository.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                 $qb->from('ZikulaUsersModule:UserEntity', 'u');
109 109
                 $qb->andWhere($qb->expr()->eq('tbl.user', 'u.uid'));
110 110
                 $qb->andWhere($qb->expr()->eq('tbl.user', ':uid'))
111
-                   ->setParameter('uid', $uid);
111
+                    ->setParameter('uid', $uid);
112 112
             }
113 113
         }
114 114
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $i = 1;
118 118
             foreach ($filters as $w_key => $w_value) {
119 119
                 $qb->andWhere($qb->expr()->eq('tbl.' . $w_key, '?' . $i))
120
-                   ->setParameter($i, $w_value);
120
+                    ->setParameter($i, $w_value);
121 121
                 $i++;
122 122
             }
123 123
         }
@@ -144,12 +144,12 @@  discard block
 block discarded – undo
144 144
 
145 145
         if ($fieldName == 'uid') {
146 146
             $qb->select('DISTINCT(u.' . $fieldName . ')')
147
-               ->from('ZikulaUsersModule:UserEntity', 'u')
148
-               ->where($qb->expr()->eq('tbl.user', 'u.uid'))
149
-               ->addOrderBy('u.uname', 'ASC');
147
+                ->from('ZikulaUsersModule:UserEntity', 'u')
148
+                ->where($qb->expr()->eq('tbl.user', 'u.uid'))
149
+                ->addOrderBy('u.uname', 'ASC');
150 150
         } else {
151 151
             $qb->select('DISTINCT(tbl.' . $fieldName . ')')
152
-               ->addOrderBy('tbl.' . $fieldName, 'ASC');
152
+                ->addOrderBy('tbl.' . $fieldName, 'ASC');
153 153
         }
154 154
 
155 155
         $query = $qb->getQuery();
Please login to merge, or discard this patch.