TimeFuncCallToCarbonRector

Convert time() function call to Carbon::now()->getTimestamp()

 class SomeClass
 {
     public function run()
     {
-        $time = time();
+        $time = \Carbon\Carbon::now()->getTimestamp();
     }
 }

Configure your rector.php:

<?php

use Rector\Carbon\Rector\FuncCall\TimeFuncCallToCarbonRector;
use Rector\Config\RectorConfig;

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