Completed
Pull Request — master (#341)
by De Cramer
05:55
created
src/eXpansion/Framework/MlComposeBundle/UiComponents/FmlComponent.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      * @param BlockDefinitionInterface $blockDefinition
36 36
      * @param array ...$args
37 37
      *
38
-     * @return string
38
+     * @return Control
39 39
      */
40 40
     public function display(BlockDefinitionInterface $blockDefinition, ...$args)
41 41
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace eXpansion\Framework\MlComposeBundle\UiComponents;
4 4
 
5
-use eXpansion\Framework\Core\Model\Gui\FmlManialink;
6
-use eXpansion\Framework\Core\Plugins\Gui\FmlManialinkFactory;
7 5
 use FML\Controls\Control;
8 6
 use FML\Controls\Frame;
9 7
 use oliverde8\AssociativeArraySimplified\AssociativeArray;
Please login to merge, or discard this patch.
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.