Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace PowerComponents\LivewirePowerGrid\Recorders; use Carbon\CarbonImmutable;..
Decoded Output download
<?php
namespace PowerComponents\LivewirePowerGrid\Recorders;
use Carbon\CarbonImmutable;
use Illuminate\Config\Repository;
use Laravel\Pulse\Pulse;
use PowerComponents\LivewirePowerGrid\Events\PowerGridPerformanceData;
class PowerGridPerformanceRecorder
{
public string $listen = PowerGridPerformanceData::class;
public function __construct(
protected Pulse $pulse,
protected Repository $config
) {
}
public function record(PowerGridPerformanceData $class): void
{
$now = CarbonImmutable::now();
$data = collect($class);
$this->pulse->set(
type: 'powergrid-performance',
key: uniqid(),
value: $data,
timestamp: $now->getTimestamp()
);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace PowerComponents\LivewirePowerGrid\Recorders;
use Carbon\CarbonImmutable;
use Illuminate\Config\Repository;
use Laravel\Pulse\Pulse;
use PowerComponents\LivewirePowerGrid\Events\PowerGridPerformanceData;
class PowerGridPerformanceRecorder
{
public string $listen = PowerGridPerformanceData::class;
public function __construct(
protected Pulse $pulse,
protected Repository $config
) {
}
public function record(PowerGridPerformanceData $class): void
{
$now = CarbonImmutable::now();
$data = collect($class);
$this->pulse->set(
type: 'powergrid-performance',
key: uniqid(),
value: $data,
timestamp: $now->getTimestamp()
);
}
}
Function Calls
None |
Stats
MD5 | af7c92b1d37c0d71f7e765b837a58d5b |
Eval Count | 0 |
Decode Time | 85 ms |