Passed
Push — develop ( 515625...2bf672 )
by Andrew
04:14
created
src/autocompletes/TwigLanguageAutocomplete.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
         $filters = array_keys($twig->getFilters());
265 265
         foreach ($filters as $filter) {
266 266
             $docs = self::FILTER_DOCS[$filter] ?? '';
267
-            $docs = str_replace('(#', '(' . self::CRAFT_FILTER_DOCS_URL . '#', $docs);
267
+            $docs = str_replace('(#', '('.self::CRAFT_FILTER_DOCS_URL.'#', $docs);
268 268
             CompleteItem::create()
269 269
                 ->label($filter)
270 270
                 ->insertText($filter)
@@ -276,9 +276,9 @@  discard block
 block discarded – undo
276 276
         // Twig Functions
277 277
         $functions = array_keys($twig->getFunctions());
278 278
         foreach ($functions as $function) {
279
-            $functionLabel = $function . '()';
279
+            $functionLabel = $function.'()';
280 280
             $docs = self::FUNCTION_DOCS[$function] ?? '';
281
-            $docs = str_replace('(#', '(' . self::CRAFT_FUNCTION_DOCS_URL . '#', $docs);
281
+            $docs = str_replace('(#', '('.self::CRAFT_FUNCTION_DOCS_URL.'#', $docs);
282 282
             CompleteItem::create()
283 283
                 ->label($functionLabel)
284 284
                 ->insertText($functionLabel)
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
         $tags = array_merge(self::ADDITIONAL_TAGS, array_keys($twig->getTokenParsers()));
292 292
         foreach ($tags as $tag) {
293 293
             $docs = self::TAG_DOCS[$tag] ?? '';
294
-            $docs = str_replace('(#', '(' . self::CRAFT_TAG_DOCS_URL . '#', $docs);
294
+            $docs = str_replace('(#', '('.self::CRAFT_TAG_DOCS_URL.'#', $docs);
295 295
             CompleteItem::create()
296 296
                 ->label($tag)
297 297
                 ->insertText($tag)
Please login to merge, or discard this patch.