Completed
Push — master ( 845ccf...d4fd7b )
by Craig
14:12 queued 07:02
created
src/system/PermissionsModule/Controller/PermissionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $templateParameters['lockadmin'] = $this->getVar('lockadmin', 1) ? 1 : 0;
64 64
         $templateParameters['adminId'] = $this->getVar('adminid', 1);
65 65
         $templateParameters['schema'] = $this->get('zikula_permissions_module.helper.schema_helper')->getAllSchema();
66
-        $templateParameters['enableFilter'] = (bool) $this->getVar('filter', 1);
66
+        $templateParameters['enableFilter'] = (bool)$this->getVar('filter', 1);
67 67
 
68 68
         return $templateParameters;
69 69
     }
Please login to merge, or discard this patch.
src/system/ZAuthModule/Api/PasswordApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
         $factory = new RandomLibFactory();
136 136
         $generator = $factory->getMediumStrengthGenerator();
137 137
         $chars = str_replace($saltDelimiter, '', $this->randomStringCharacters);
138
-        $saltStr =  $generator->generateString($saltLength, $chars);
138
+        $saltStr = $generator->generateString($saltLength, $chars);
139 139
 
140 140
         return $this->buildSaltedHash($unhashedData, $hashMethodName, $saltStr, $hashMethodNameToCode, $saltDelimiter);
141 141
     }
Please login to merge, or discard this patch.
src/system/BlocksModule/BlocksModuleInstaller.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 $this->entityManager->flush();
121 121
 
122 122
                 $collapseable = $this->getVar('collapseable');
123
-                $this->setVar('collapseable', (bool) $collapseable);
123
+                $this->setVar('collapseable', (bool)$collapseable);
124 124
 
125 125
             case '3.9.2':
126 126
                 // convert Text and Html block types so properties is proper array
@@ -139,10 +139,10 @@  discard block
 block discarded – undo
139 139
                 $searchBlocks = $this->entityManager->getRepository('ZikulaBlocksModule:BlockEntity')->findBy(['blocktype' => 'Search']);
140 140
                 foreach ($searchBlocks as $searchBlock) {
141 141
                     $properties = $searchBlock->getProperties();
142
-                    $properties['displaySearchBtn'] = (bool) $properties['displaySearchBtn'];
142
+                    $properties['displaySearchBtn'] = (bool)$properties['displaySearchBtn'];
143 143
                     if (isset($properties['active'])) {
144 144
                         foreach ($properties['active'] as $module => $active) {
145
-                            $properties['active'][$module] = (bool) $active;
145
+                            $properties['active'][$module] = (bool)$active;
146 146
                         }
147 147
                     }
148 148
                     $searchBlock->setProperties($properties);
Please login to merge, or discard this patch.
src/system/BlocksModule/Block/Form/Type/TextBlockType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
         ;
33 33
         $builder->get('content')
34 34
             ->addModelTransformer(new CallbackTransformer(
35
-                function ($originalDescription) {
35
+                function($originalDescription) {
36 36
                     return $originalDescription;
37 37
                 },
38
-                function ($submittedDescription) {
38
+                function($submittedDescription) {
39 39
                     // remove all HTML tags
40 40
                     return strip_tags($submittedDescription);
41 41
                 }
Please login to merge, or discard this patch.
src/system/BlocksModule/Controller/PositionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      */
86 86
     public function deleteAction(Request $request, BlockPositionEntity $positionEntity)
87 87
     {
88
-        if (!$this->hasPermission('ZikulaBlocksModule::position', $positionEntity->getName() .'::'. $positionEntity->getPid(), ACCESS_DELETE)) {
88
+        if (!$this->hasPermission('ZikulaBlocksModule::position', $positionEntity->getName() . '::' . $positionEntity->getPid(), ACCESS_DELETE)) {
89 89
             throw new AccessDeniedException();
90 90
         }
91 91
 
Please login to merge, or discard this patch.
src/system/BlocksModule/Helper/InstallerHelper.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
             $blockClassName = preg_match('/.*Block$/', $blockClassName) ? $blockClassName : $blockClassName . 'Block';
83 83
         } catch (\Exception $e) {
84 84
             $moduleBundle = null;
85
-            $blockClassName = '\\' . ucwords($moduleName).'\\'.'Block\\'.ucwords($blockEntity->getBkey());
85
+            $blockClassName = '\\' . ucwords($moduleName) . '\\' . 'Block\\' . ucwords($blockEntity->getBkey());
86 86
             $blockClassName = preg_match('/.*Block$/', $blockClassName) ? $blockClassName : $blockClassName . 'Block';
87 87
             $blockClassNameOld = '\\' . ucwords($moduleName) . '_' . 'Block_' . ucwords($blockEntity->getBkey());
88 88
             $blockClassName = class_exists($blockClassName) ? $blockClassName : $blockClassNameOld;
Please login to merge, or discard this patch.
src/system/RoutesModule/Translation/ZikulaPatternGenerationStrategy.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
                 || (self::STRATEGY_PREFIX_EXCEPT_DEFAULT === $this->strategy && $this->defaultLocale !== $locale)) {
105 105
                 $i18nPattern = '/' . $locale . $i18nPattern;
106 106
                 if (null !== $route->getOption('i18n_prefix')) {
107
-                    $i18nPattern = $route->getOption('i18n_prefix').$i18nPattern;
107
+                    $i18nPattern = $route->getOption('i18n_prefix') . $i18nPattern;
108 108
                 }
109 109
             }
110 110
 
Please login to merge, or discard this patch.
src/system/MenuModule/Block/Form/Type/MenuType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
         ;
40 40
         $builder->get('options')
41 41
             ->addModelTransformer(new CallbackTransformer(
42
-                function ($text) {
42
+                function($text) {
43 43
                     return $text;
44 44
                 },
45
-                function ($text) {
45
+                function($text) {
46 46
                     if (empty($text)) {
47 47
                         return '{}';
48 48
                     }
Please login to merge, or discard this patch.
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.