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 /** * The file was created by Assimon. * * @author assimon<[email protected]> * ..
Decoded Output download
<?php
/**
* The file was created by Assimon.
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
namespace App\Service;
use App\Models\Pay;
class PayService
{
/**
*
*
* @param string|int $payClient
* @return array|null
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public function pays(string $payClient = Pay::PAY_CLIENT_PC): ?array
{
$payGateway = Pay::query()
->whereIn('pay_client', [$payClient, Pay::PAY_CLIENT_ALL])
->where('is_open', Pay::STATUS_OPEN)
->get();
return $payGateway ? $payGateway->toArray() : null;
}
/**
*
*
* @param string $check
* @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public function detailByCheck(string $check)
{
$gateway = Pay::query()
->where('pay_check', $check)
->where('is_open', Pay::STATUS_OPEN)
->first();
return $gateway;
}
/**
* id
*
* @param int $id id
* @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public function detail(int $id)
{
$gateway = Pay::query()
->where('id', $id)
->where('is_open', Pay::STATUS_OPEN)
->first();
return $gateway;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* The file was created by Assimon.
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
namespace App\Service;
use App\Models\Pay;
class PayService
{
/**
*
*
* @param string|int $payClient
* @return array|null
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public function pays(string $payClient = Pay::PAY_CLIENT_PC): ?array
{
$payGateway = Pay::query()
->whereIn('pay_client', [$payClient, Pay::PAY_CLIENT_ALL])
->where('is_open', Pay::STATUS_OPEN)
->get();
return $payGateway ? $payGateway->toArray() : null;
}
/**
*
*
* @param string $check
* @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public function detailByCheck(string $check)
{
$gateway = Pay::query()
->where('pay_check', $check)
->where('is_open', Pay::STATUS_OPEN)
->first();
return $gateway;
}
/**
* id
*
* @param int $id id
* @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public function detail(int $id)
{
$gateway = Pay::query()
->where('id', $id)
->where('is_open', Pay::STATUS_OPEN)
->first();
return $gateway;
}
}
Function Calls
None |
Stats
MD5 | d9072a31efc8f903fd5fda0b1d465072 |
Eval Count | 0 |
Decode Time | 118 ms |