@@ 134-139 (lines=6) @@ | ||
131 | $found = false; |
|
132 | /// TODO think of realizing it better |
|
133 | foreach ($array as $k => $v) { |
|
134 | if (!$found && $k === $before) { |
|
135 | foreach ($items as $i => $c) { |
|
136 | $new[$i] = $c; |
|
137 | } |
|
138 | $found = true; |
|
139 | } |
|
140 | $new[$k] = $v; |
|
141 | if (!$found && $k === $after) { |
|
142 | foreach ($items as $i => $c) { |
|
@@ 141-146 (lines=6) @@ | ||
138 | $found = true; |
|
139 | } |
|
140 | $new[$k] = $v; |
|
141 | if (!$found && $k === $after) { |
|
142 | foreach ($items as $i => $c) { |
|
143 | $new[$i] = $c; |
|
144 | } |
|
145 | $found = true; |
|
146 | } |
|
147 | } |
|
148 | if (!$found) { |
|
149 | foreach ($items as $i => $c) { |