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\Controller; use Symfony\Component\HttpFoundation\Request; use Symfon..

Decoded Output download

<?php 
 namespace App\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Contracts\Translation\TranslatorInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController as BaseController; use Symfony\Component\Form\Form; use App\Service\Logger; use App\Util\Retry; class Controller extends BaseController { protected array $formErrors = []; protected Logger $logger; protected TranslatorInterface $translator; public function __construct(TranslatorInterface $translator, Logger $logger) { $this->translator = $translator; $this->logger = $logger; } protected function getErrorMessages(Form $form) : array { goto b5fc2; d5730: foreach ($formChildren as $child) { goto A7794; b7329: $childErrors = $child->getErrors(true); goto A6384; f2ca4: fd4d1: goto b2b16; b2b16: Ae63d: goto e04b7; e04b7: cc131: goto d03bd; A7794: if (!(false === $child->isValid())) { goto Ae63d; } goto b7329; A6384: foreach ($childErrors as $childError) { goto ec4e3; Dc283: B32b9: goto b9aa5; ff822: $message = $childError->getMessage(); goto Dbe53; ec4e3: $label = $this->translator->trans($child->getConfig()->getOption("label")); goto a5f45; c87a6: ba6c5: goto A8fe7; F51ee: f9104: goto C5902; b9aa5: $message = sprintf("%s: %s", $label, $childError->getMessage()); goto c87a6; A8fe7: $errors[] = $message; goto F51ee; Dbe53: goto ba6c5; goto Dc283; a5f45: if ($label) { goto B32b9; } goto ff822; C5902: } goto f2ca4; d03bd: } goto e279c; b8df3: if (!count($formErrors)) { goto Ddd61; } goto c3322; Aa3df: $formChildren = $form->all(); goto Bf7a2; Edde2: D0c32: goto dd73d; e279c: E26b4: goto E9a3b; dd73d: Ddd61: goto d5730; E9a3b: return $errors; goto ac491; b5fc2: $errors = []; goto Aa3df; c3322: foreach ($formErrors as $formError) { $errors[] = $formError->getMessage(); c134b: } goto Edde2; Bf7a2: $formErrors = $form->getErrors(); goto b8df3; ac491: } protected function redirectToReferer(Request $request) : Response { $referer = $request->headers->get("referer"); return new RedirectResponse($referer); } protected function retry(callable $fn, $retries = 2, $delay = 3) { return Retry::retry($fn, $retries, $delay); } } 
 ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Contracts\Translation\TranslatorInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController as BaseController; use Symfony\Component\Form\Form; use App\Service\Logger; use App\Util\Retry; class Controller extends BaseController { protected array $formErrors = []; protected Logger $logger; protected TranslatorInterface $translator; public function __construct(TranslatorInterface $translator, Logger $logger) { $this->translator = $translator; $this->logger = $logger; } protected function getErrorMessages(Form $form) : array { goto b5fc2; d5730: foreach ($formChildren as $child) { goto A7794; b7329: $childErrors = $child->getErrors(true); goto A6384; f2ca4: fd4d1: goto b2b16; b2b16: Ae63d: goto e04b7; e04b7: cc131: goto d03bd; A7794: if (!(false === $child->isValid())) { goto Ae63d; } goto b7329; A6384: foreach ($childErrors as $childError) { goto ec4e3; Dc283: B32b9: goto b9aa5; ff822: $message = $childError->getMessage(); goto Dbe53; ec4e3: $label = $this->translator->trans($child->getConfig()->getOption("\154\141\142\x65\x6c")); goto a5f45; c87a6: ba6c5: goto A8fe7; F51ee: f9104: goto C5902; b9aa5: $message = sprintf("\45\x73\x3a\40\45\163", $label, $childError->getMessage()); goto c87a6; A8fe7: $errors[] = $message; goto F51ee; Dbe53: goto ba6c5; goto Dc283; a5f45: if ($label) { goto B32b9; } goto ff822; C5902: } goto f2ca4; d03bd: } goto e279c; b8df3: if (!count($formErrors)) { goto Ddd61; } goto c3322; Aa3df: $formChildren = $form->all(); goto Bf7a2; Edde2: D0c32: goto dd73d; e279c: E26b4: goto E9a3b; dd73d: Ddd61: goto d5730; E9a3b: return $errors; goto ac491; b5fc2: $errors = []; goto Aa3df; c3322: foreach ($formErrors as $formError) { $errors[] = $formError->getMessage(); c134b: } goto Edde2; Bf7a2: $formErrors = $form->getErrors(); goto b8df3; ac491: } protected function redirectToReferer(Request $request) : Response { $referer = $request->headers->get("\x72\x65\x66\145\162\x65\x72"); return new RedirectResponse($referer); } protected function retry(callable $fn, $retries = 2, $delay = 3) { return Retry::retry($fn, $retries, $delay); } }

Function Calls

None

Variables

None

Stats

MD5 3d2a6415b302efd70aa5542ca032dd52
Eval Count 0
Decode Time 41 ms