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