Passed
Push — 3.0 ( 6a2c92...106529 )
by Axel
06:21
created
src/system/CategoriesModule/Tests/Api/CategoryPermissionApiTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,8 @@
 block discarded – undo
103 103
     {
104 104
         $api = $this->getMockBuilder(PermissionApiInterface::class)
105 105
             ->getMock();
106
-        $api->method('hasPermission')->willReturnCallback(static function ($component = null, $instance = null, $level = ACCESS_NONE, $user = null) {
107
-            list(/*$regId*/ , $catId) = explode('::', $instance);
106
+        $api->method('hasPermission')->willReturnCallback(static function($component = null, $instance = null, $level = ACCESS_NONE, $user = null) {
107
+            list(/*$regId*/, $catId) = explode('::', $instance);
108 108
 
109 109
             return 0 === $catId % 2;
110 110
         });
Please login to merge, or discard this patch.
src/system/BlocksModule/BlocksModuleInstaller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
         foreach ($blocks as $block) {
108 108
             $bKey = $block['bkey'];
109 109
             if (mb_strpos($bKey, ':')) {
110
-                [/*$moduleName*/ , $bKey] = explode(':', $bKey);
110
+                [/*$moduleName*/, $bKey] = explode(':', $bKey);
111 111
             }
112 112
             $this->entityManager->getConnection()->executeUpdate('UPDATE blocks SET bKey=? WHERE bid=?', [trim($bKey, '\\'), $block['bid']]);
113 113
         }
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Twig/Extension/CoreExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             return $string;
73 73
         }
74 74
 
75
-        return (bool)$string ? $this->translator->trans('Yes') : $this->translator->trans('No');
75
+        return (bool) $string ? $this->translator->trans('Yes') : $this->translator->trans('No');
76 76
     }
77 77
 
78 78
     /**
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $string = preg_replace_callback(
100 100
             '/(.)@(.)/s',
101
-            static function ($m) {
101
+            static function($m) {
102 102
                 return '&#' . sprintf('%03d', ord($m[1])) . ';@&#' . sprintf('%03d', ord($m[2])) . ';';
103 103
             },
104 104
             $string
Please login to merge, or discard this patch.
src/system/ThemeModule/Engine/Asset/Merger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,8 @@
 block discarded – undo
113 113
             $this->lifetime,
114 114
             $this->kernel->getCacheDir() . '/assets/' . $type
115 115
         );
116
-        $key = md5(serialize($assets)) . (int)$this->minify . (int)$this->compress . $this->lifetime . '.combined.' . $type;
117
-        $cacheService->get($key, function () use ($cachedFiles, $type) {
116
+        $key = md5(serialize($assets)) . (int) $this->minify . (int) $this->compress . $this->lifetime . '.combined.' . $type;
117
+        $cacheService->get($key, function() use ($cachedFiles, $type) {
118 118
             $data = [];
119 119
             foreach ($cachedFiles as $k => $file) {
120 120
                 $this->readFile($data, $file, $type);
Please login to merge, or discard this patch.