@@ -43,7 +43,7 @@ |
||
| 43 | 43 | { |
| 44 | 44 | // remove gallery files if exists |
| 45 | 45 | foreach ($this->_records->get() as $record) { |
| 46 | - $galleryPath = '/upload/gallery/' . (int)$record->id; |
|
| 46 | + $galleryPath = '/upload/gallery/'.(int) $record->id; |
|
| 47 | 47 | if (Directory::exist($galleryPath)) { |
| 48 | 48 | Directory::remove($galleryPath); |
| 49 | 49 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | // labels for custom fields |
| 79 | 79 | foreach (ProfileField::all() as $custom) { |
| 80 | - $labels['custom_data.' . $custom->id] = Serialize::getDecodeLocale($custom->name); |
|
| 80 | + $labels['custom_data.'.$custom->id] = Serialize::getDecodeLocale($custom->name); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | return $labels; |
@@ -103,12 +103,12 @@ discard block |
||
| 103 | 103 | // custom profile fields |
| 104 | 104 | foreach (ProfileField::all() as $custom) { |
| 105 | 105 | $rules[] = [ |
| 106 | - 'custom_data.' . $custom->id, |
|
| 106 | + 'custom_data.'.$custom->id, |
|
| 107 | 107 | 'used' |
| 108 | 108 | ]; |
| 109 | 109 | $rules[] = [ |
| 110 | - 'custom_data.' . $custom->id, |
|
| 111 | - (int)$custom->reg_cond === 1 ? 'direct_match' : 'reverse_match', |
|
| 110 | + 'custom_data.'.$custom->id, |
|
| 111 | + (int) $custom->reg_cond === 1 ? 'direct_match' : 'reverse_match', |
|
| 112 | 112 | $custom->reg_exp |
| 113 | 113 | ]; |
| 114 | 114 | } |