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 App\Jobs\Banking; use App\Abstracts\Job; use App\Interfaces\Job\ShouldDe..

Decoded Output download

<?php

namespace App\Jobs\Banking;

use App\Abstracts\Job;
use App\Interfaces\Job\ShouldDelete;
use App\Models\Banking\Transaction;

class DeleteReconciliation extends Job implements ShouldDelete
{
    public function handle(): bool
    {
        \DB::transaction(function () {
            $this->model->delete();

            Transaction::where('account_id', $this->model->account_id)
                ->isReconciled()
                ->whereBetween('paid_at', [$this->model->started_at, $this->model->ended_at])->each(function ($transaction) {
                    $transaction->reconciled = 0;
                    $transaction->save();
                });
        });

        return true;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Jobs\Banking;

use App\Abstracts\Job;
use App\Interfaces\Job\ShouldDelete;
use App\Models\Banking\Transaction;

class DeleteReconciliation extends Job implements ShouldDelete
{
    public function handle(): bool
    {
        \DB::transaction(function () {
            $this->model->delete();

            Transaction::where('account_id', $this->model->account_id)
                ->isReconciled()
                ->whereBetween('paid_at', [$this->model->started_at, $this->model->ended_at])->each(function ($transaction) {
                    $transaction->reconciled = 0;
                    $transaction->save();
                });
        });

        return true;
    }
}

Function Calls

None

Variables

None

Stats

MD5 05e6efafd683ac6278e5d573db8bec2c
Eval Count 0
Decode Time 144 ms