@@ -103,8 +103,8 @@ |
||
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 | }); |
@@ -107,7 +107,7 @@ |
||
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 | } |
@@ -72,7 +72,7 @@ discard block |
||
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 |
||
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 |
@@ -113,8 +113,8 @@ |
||
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); |