| @@ 67-71 (lines=5) @@ | ||
| 64 | } |
|
| 65 | $start_point = 0; |
|
| 66 | $column_list = $fixed_options; |
|
| 67 | if (array_key_exists($row + 1, $extra_fixed_options)) { |
|
| 68 | $column_list = $extra_fixed_options[$row + 1]; |
|
| 69 | } elseif (array_key_exists($row - $list_count + 1, $extra_fixed_options)) { |
|
| 70 | $column_list = $extra_fixed_options[$row - $list_count + 1]; |
|
| 71 | } |
|
| 72 | ||
| 73 | foreach ($column_list as $column_info) { |
|
| 74 | $return_info[$row][$column_info['name']] = rtrim(substr($text, $start_point, $column_info['length'])); |
|
| @@ 98-102 (lines=5) @@ | ||
| 95 | $return_text = ''; |
|
| 96 | foreach ($list as $row => $list_val) { |
|
| 97 | $column_options = $fixed_options; |
|
| 98 | if (array_key_exists($row + 1, $extra_fixed_options)) { |
|
| 99 | $column_options = $extra_fixed_options[$row + 1]; |
|
| 100 | } elseif (array_key_exists($row - $list_count, $extra_fixed_options)) { |
|
| 101 | $column_options = $extra_fixed_options[$row - $list_count]; |
|
| 102 | } |
|
| 103 | ||
| 104 | foreach ($column_options as $fixed_option_key => $fixed_info) { |
|
| 105 | if (!array_key_exists($fixed_option_key, $list_val)) { |
|