$journaled = empty( $opts['nonJournaled'] );
$maxConcurrency = isset( $opts['concurrency'] ) ? $opts['concurrency'] : 1;
- $entries = array(); // file journal entry list
+ $entries = []; // file journal entry list
$predicates = FileOp::newPredicates(); // account for previous ops in prechecks
- $curBatch = array(); // concurrent FileOp sub-batch accumulation
+ $curBatch = []; // concurrent FileOp sub-batch accumulation
$curBatchDeps = FileOp::newDependencies(); // paths used in FileOp sub-batch
- $pPerformOps = array(); // ordered list of concurrent FileOp sub-batches
+ $pPerformOps = []; // ordered list of concurrent FileOp sub-batches
$lastBackend = null; // last op backend name
// Do pre-checks for each operation; abort on failure...
foreach ( $performOps as $index => $fileOp ) {
|| ( $backendName !== $lastBackend && count( $curBatch ) )
) {
$pPerformOps[] = $curBatch; // push this batch
- $curBatch = array(); // start a new sub-batch
+ $curBatch = []; // start a new sub-batch
$curBatchDeps = FileOp::newDependencies();
}
$lastBackend = $backendName;
continue;
}
/** @var Status[] $statuses */
- $statuses = array();
- $opHandles = array();
+ $statuses = [];
+ $opHandles = [];
// Get the backend; all sub-batch ops belong to a single backend
$backend = reset( $performOpsBatch )->getBackend();
// Get the operation handles or actually do it if there is just one.