@@ -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); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | 'placeholder' => 'Select' |
92 | 92 | ]); |
93 | 93 | |
94 | - $formModifier = function (FormInterface $form, $formType = null) use ($builder) { |
|
94 | + $formModifier = function(FormInterface $form, $formType = null) use ($builder) { |
|
95 | 95 | switch ($formType) { |
96 | 96 | case ChoiceType::class: |
97 | 97 | $optionsType = ChoiceFormOptionsArrayType::class; |
@@ -127,12 +127,12 @@ discard block |
||
127 | 127 | } |
128 | 128 | $form->add($formOptions->getForm()); |
129 | 129 | }; |
130 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, static function (FormEvent $event) use ($formModifier) { |
|
130 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, static function(FormEvent $event) use ($formModifier) { |
|
131 | 131 | $data = $event->getData(); |
132 | 132 | $formType = $data['formType']; |
133 | 133 | $formModifier($event->getForm(), $formType); |
134 | 134 | }); |
135 | - $builder->get('formType')->addEventListener(FormEvents::POST_SUBMIT, static function (FormEvent $event) use ($formModifier) { |
|
135 | + $builder->get('formType')->addEventListener(FormEvents::POST_SUBMIT, static function(FormEvent $event) use ($formModifier) { |
|
136 | 136 | $formType = $event->getForm()->getData(); |
137 | 137 | $formModifier($event->getForm()->getParent(), $formType); |
138 | 138 | }); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | <info>php %command.full_name% public --symlink --relative</info> |
76 | 76 | |
77 | -EOT |
|
77 | +eot |
|
78 | 78 | ); |
79 | 79 | } |
80 | 80 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | { |
45 | 45 | $text = preg_replace_callback( |
46 | 46 | '/<a [^>]*href\s*=\s*\"?([^>\"]*)\"?[^>]*>(.*?)<\/a.*?>/i', |
47 | - function ($matches) { |
|
47 | + function($matches) { |
|
48 | 48 | $this->links[] = html_entity_decode($matches[1]); |
49 | 49 | // return the replaced link |
50 | 50 | return '<strong><em>' . $matches[2] . '</em></strong> <small>[' . count($this->links) . ']</small>'; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $query = $qb->getQuery(); |
56 | 56 | |
57 | - return (int)$query->getSingleScalarResult(); |
|
57 | + return (int) $query->getSingleScalarResult(); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | public function getGroups( |
@@ -45,12 +45,12 @@ discard block |
||
45 | 45 | |
46 | 46 | if (null !== $groupType) { |
47 | 47 | $qb->where('g.gtype = :gtype') |
48 | - ->setParameter('gtype', $groupType); |
|
48 | + ->setParameter('gtype', $groupType); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | if (null !== $excludedState) { |
52 | 52 | $qb->andWhere('g.state != :state') |
53 | - ->setParameter('state', $excludedState); |
|
53 | + ->setParameter('state', $excludedState); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | $query = $qb->getQuery(); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | // already another group by that name. |
140 | 140 | if (is_numeric($excludedGroupId) && $excludedGroupId > 0) { |
141 | 141 | $qb->andWhere($qb->expr()->neq('g.gid', ':ggid')) |
142 | - ->setParameter('ggid', $excludedGroupId); |
|
142 | + ->setParameter('ggid', $excludedGroupId); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | $query = $qb->getQuery(); |
@@ -68,6 +68,6 @@ |
||
68 | 68 | ->andWhere(Criteria::expr()->gt('lastused', $since)); |
69 | 69 | $online = $this->sessionRepository->matching($c)->count(); |
70 | 70 | |
71 | - return (bool)$online; |
|
71 | + return (bool) $online; |
|
72 | 72 | } |
73 | 73 | } |
@@ -94,7 +94,7 @@ |
||
94 | 94 | string $title = '' |
95 | 95 | ): string { |
96 | 96 | if (empty($userId) || $userId < 1) { |
97 | - return (string)$userId; |
|
97 | + return (string) $userId; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | return $this->determineProfileLink($userId, null, $class, $image, $maxLength, $title); |