Completed
Pull Request — dev (#9)
by Arnaud
02:57
created
Field/Field/StringField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
         // truncate string if required
38 38
         if ($maximumStringLength && strlen($value) > $maximumStringLength) {
39
-            $value = substr($value, 0, $maximumStringLength) . $replaceString;
39
+            $value = substr($value, 0, $maximumStringLength).$replaceString;
40 40
         }
41 41
 
42 42
         return $value;
Please login to merge, or discard this patch.
Routing/RoutingLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         // by default, generic controller
97 97
         $defaults = [
98
-            '_controller' => $admin->getConfiguration()->getParameter('controller') . ':' . $action->getName(),
98
+            '_controller' => $admin->getConfiguration()->getParameter('controller').':'.$action->getName(),
99 99
             '_admin' => $admin->getName(),
100 100
             '_action' => $action->getName(),
101 101
         ];
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     {
149 149
         $array = explode('\\', $namespace);
150 150
         $path = array_pop($array);
151
-        $path = strtolower(substr($path, 0, 1)) . substr($path, 1);
151
+        $path = strtolower(substr($path, 0, 1)).substr($path, 1);
152 152
 
153 153
         return $path;
154 154
     }
Please login to merge, or discard this patch.
Action/Configuration/ActionConfiguration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
         $resolver
83 83
             ->setDefault('route', '')
84 84
             ->setAllowedTypes('route', 'string')
85
-            ->setNormalizer('route', function (Options $options, $value) {
85
+            ->setNormalizer('route', function(Options $options, $value) {
86 86
                 if (!$value) {
87 87
                     // if no route was provided, it should be linked to an Admin
88 88
                     if (!$this->admin) {
89
-                        throw new InvalidOptionsException('No route was provided for action : ' . $this->actionName);
89
+                        throw new InvalidOptionsException('No route was provided for action : '.$this->actionName);
90 90
                     }
91 91
 
92 92
                     // generate default route from admin
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             ->addAllowedValues('load_strategy', AdminInterface::LOAD_STRATEGY_NONE)
115 115
             ->addAllowedValues('load_strategy', AdminInterface::LOAD_STRATEGY_UNIQUE)
116 116
             ->addAllowedValues('load_strategy', AdminInterface::LOAD_STRATEGY_MULTIPLE)
117
-            ->setNormalizer('load_strategy', function (Options $options, $value) {
117
+            ->setNormalizer('load_strategy', function(Options $options, $value) {
118 118
 
119 119
                 if (!$value) {
120 120
                     if ($this->actionName == 'create') {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         // criteria used to find entity in the data provider
140 140
         $resolver
141 141
             ->setDefault('criteria', [])
142
-            ->setNormalizer('criteria', function (Options $options, $value) {
142
+            ->setNormalizer('criteria', function(Options $options, $value) {
143 143
 
144 144
                 if (!$value) {
145 145
                     $idActions = [
Please login to merge, or discard this patch.