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\Traits; use Throwable; use Illuminate\Support\Arr; trait Translatio..
Decoded Output download
<?php
namespace App\Traits;
use Throwable;
use Illuminate\Support\Arr;
trait Translations
{
public function findTranslation($keys, $number = 2)
{
$keys = Arr::wrap($keys);
try {
foreach ($keys as $key) {
if (is_array($key)) {
$tmp = $key;
$key = $tmp[0];
$number = $tmp[1];
}
if ($key != trans_choice($key, $number)) {
return trans_choice($key, $number);
}
if ($key != trans($key)) {
return trans($key);
}
}
} catch (Throwable $e) {
return '';
}
return '';
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace App\Traits;
use Throwable;
use Illuminate\Support\Arr;
trait Translations
{
public function findTranslation($keys, $number = 2)
{
$keys = Arr::wrap($keys);
try {
foreach ($keys as $key) {
if (is_array($key)) {
$tmp = $key;
$key = $tmp[0];
$number = $tmp[1];
}
if ($key != trans_choice($key, $number)) {
return trans_choice($key, $number);
}
if ($key != trans($key)) {
return trans($key);
}
}
} catch (Throwable $e) {
return '';
}
return '';
}
}
Function Calls
None |
Stats
MD5 | 6c331f1a3437b00cc9b32ba3d1d75485 |
Eval Count | 0 |
Decode Time | 85 ms |