@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $this->userRepo |
| 77 | 77 | ->method('findByUids') |
| 78 | 78 | ->with($this->anything()) |
| 79 | - ->willReturnCallback(function (array $uids) { |
|
| 79 | + ->willReturnCallback(function(array $uids) { |
|
| 80 | 80 | $groups = new ArrayCollection(); |
| 81 | 81 | // getGroups returns [gid => $group, gid => $group, ...] |
| 82 | 82 | if (in_array(self::RANDOM_USER_ID, $uids, true)) { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $this->currentUserApi |
| 145 | 145 | ->method('get') |
| 146 | 146 | ->with($this->equalTo('uid')) |
| 147 | - ->willReturnCallback(static function () use ($userId) { |
|
| 147 | + ->willReturnCallback(static function() use ($userId) { |
|
| 148 | 148 | return $userId ?? Constant::USER_ID_ANONYMOUS; |
| 149 | 149 | }); |
| 150 | 150 | $api = new PermissionApi($this->permRepo, $this->userRepo, $this->currentUserApi, $this->translator); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | ->getPathWithBundlePrefix($route) |
| 88 | 88 | ); |
| 89 | 89 | |
| 90 | - $path = preg_replace_callback('#%(.*?)%#', static function ($matches) use ($container) { |
|
| 90 | + $path = preg_replace_callback('#%(.*?)%#', static function($matches) use ($container) { |
|
| 91 | 91 | return '<abbr title="' . htmlspecialchars($matches[0]) . '">' |
| 92 | 92 | . htmlspecialchars($container->getParameter($matches[1])) |
| 93 | 93 | . '</abbr>' |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | $defaults = $route->getDefaults(); |
| 98 | 98 | $requirements = $route->getRequirements(); |
| 99 | - $path = preg_replace_callback('#{(.*?)}#', function ($matches) use ($defaults, $requirements) { |
|
| 99 | + $path = preg_replace_callback('#{(.*?)}#', function($matches) use ($defaults, $requirements) { |
|
| 100 | 100 | $title = ''; |
| 101 | 101 | if (isset($defaults[$matches[1]])) { |
| 102 | 102 | $title .= $this->trans('Default: %value%', ['%value%' => htmlspecialchars($defaults[$matches[1]])]); |
@@ -208,7 +208,7 @@ |
||
| 208 | 208 | if (typeof exports !== "undefined" && typeof module !== "undefined") { |
| 209 | 209 | module.exports = components; |
| 210 | 210 | } |
| 211 | -EOT; |
|
| 211 | +eot; |
|
| 212 | 212 | |
| 213 | 213 | return $output; |
| 214 | 214 | } |
@@ -97,11 +97,11 @@ |
||
| 97 | 97 | <title>${subject}</title> |
| 98 | 98 | </head> |
| 99 | 99 | <body> |
| 100 | -<h1>Hi ${uName}!</h1> |
|
| 100 | +<h1>Hi ${uname}!</h1> |
|
| 101 | 101 | <p>Zikula has been successfully installed at <a href="${url}">${url}</a>. If you have further questions, |
| 102 | 102 | visit <a href="https://ziku.la">ziku.la</a></p> |
| 103 | 103 | </body> |
| 104 | -EOF; |
|
| 104 | +eof; |
|
| 105 | 105 | $message = new Swift_Message($subject, $body, 'text/html'); |
| 106 | 106 | $message->setFrom($adminUser->getEmail()); |
| 107 | 107 | $message->setTo($adminUser->getEmail()); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | // set class for the messages |
| 83 | - $class = !empty($params['class']) ? $params['class'] : "alert alert-${bootstrapClass}"; |
|
| 83 | + $class = !empty($params['class']) ? $params['class'] : "alert alert-${bootstrapclass}"; |
|
| 84 | 84 | $totalMessages += $messages; |
| 85 | 85 | // build output of the messages |
| 86 | 86 | if (empty($params['tag']) || ('span' !== $params['tag'])) { |
@@ -140,6 +140,6 @@ |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | $class = get_class($this); |
| 143 | - throw new RuntimeException("Entity \"${class}\" does not have a setter for property \"${name}\". Please add ${setMethod}()."); |
|
| 143 | + throw new RuntimeException("Entity \"${class}\" does not have a setter for property \"${name}\". Please add ${setmethod}()."); |
|
| 144 | 144 | } |
| 145 | 145 | } |
@@ -34,8 +34,8 @@ |
||
| 34 | 34 | { |
| 35 | 35 | $this->tokenParser = new SwitchTokenParser(); |
| 36 | 36 | $this->twigParser = $this->getMockBuilder(Parser::class) |
| 37 | - ->disableOriginalConstructor() |
|
| 38 | - ->getMock(); |
|
| 37 | + ->disableOriginalConstructor() |
|
| 38 | + ->getMock(); |
|
| 39 | 39 | $this->tokenParser->setParser($this->twigParser); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | echo "case 0"; |
| 72 | 72 | default: |
| 73 | 73 | } |
| 74 | -EOF |
|
| 74 | +eof |
|
| 75 | 75 | ]; |
| 76 | 76 | |
| 77 | 77 | // #2 switch with two cases, second with break |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | break; |
| 99 | 99 | default: |
| 100 | 100 | } |
| 101 | -EOF |
|
| 101 | +eof |
|
| 102 | 102 | ]; |
| 103 | 103 | |
| 104 | 104 | // #3 switch with two cases (second with break) and default |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | default: |
| 127 | 127 | echo "default case"; |
| 128 | 128 | } |
| 129 | -EOF |
|
| 129 | +eof |
|
| 130 | 130 | ]; |
| 131 | 131 | |
| 132 | 132 | // #4 switch with two cases (first without body, second with break) and default |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | default: |
| 154 | 154 | echo "default case"; |
| 155 | 155 | } |
| 156 | -EOF |
|
| 156 | +eof |
|
| 157 | 157 | ]; |
| 158 | 158 | |
| 159 | 159 | return $tests; |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | -EOF |
|
| 121 | +eof |
|
| 122 | 122 | ; |
| 123 | 123 | |
| 124 | 124 | return json_decode($json, true); |