Completed
Pull Request — master (#341)
by De Cramer
05:55
created
MlComposeBundle/DependencyInjection/eXpansionMlComposeExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         foreach ($bundles as $bundle) {
39 39
             $reflection = new \ReflectionClass($bundle);
40
-            $dir = dirname($reflection->getFilename()) . '/Resources/config/ml-compose/';
40
+            $dir = dirname($reflection->getFilename()).'/Resources/config/ml-compose/';
41 41
 
42 42
             if (is_dir($dir)) {
43 43
                 $files = $finder->files()
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     protected function parseFile($filePath, ContainerBuilder $container)
57 57
     {
58
-        $xsdPath = realpath(__DIR__ . "/../Resources/config/page-compose.xsd");
58
+        $xsdPath = realpath(__DIR__."/../Resources/config/page-compose.xsd");
59 59
         $dom = new \DOMDocument();
60 60
         $dom->loadXML(str_replace("exp:ml_compose_bundle:page-compose.xsd", $xsdPath, file_get_contents($filePath)));
61 61
 
@@ -96,10 +96,10 @@  discard block
 block discarded – undo
96 96
                     break;
97 97
 
98 98
                 case "action":
99
-                    $blockDefinition['config']['action'][$name]['method'] = (string)$argument->method[0];
99
+                    $blockDefinition['config']['action'][$name]['method'] = (string) $argument->method[0];
100 100
                     if (isset($argument->service[0])) {
101 101
                         // Use symfony to actually get a reference.
102
-                        $blockDefinition['config']['action'][$name]['service'] = new Reference((string)$argument->service[0]);
102
+                        $blockDefinition['config']['action'][$name]['service'] = new Reference((string) $argument->service[0]);
103 103
                     }
104 104
                     break;
105 105
 
Please login to merge, or discard this patch.