Completed
Push — master ( a923e4...fe6df8 )
by Craig
05:56
created
src/system/SearchModule/Entity/Repository/SearchStatRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
             $i = 1;
58 58
             foreach ($filters as $w_key => $w_value) {
59 59
                 $qb->andWhere($qb->expr()->eq('tbl.' . $w_key, '?' . $i))
60
-                   ->setParameter($i, $w_value);
60
+                    ->setParameter($i, $w_value);
61 61
                 $i++;
62 62
             }
63 63
         }
Please login to merge, or discard this patch.
src/system/ThemeModule/Engine/Asset/CssResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         }
58 58
         $headers = '';
59 59
         foreach ($assets as $asset) {
60
-            $headers .= '<link rel="stylesheet" href="'.$asset.'" type="text/css">'."\n";
60
+            $headers .= '<link rel="stylesheet" href="' . $asset . '" type="text/css">' . "\n";
61 61
         }
62 62
 
63 63
         return $headers;
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
@@ -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('theme_engine.yml');
Please login to merge, or discard this patch.
src/system/PermissionsModule/Tests/Api/PermissionApiTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $this->userRepo
44 44
             ->method('findByUids')
45 45
             ->with($this->anything())
46
-            ->will($this->returnCallback(function (array $uids) /*use ($user)*/ {
46
+            ->will($this->returnCallback(function(array $uids) /*use ($user)*/ {
47 47
                 $groups = [PermissionApi::UNREGISTERED_USER_GROUP => []];
48 48
                 if (in_array(1, $uids)) { // guest
49 49
                     $groups = [1 => []]; // gid => $group
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $this->session
119 119
             ->method('get')
120 120
             ->with($this->equalTo('uid'))
121
-            ->will($this->returnCallback(function () use ($uid) {
121
+            ->will($this->returnCallback(function() use ($uid) {
122 122
                 return isset($uid) ? $uid : false; // when no uid is available, Zikula_Session::get() returns `false`
123 123
             }));
124 124
         $api = new PermissionApi($this->permRepo, $this->userRepo, $this->session, $this->translator);
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,9 +45,11 @@
 block discarded – undo
45 45
             ->with($this->anything())
46 46
             ->will($this->returnCallback(function (array $uids) /*use ($user)*/ {
47 47
                 $groups = [PermissionApi::UNREGISTERED_USER_GROUP => []];
48
-                if (in_array(1, $uids)) { // guest
48
+                if (in_array(1, $uids)) {
49
+// guest
49 50
                     $groups = [1 => []]; // gid => $group
50
-                } elseif (in_array(2, $uids)) { // admin
51
+                } elseif (in_array(2, $uids)) {
52
+// admin
51 53
                     $groups = [1 => [], 2 => []]; // gid => $group
52 54
                 }
53 55
                 $this->user
Please login to merge, or discard this patch.
src/system/PermissionsModule/Entity/Repository/PermissionRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         }
48 48
         if (isset($component)) {
49 49
             $qb->andWhere("p.component LIKE :permgrpparts")
50
-                ->setParameter('permgrpparts', $component.'%');
50
+                ->setParameter('permgrpparts', $component . '%');
51 51
         }
52 52
 
53 53
         return $qb->getQuery()->getResult();
Please login to merge, or discard this patch.
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.