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 SimpleValidator\Validators; class Range extends Base { private $min;..

Decoded Output download

<?php

namespace SimpleValidator\Validators;

class Range extends Base
{
    private $min;
    private $max;

    public function __construct($field, $error_message, $min, $max)
    {
        parent::__construct($field, $error_message);

        $this->min = $min;
        $this->max = $max;
    }

    public function execute(array $data)
    {
        if ($this->isFieldNotEmpty($data)) {

            if (! is_numeric($data[$this->field])) {
                return false;
            }

            if ($data[$this->field] < $this->min || $data[$this->field] > $this->max) {
                return false;
            }
        }

        return true;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace SimpleValidator\Validators;

class Range extends Base
{
    private $min;
    private $max;

    public function __construct($field, $error_message, $min, $max)
    {
        parent::__construct($field, $error_message);

        $this->min = $min;
        $this->max = $max;
    }

    public function execute(array $data)
    {
        if ($this->isFieldNotEmpty($data)) {

            if (! is_numeric($data[$this->field])) {
                return false;
            }

            if ($data[$this->field] < $this->min || $data[$this->field] > $this->max) {
                return false;
            }
        }

        return true;
    }
}

Function Calls

None

Variables

None

Stats

MD5 3d26effe17c38e5f6916219071363a06
Eval Count 0
Decode Time 88 ms