@@ -49,10 +49,10 @@ |
||
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; |
@@ -122,8 +122,8 @@ discard block |
||
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 |
||
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": |