SleepFuncToSleepStaticCallRector

Use Sleep::sleep() and Sleep::usleep() instead of the sleep() and usleep() function.

-sleep(5);
+\Illuminate\Support\Sleep::sleep(5);

Configure your rector.php:

<?php

use RectorLaravel\Rector\FuncCall\SleepFuncToSleepStaticCallRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        SleepFuncToSleepStaticCallRector::class,
    ]);