@@ -58,7 +58,7 @@ |
||
| 58 | 58 | return; |
| 59 | 59 | } |
| 60 | 60 | $config = $bundle->getConfig(); |
| 61 | - $positions =[]; |
|
| 61 | + $positions = []; |
|
| 62 | 62 | foreach ($config as $realm => $attributes) { |
| 63 | 63 | if (!isset($attributes['block']) || !isset($attributes['block']['positions'])) { |
| 64 | 64 | continue; |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function getTests() |
| 34 | 34 | { |
| 35 | 35 | return [ |
| 36 | - new TwigTest('pendingContentCollectible', function ($obj) { return $obj instanceof PendingContentCollectible; }), |
|
| 36 | + new TwigTest('pendingContentCollectible', function($obj) { return $obj instanceof PendingContentCollectible; }), |
|
| 37 | 37 | ]; |
| 38 | 38 | } |
| 39 | 39 | } |
@@ -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'])) { |
@@ -120,9 +120,9 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 122 | 122 | $qb->update($this->mainEntityClass, 'tbl') |
| 123 | - ->set('tbl.createdBy', $newUserId) |
|
| 124 | - ->where('tbl.createdBy = :creator') |
|
| 125 | - ->setParameter('creator', $userId); |
|
| 123 | + ->set('tbl.createdBy', $newUserId) |
|
| 124 | + ->where('tbl.createdBy = :creator') |
|
| 125 | + ->setParameter('creator', $userId); |
|
| 126 | 126 | $query = $qb->getQuery(); |
| 127 | 127 | $query->execute(); |
| 128 | 128 | |
@@ -153,9 +153,9 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 155 | 155 | $qb->update($this->mainEntityClass, 'tbl') |
| 156 | - ->set('tbl.updatedBy', $newUserId) |
|
| 157 | - ->where('tbl.updatedBy = :editor') |
|
| 158 | - ->setParameter('editor', $userId); |
|
| 156 | + ->set('tbl.updatedBy', $newUserId) |
|
| 157 | + ->where('tbl.updatedBy = :editor') |
|
| 158 | + ->setParameter('editor', $userId); |
|
| 159 | 159 | $query = $qb->getQuery(); |
| 160 | 160 | $query->execute(); |
| 161 | 161 | |
@@ -185,8 +185,8 @@ discard block |
||
| 185 | 185 | |
| 186 | 186 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 187 | 187 | $qb->delete($this->mainEntityClass, 'tbl') |
| 188 | - ->where('tbl.createdBy = :creator') |
|
| 189 | - ->setParameter('creator', $userId); |
|
| 188 | + ->where('tbl.createdBy = :creator') |
|
| 189 | + ->setParameter('creator', $userId); |
|
| 190 | 190 | $query = $qb->getQuery(); |
| 191 | 191 | $query->execute(); |
| 192 | 192 | |
@@ -216,8 +216,8 @@ discard block |
||
| 216 | 216 | |
| 217 | 217 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 218 | 218 | $qb->delete($this->mainEntityClass, 'tbl') |
| 219 | - ->where('tbl.updatedBy = :editor') |
|
| 220 | - ->setParameter('editor', $userId); |
|
| 219 | + ->where('tbl.updatedBy = :editor') |
|
| 220 | + ->setParameter('editor', $userId); |
|
| 221 | 221 | $query = $qb->getQuery(); |
| 222 | 222 | $query->execute(); |
| 223 | 223 | |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | { |
| 310 | 310 | if (0 < count($exclusions)) { |
| 311 | 311 | $qb->andWhere('tbl.id NOT IN (:excludedIdentifiers)') |
| 312 | - ->setParameter('excludedIdentifiers', $exclusions); |
|
| 312 | + ->setParameter('excludedIdentifiers', $exclusions); |
|
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | return $qb; |
@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | |
| 419 | 419 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 420 | 420 | $qb->select($selection) |
| 421 | - ->from($this->mainEntityClass, 'tbl'); |
|
| 421 | + ->from($this->mainEntityClass, 'tbl'); |
|
| 422 | 422 | |
| 423 | 423 | if (true === $useJoins) { |
| 424 | 424 | $this->addJoinsToFrom($qb); |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | { |
| 455 | 455 | $qb = $this->getCountQuery(); |
| 456 | 456 | $qb->andWhere('tbl.' . $fieldName . ' = :' . $fieldName) |
| 457 | - ->setParameter($fieldName, $fieldValue); |
|
| 457 | + ->setParameter($fieldName, $fieldValue); |
|
| 458 | 458 | |
| 459 | 459 | if ($excludeId > 0) { |
| 460 | 460 | $qb = $this->addExclusion($qb, [$excludeId]); |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | |
| 495 | 495 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 496 | 496 | $qb->select($selection) |
| 497 | - ->from($this->mainEntityClass, 'tbl'); |
|
| 497 | + ->from($this->mainEntityClass, 'tbl'); |
|
| 498 | 498 | |
| 499 | 499 | if (true === $useJoins) { |
| 500 | 500 | $this->addJoinsToFrom($qb); |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | if ('RAND()' === $orderBy) { |
| 518 | 518 | // random selection |
| 519 | 519 | $qb->addSelect('MOD(tbl.id, ' . random_int(2, 15) . ') AS HIDDEN randomIdentifiers') |
| 520 | - ->orderBy('randomIdentifiers'); |
|
| 520 | + ->orderBy('randomIdentifiers'); |
|
| 521 | 521 | |
| 522 | 522 | return $qb; |
| 523 | 523 | } |
@@ -536,12 +536,12 @@ discard block |
||
| 536 | 536 | } |
| 537 | 537 | if (false !== mb_strpos($orderBy, 'tbl.createdBy')) { |
| 538 | 538 | $qb->addSelect('tblCreator') |
| 539 | - ->leftJoin('tbl.createdBy', 'tblCreator'); |
|
| 539 | + ->leftJoin('tbl.createdBy', 'tblCreator'); |
|
| 540 | 540 | $orderBy = str_replace('tbl.createdBy', 'tblCreator.uname', $orderBy); |
| 541 | 541 | } |
| 542 | 542 | if (false !== mb_strpos($orderBy, 'tbl.updatedBy')) { |
| 543 | 543 | $qb->addSelect('tblUpdater') |
| 544 | - ->leftJoin('tbl.updatedBy', 'tblUpdater'); |
|
| 544 | + ->leftJoin('tbl.updatedBy', 'tblUpdater'); |
|
| 545 | 545 | $orderBy = str_replace('tbl.updatedBy', 'tblUpdater.uname', $orderBy); |
| 546 | 546 | } |
| 547 | 547 | $qb->add('orderBy', $orderBy); |
@@ -162,17 +162,17 @@ discard block |
||
| 162 | 162 | $v = (string) $v; |
| 163 | 163 | if ('workflowState' === $k && 0 === mb_strpos($v, '!')) { |
| 164 | 164 | $qb->andWhere('tbl.' . $k . ' != :' . $k) |
| 165 | - ->setParameter($k, mb_substr($v, 1)); |
|
| 165 | + ->setParameter($k, mb_substr($v, 1)); |
|
| 166 | 166 | } elseif (0 === mb_strpos($v, '%')) { |
| 167 | 167 | $qb->andWhere('tbl.' . $k . ' LIKE :' . $k) |
| 168 | - ->setParameter($k, '%' . mb_substr($v, 1) . '%'); |
|
| 168 | + ->setParameter($k, '%' . mb_substr($v, 1) . '%'); |
|
| 169 | 169 | } elseif (in_array($k, ['schemes', 'methods'], true)) { |
| 170 | 170 | // multi list filter |
| 171 | 171 | $qb->andWhere('tbl.' . $k . ' LIKE :' . $k) |
| 172 | - ->setParameter($k, '%' . $v . '%'); |
|
| 172 | + ->setParameter($k, '%' . $v . '%'); |
|
| 173 | 173 | } else { |
| 174 | 174 | $qb->andWhere('tbl.' . $k . ' = :' . $k) |
| 175 | - ->setParameter($k, $v); |
|
| 175 | + ->setParameter($k, $v); |
|
| 176 | 176 | } |
| 177 | 177 | } |
| 178 | 178 | } |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | // per default we show approved routes only |
| 206 | 206 | $onlineStates = ['approved']; |
| 207 | 207 | $qb->andWhere('tbl.workflowState IN (:onlineStates)') |
| 208 | - ->setParameter('onlineStates', $onlineStates); |
|
| 208 | + ->setParameter('onlineStates', $onlineStates); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | return $qb; |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | $qb->andWhere('tbl.createdBy = :userId') |
| 275 | - ->setParameter('userId', $userId); |
|
| 275 | + ->setParameter('userId', $userId); |
|
| 276 | 276 | |
| 277 | 277 | return $qb; |
| 278 | 278 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | ); |
| 97 | 97 | |
| 98 | 98 | $container = $this->container; |
| 99 | - $path = preg_replace_callback('#%(.*?)%#', static function ($matches) use ($container) { |
|
| 99 | + $path = preg_replace_callback('#%(.*?)%#', static function($matches) use ($container) { |
|
| 100 | 100 | return '<abbr title="' . htmlspecialchars($matches[0]) . '">' |
| 101 | 101 | . htmlspecialchars($container->getParameter($matches[1])) |
| 102 | 102 | . '</abbr>' |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | $defaults = $route->getDefaults(); |
| 107 | 107 | $requirements = $route->getRequirements(); |
| 108 | - $path = preg_replace_callback('#{(.*?)}#', function ($matches) use ($defaults, $requirements) { |
|
| 108 | + $path = preg_replace_callback('#{(.*?)}#', function($matches) use ($defaults, $requirements) { |
|
| 109 | 109 | $title = ''; |
| 110 | 110 | if (isset($defaults[$matches[1]])) { |
| 111 | 111 | $title .= $this->trans('Default: %value%', ['%value%' => htmlspecialchars($defaults[$matches[1]])]); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | <info>php %command.full_name% 1000 --active=I --verified=2 --regdate='>20200101'</info> |
| 126 | 126 | |
| 127 | -EOT |
|
| 127 | +eot |
|
| 128 | 128 | ); |
| 129 | 129 | } |
| 130 | 130 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | } |
| 192 | 192 | $randTimeStamp = mt_rand($regDate->getTimestamp(), $this->nowUTC->getTimestamp()); |
| 193 | 193 | |
| 194 | - return \DateTime::createFromFormat('U', "${randTimeStamp}", $utcTz); |
|
| 194 | + return \DateTime::createFromFormat('U', "${randtimestamp}", $utcTz); |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | private function insertUser(string $uname): void |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | 'symfony-pack' => 'Symfony Packages' |
| 46 | 46 | ]; |
| 47 | 47 | $types = array_keys($typeOrder); |
| 48 | - usort($packages, function ($a, $b) use ($types) { |
|
| 48 | + usort($packages, function($a, $b) use ($types) { |
|
| 49 | 49 | $typeOrder = array_search($a['type'], $types) - array_search($b['type'], $types); |
| 50 | 50 | if (0 !== $typeOrder) { |
| 51 | 51 | return $typeOrder; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | $tmp[] = $author['name']; |
| 99 | 99 | } |
| 100 | - usort($authors, function ($a, $b) { |
|
| 100 | + usort($authors, function($a, $b) { |
|
| 101 | 101 | return strcmp($a['name'], $b['name']); |
| 102 | 102 | }); |
| 103 | 103 | foreach ($authors as $author) { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | return [ |
| 79 | 79 | 'decorate' => true, |
| 80 | 80 | 'html' => true, |
| 81 | - 'childOpen' => function ($node) { |
|
| 81 | + 'childOpen' => function($node) { |
|
| 82 | 82 | $jsTreeData = []; |
| 83 | 83 | $jsTreeData['disabled'] = 'A' !== $node['status']; |
| 84 | 84 | $jsTreeData['type'] = $node['leaf'] ? 'leaf' : 'default'; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | return '<li ' . $jsTreeData . 'class="jstree-open" id="' . $this->domTreeNodePrefix . $node['id'] . '">'; |
| 88 | 88 | }, |
| 89 | - 'nodeDecorator' => function ($node) use ($locale) { |
|
| 89 | + 'nodeDecorator' => function($node) use ($locale) { |
|
| 90 | 90 | $displayName = $node['displayName'][$locale] ?? $node['name']; |
| 91 | 91 | $title = ' title="' . $this->createTitleAttribute($node, $displayName, $locale) . '"'; |
| 92 | 92 | $classes = []; |