| @@ 62-68 (lines=7) @@ | ||
| 59 | $all = $this->table->all($this->databaseName); |
|
| 60 | ||
| 61 | // Add simple tables |
|
| 62 | if (!empty($cleanupConf->simple) && is_array($cleanupConf->simple)) { |
|
| 63 | foreach ($cleanupConf->simple as $t) { |
|
| 64 | if (in_array($t, $all)) { |
|
| 65 | $tables[] = $t; |
|
| 66 | } |
|
| 67 | } |
|
| 68 | } |
|
| 69 | ||
| 70 | // Add multi tables |
|
| 71 | if (!empty($cleanupConf->multi) && is_array($cleanupConf->multi)) { |
|
| @@ 34-40 (lines=7) @@ | ||
| 31 | $all = $this->all($database); |
|
| 32 | ||
| 33 | // Add simple tables |
|
| 34 | if (!empty($cleanupConf->simple) && is_array($cleanupConf->simple)) { |
|
| 35 | foreach ($cleanupConf->simple as $t) { |
|
| 36 | if (in_array($t, $all)) { |
|
| 37 | $tables[] = $t; |
|
| 38 | } |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ||
| 42 | // Add multi tables |
|
| 43 | if (!empty($cleanupConf->multi) && is_array($cleanupConf->multi)) { |
|
| @@ 69-75 (lines=7) @@ | ||
| 66 | $all = $this->all($database); |
|
| 67 | ||
| 68 | // Add simple tables |
|
| 69 | if (!empty($cleanupConf->simple) && is_array($cleanupConf->simple)) { |
|
| 70 | foreach ($cleanupConf->simple as $t) { |
|
| 71 | if (in_array($t, $all)) { |
|
| 72 | $tables[] = $t; |
|
| 73 | } |
|
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| 77 | // Add multi tables |
|
| 78 | if (!empty($cleanupConf->multi) && is_array($cleanupConf->multi)) { |
|