Completed
Pull Request — master (#28)
by Jamal
26:57
created
src/Majora/Framework/Loader/Bridge/Form/Type/EntityCollectionType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     {
26 26
         parent::configureOptions($resolver);
27 27
 
28
-        $choices = function (Options $options) {
28
+        $choices = function(Options $options) {
29 29
             if ($this->hasLoader($options['loader_alias']) === false) {
30 30
                 throw new \RuntimeException(sprintf('Loader with alias "%s" not found.', $options['loader_alias']));
31 31
             }
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
             ->setAllowedTypes('loader_alias', 'string')
54 54
             ->setAllowedTypes('loader_method', array('null', 'string'))
55 55
             ->setDefaults(array(
56
-                'choice_label' => function ($choice) {
57
-                    return (string)$choice;
56
+                'choice_label' => function($choice) {
57
+                    return (string) $choice;
58 58
                 },
59 59
                 'choice_value' => 'id',
60 60
                 'choices' => $choices,
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     private function getLoader($alias)
100 100
     {
101
-        if(!$this->hasLoader($alias)){
101
+        if (!$this->hasLoader($alias)) {
102 102
             throw new \RuntimeException(sprintf('Form loader with alias "%s" not found.', $alias));
103 103
         }
104 104
 
Please login to merge, or discard this patch.
Majora/Framework/Loader/Tests/Bridge/Form/Type/EntityCollectionTypeTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function __toString()
32 32
     {
33
-        return (string)$this->name;
33
+        return (string) $this->name;
34 34
     }
35 35
 
36 36
     public function __get($name)
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
     public function testGetLoader()
136 136
     {
137
-        $loader = $this->prophesize(LoaderBridgeInterface::class)->reveal();;
137
+        $loader = $this->prophesize(LoaderBridgeInterface::class)->reveal(); ;
138 138
 
139 139
         $type = new EntityCollectionType();
140 140
         $type->registerLoader('test', $loader);
Please login to merge, or discard this patch.