|
@@ 100-104 (lines=5) @@
|
| 97 |
|
|
| 98 |
|
// serialize the original data, if we're in debug mode |
| 99 |
|
$keys = array_keys($artefacts); |
| 100 |
|
foreach ($keys as $key) { |
| 101 |
|
if (isset($artefacts[$key][ColumnKeys::ORIGINAL_DATA])) { |
| 102 |
|
$artefacts[$key][ColumnKeys::ORIGINAL_DATA] = $this->isDebugMode() ? serialize($artefacts[$key][ColumnKeys::ORIGINAL_DATA]) : null; |
| 103 |
|
} |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
// query whether or not, existing artefacts has to be overwritten |
| 107 |
|
if ($override === true) { |
|
@@ 165-169 (lines=5) @@
|
| 162 |
|
|
| 163 |
|
// unserialize the original data, if we're in debug mode, if we're in debug mode |
| 164 |
|
$keys = array_keys($artefacts); |
| 165 |
|
foreach ($keys as $key) { |
| 166 |
|
if (isset($artefacts[$key][ColumnKeys::ORIGINAL_DATA])) { |
| 167 |
|
$artefacts[$key][ColumnKeys::ORIGINAL_DATA] = $this->isDebugMode() ? unserialize($artefacts[$key][ColumnKeys::ORIGINAL_DATA]) : null; |
| 168 |
|
} |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
// return the artefacts |
| 172 |
|
return $artefacts; |