Completed
Pull Request — master (#3075)
by
unknown
03:14
created
src/Form/Field/Select.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         return implode(
135 135
             ",\n",
136
-            array_map(function ($u, $v) use ($functions) {
136
+            array_map(function($u, $v) use ($functions) {
137 137
                 if (is_string($v)) {
138 138
                     return  in_array($u, $functions) ? "{$u}: {$v}" : "{$u}: \"{$v}\"";
139 139
                 }
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
             throw new \InvalidArgumentException("[$model] must be a valid model class");
281 281
         }
282 282
 
283
-        $this->options = function ($value) use ($model, $idField, $textField) {
283
+        $this->options = function($value) use ($model, $idField, $textField) {
284 284
             if (empty($value)) {
285 285
                 return [];
286 286
             }
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @param array|callable|string $options
42 42
      *
43
-     * @return $this|mixed
43
+     * @return Select
44 44
      */
45 45
     public function options($options = [])
46 46
     {
@@ -96,6 +96,10 @@  discard block
 block discarded – undo
96 96
         return $this;
97 97
     }
98 98
 
99
+    /**
100
+     * @param string $key
101
+     * @param string $val
102
+     */
99 103
     private function template($key, $val)
100 104
     {
101 105
         $this->config['escapeMarkup'] = 'function (markup) {return markup;}';
Please login to merge, or discard this patch.