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 Illuminate\Foundation\Testing\Constraints; class HasSource extends PageC..
Decoded Output download
<?php
namespace Illuminate\Foundation\Testing\Constraints;
class HasSource extends PageConstraint
{
/**
* The expected HTML source.
*
* @var string
*/
protected $source;
/**
* Create a new constraint instance.
*
* @param string $source
* @return void
*/
public function __construct($source)
{
$this->source = $source;
}
/**
* Check if the source is found in the given crawler.
*
* @param \Symfony\Component\DomCrawler\Crawler|string $crawler
* @return bool
*/
protected function matches($crawler)
{
$pattern = $this->getEscapedPattern($this->source);
return preg_match("/$pattern/i", $this->html($crawler));
}
/**
* Returns a string representation of the object.
*
* @return string
*/
public function toString()
{
return "the HTML [{$this->source}]";
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Illuminate\Foundation\Testing\Constraints;
class HasSource extends PageConstraint
{
/**
* The expected HTML source.
*
* @var string
*/
protected $source;
/**
* Create a new constraint instance.
*
* @param string $source
* @return void
*/
public function __construct($source)
{
$this->source = $source;
}
/**
* Check if the source is found in the given crawler.
*
* @param \Symfony\Component\DomCrawler\Crawler|string $crawler
* @return bool
*/
protected function matches($crawler)
{
$pattern = $this->getEscapedPattern($this->source);
return preg_match("/$pattern/i", $this->html($crawler));
}
/**
* Returns a string representation of the object.
*
* @return string
*/
public function toString()
{
return "the HTML [{$this->source}]";
}
}
Function Calls
None |
Stats
MD5 | 851505be31accc75a142690fc09955ce |
Eval Count | 0 |
Decode Time | 79 ms |