@@ 113-119 (lines=7) @@ | ||
110 | if ($option == 'arguments') { |
|
111 | $arguments = array_merge($arguments, $value); |
|
112 | } elseif ($option == 'options') { |
|
113 | foreach ($value as $k => $v) { |
|
114 | if (is_numeric($k)) { |
|
115 | $options[$v] = true; |
|
116 | } else { |
|
117 | $options[$k] = $v; |
|
118 | } |
|
119 | } |
|
120 | } elseif ($option == 'optArg') { |
|
121 | foreach ($value as $k => $v) { |
|
122 | if (is_numeric($k)) { |
|
@@ 121-127 (lines=7) @@ | ||
118 | } |
|
119 | } |
|
120 | } elseif ($option == 'optArg') { |
|
121 | foreach ($value as $k => $v) { |
|
122 | if (is_numeric($k)) { |
|
123 | $arguments[] = $v; |
|
124 | } else { |
|
125 | $options[$k] = $v; |
|
126 | } |
|
127 | } |
|
128 | } |
|
129 | parent::offsetSet('arguments', $arguments); |
|
130 | parent::offsetSet('options', $options); |