Completed
Push — master ( 623a31...6b22a4 )
by Jose Luis
02:01
created
src/EntityGenerator/Middleware/SetPrefixAndTableName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@
 block discarded – undo
49 49
      */
50 50
     protected function getTableName($command)
51 51
     {
52
-        if(!empty($command->table_name)) {
52
+        if (!empty($command->table_name)) {
53 53
             return $command->table_name;
54 54
         }
55
-        if(empty($command->prefix)) {
55
+        if (empty($command->prefix)) {
56 56
             return $command->slug;
57 57
         }
58 58
         return $command->prefix.'_'.$command->slug;
Please login to merge, or discard this patch.
src/Field/Text/TextFieldType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
     public function presentFront()
123 123
     {
124 124
         $options = unserialize($this->fieldOptions);
125
-        foreach($options as $option) {
126
-            if(array_key_exists('transform', $option)) {
125
+        foreach ($options as $option) {
126
+            if (array_key_exists('transform', $option)) {
127 127
                 return $this->transformText($option['transform']);
128 128
             }
129 129
         }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     protected function transformText($transformation)
138 138
     {
139
-        switch ($transformation){
139
+        switch ($transformation) {
140 140
             case "1":
141 141
                 return mb_strtoupper($this->value);
142 142
             case "2":
Please login to merge, or discard this patch.