Skip to content

Commit 5aaeac9

Browse files
committed
Fix cleanup status lint
1 parent ac14daa commit 5aaeac9

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

inc/Cleanup/DataMachineJobCleanupRunEvidenceStore.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ private function cleanup_run_drain_summary( int $job_id, string $state, array $c
259259
)
260260
)
261261
);
262-
$run_id = $this->cleanup_run_id($job_id);
263-
$cleanup_items = (array) ( $aggregate['cleanup_items'] ?? array() );
264-
$commands = array(
262+
$run_id = $this->cleanup_run_id($job_id);
263+
$cleanup_items = (array) ( $aggregate['cleanup_items'] ?? array() );
264+
$commands = array(
265265
'parent' => sprintf('studio wp datamachine drain --job-id=%d', $job_id),
266266
'verify' => sprintf('studio wp datamachine-code workspace cleanup status %s --format=json', $run_id),
267267
);
@@ -554,9 +554,6 @@ private function merge_cleanup_reason_examples( array &$examples, array $rows ):
554554
private function sum_cleanup_rows_bytes( array $rows, array $fields ): int {
555555
$total = 0;
556556
foreach ( $rows as $row ) {
557-
if ( ! is_array($row) ) {
558-
continue;
559-
}
560557
$found = false;
561558
foreach ( $fields as $field ) {
562559
if ( isset($row[ $field ]) ) {

0 commit comments

Comments
 (0)