@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Symfony\Component\Config\FileLocator; |
| 15 | 15 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 16 | -use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
|
| 17 | 16 | use Symfony\Component\HttpKernel\DependencyInjection\ConfigurableExtension; |
| 18 | 17 | |
| 19 | 18 | /** |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $pattern = '#(?:'.$this->leftDelimiter.')([\S|\s]+)(?:'.$this->rightDelimiter.')#iU'; |
| 74 | 74 | |
| 75 | - return preg_replace_callback($pattern, function ($matches) use ($language) { |
|
| 75 | + return preg_replace_callback($pattern, function($matches) use ($language) { |
|
| 76 | 76 | return $this->highlight($this->resolveResource(trim($matches[1])), $language); |
| 77 | 77 | }, $content); |
| 78 | 78 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | if ($this->showLines) { |
| 96 | 96 | $lines = preg_split("/\r\n|\r|\n/", $value); |
| 97 | 97 | |
| 98 | - array_walk($lines, function (&$line, $index) { |
|
| 98 | + array_walk($lines, function(&$line, $index) { |
|
| 99 | 99 | $line = <<<HTML |
| 100 | 100 | <div class="line"><span class="linenum">$index</span>$line</div> |
| 101 | 101 | HTML; |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | ->defaultValue(array('php', 'xml', 'twig', 'javascript', 'sql', 'json')) |
| 54 | 54 | ->validate() |
| 55 | 55 | ->always() |
| 56 | - ->then(function ($languages) { |
|
| 56 | + ->then(function($languages) { |
|
| 57 | 57 | if (empty($languages)) { |
| 58 | 58 | throw new \InvalidArgumentException(sprintf('Option "%s" cannot be empty.', 'supported_languages')); |
| 59 | 59 | } |