Passed
Pull Request — master (#167)
by Steve
01:01
created
src/FieldsBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     private function namespaceGroupKey($key)
100 100
     {
101 101
         if (strpos($key, 'group_') !== 0) {
102
-            $key = 'group_' . $key;
102
+            $key = 'group_'.$key;
103 103
         }
104 104
         return $key;
105 105
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     private function buildFields()
126 126
     {
127
-        $fields = array_map(function ($field) {
127
+        $fields = array_map(function($field) {
128 128
             return ($field instanceof Builder) ? $field->build() : $field;
129 129
         }, $this->getFields());
130 130
 
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
      */
559 559
     public function addMessage($label, $message, array $args = [])
560 560
     {
561
-        $name = $this->generateName($label) . '_message';
561
+        $name = $this->generateName($label).'_message';
562 562
         $args = array_merge([
563 563
             'label' => $label,
564 564
             'message' => $message,
Please login to merge, or discard this patch.
src/Transform/NamespaceFieldKey.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@
 block discarded – undo
49 49
         if ($groupName) {
50 50
             // remove field_ or group_ if already at the begining of the key
51 51
             $value = preg_replace('/^field_|^group_/', '', $value);
52
-            $namespace .= str_replace(' ', '_', $groupName) . '_';
52
+            $namespace .= str_replace(' ', '_', $groupName).'_';
53 53
         }
54
-        return strtolower($namespace . $value);
54
+        return strtolower($namespace.$value);
55 55
     }
56 56
 
57 57
     public function shouldTransformValue($key, $config)
Please login to merge, or discard this patch.
src/FieldBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
     public function setKey($key)
141 141
     {
142 142
         if (!preg_match('/^field_/', $key)) {
143
-            $key = 'field_' . $key;
143
+            $key = 'field_'.$key;
144 144
         }
145 145
 
146 146
         return $this->setConfig('key', $key);
Please login to merge, or discard this patch.