@@ -25,19 +25,19 @@ |
||
25 | 25 | public function highlightDemoAction() |
26 | 26 | { |
27 | 27 | $root = dirname($this->get('kernel') |
28 | - ->locateResource('@MesHighlightBundle/MesHighlightBundle.php')); |
|
28 | + ->locateResource('@MesHighlightBundle/MesHighlightBundle.php')); |
|
29 | 29 | |
30 | 30 | // Change root path for "code files". |
31 | 31 | $this->get('mes_highlight.highlighter') |
32 | - ->setRootPath($root); |
|
32 | + ->setRootPath($root); |
|
33 | 33 | |
34 | 34 | // Add js language for highlighting. |
35 | 35 | $this->get('mes_highlight.highlighter') |
36 | - ->addSupportedLanguages(array( |
|
37 | - 'js', |
|
38 | - 'xml', |
|
39 | - 'http', |
|
40 | - )); |
|
36 | + ->addSupportedLanguages(array( |
|
37 | + 'js', |
|
38 | + 'xml', |
|
39 | + 'http', |
|
40 | + )); |
|
41 | 41 | |
42 | 42 | $content = '{{Resources/demo/demo.php}}'; |
43 | 43 |
@@ -32,11 +32,11 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | $container->register('mes_highlight.highlighter.twig_extension', 'Mes\Misc\HighlightBundle\Twig\Extension\HighlightExtension') |
35 | - ->setPublic(false); |
|
35 | + ->setPublic(false); |
|
36 | 36 | |
37 | 37 | $container->getDefinition('twig') |
38 | - ->addMethodCall('addExtension', array( |
|
39 | - new Reference('mes_highlight.highlighter.twig_extension'), |
|
40 | - )); |
|
38 | + ->addMethodCall('addExtension', array( |
|
39 | + new Reference('mes_highlight.highlighter.twig_extension'), |
|
40 | + )); |
|
41 | 41 | } |
42 | 42 | } |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | $rootNode = $treeBuilder->root('mes_highlight'); |
46 | 46 | |
47 | 47 | $rootNode->fixXmlConfig('supported_language') |
48 | - ->addDefaultsIfNotSet() |
|
49 | - ->children() |
|
48 | + ->addDefaultsIfNotSet() |
|
49 | + ->children() |
|
50 | 50 | ->arrayNode('supported_languages') |
51 | 51 | ->info('Supported languages') |
52 | 52 | ->example('supported_languages: ["php", "xml", "twig", "javascript", "sql", "json"]') |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | ->example('root_path: "%kernel.root_dir%"') |
69 | 69 | ->defaultValue($this->rootPath) |
70 | 70 | ->end() |
71 | - ->end(); |
|
71 | + ->end(); |
|
72 | 72 | |
73 | 73 | return $treeBuilder; |
74 | 74 | } |
@@ -84,11 +84,11 @@ |
||
84 | 84 | public function highlightDemoAction() |
85 | 85 | { |
86 | 86 | $root = dirname($this->get('kernel') |
87 | - ->locateResource('@MesHighlightBundle/MesHighlightBundle.php')); |
|
87 | + ->locateResource('@MesHighlightBundle/MesHighlightBundle.php')); |
|
88 | 88 | |
89 | 89 | // Change root path for "code files". |
90 | 90 | $this->get('mes_highlight.highlighter') |
91 | - ->setRootPath($root); |
|
91 | + ->setRootPath($root); |
|
92 | 92 | |
93 | 93 | return $this->render('MesHighlightBundle::demo.html.twig', array( |
94 | 94 | 'content' => $this->demoContent, |