public static function factory(
LockManager $manager, array $paths, $type, Status $status, $timeout = 0
) {
- $pathsByType = is_integer( $type ) ? array( $type => $paths ) : $paths;
+ $pathsByType = is_integer( $type ) ? [ $type => $paths ] : $paths;
$lockStatus = $manager->lockByType( $pathsByType, $timeout );
$status->merge( $lockStatus );
if ( $lockStatus->isOK() ) {