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 /** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invo..

Decoded Output download

<?php
/**
 * Invoice Ninja (https://invoiceninja.com).
 *
 * @link https://github.com/invoiceninja/invoiceninja source repository
 *
 * @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
 *
 * @license https://www.elastic.co/licensing/elastic-license
 */

namespace App\Factory;

use App\Models\RecurringQuote;

class RecurringQuoteFactory
{
    public static function create(int $company_id, int $user_id): RecurringQuote
    {
        $quote = new RecurringQuote();
        $quote->status_id = RecurringQuote::STATUS_DRAFT;
        $quote->discount = 0;
        $quote->is_amount_discount = true;
        $quote->po_number = '';
        $quote->number = '';
        $quote->footer = '';
        $quote->terms = '';
        $quote->public_notes = '';
        $quote->private_notes = '';
        $quote->date = null;
        $quote->due_date = null;
        $quote->partial_due_date = null;
        $quote->is_deleted = false;
        $quote->line_items = json_encode([]);
        $quote->tax_name1 = '';
        $quote->tax_rate1 = 0;
        $quote->tax_name2 = '';
        $quote->tax_rate2 = 0;
        $quote->custom_value1 = '';
        $quote->custom_value2 = '';
        $quote->custom_value3 = '';
        $quote->custom_value4 = '';
        $quote->amount = 0;
        $quote->balance = 0;
        $quote->partial = 0;
        $quote->user_id = $user_id;
        $quote->company_id = $company_id;
        $quote->frequency_id = RecurringQuote::FREQUENCY_MONTHLY;
        $quote->last_sent_date = null;
        $quote->next_send_date = null;
        $quote->remaining_cycles = 0;
        $quote->paid_to_date = 0;

        return $quote;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * Invoice Ninja (https://invoiceninja.com).
 *
 * @link https://github.com/invoiceninja/invoiceninja source repository
 *
 * @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
 *
 * @license https://www.elastic.co/licensing/elastic-license
 */

namespace App\Factory;

use App\Models\RecurringQuote;

class RecurringQuoteFactory
{
    public static function create(int $company_id, int $user_id): RecurringQuote
    {
        $quote = new RecurringQuote();
        $quote->status_id = RecurringQuote::STATUS_DRAFT;
        $quote->discount = 0;
        $quote->is_amount_discount = true;
        $quote->po_number = '';
        $quote->number = '';
        $quote->footer = '';
        $quote->terms = '';
        $quote->public_notes = '';
        $quote->private_notes = '';
        $quote->date = null;
        $quote->due_date = null;
        $quote->partial_due_date = null;
        $quote->is_deleted = false;
        $quote->line_items = json_encode([]);
        $quote->tax_name1 = '';
        $quote->tax_rate1 = 0;
        $quote->tax_name2 = '';
        $quote->tax_rate2 = 0;
        $quote->custom_value1 = '';
        $quote->custom_value2 = '';
        $quote->custom_value3 = '';
        $quote->custom_value4 = '';
        $quote->amount = 0;
        $quote->balance = 0;
        $quote->partial = 0;
        $quote->user_id = $user_id;
        $quote->company_id = $company_id;
        $quote->frequency_id = RecurringQuote::FREQUENCY_MONTHLY;
        $quote->last_sent_date = null;
        $quote->next_send_date = null;
        $quote->remaining_cycles = 0;
        $quote->paid_to_date = 0;

        return $quote;
    }
}

Function Calls

None

Variables

None

Stats

MD5 cd5c21ea31a79536fb50f9548251680c
Eval Count 0
Decode Time 104 ms