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 Drupal\aggregator_test\Plugin\aggregator\fetcher; use Drupal\aggregator\..
Decoded Output download
<?php
namespace Drupalggregator_test\Pluginggregatoretcher;
use Drupalggregator\Plugin\FetcherInterface;
use Drupalggregator\Pluginggregatoretcher\DefaultFetcher;
use Drupalggregator\FeedInterface;
/**
* Defines a test fetcher implementation.
*
* Uses http_client class to download the feed.
*
* @AggregatorFetcher(
* id = "aggregator_test_fetcher",
* title = @Translation("Test fetcher"),
* description = @Translation("Dummy fetcher for testing purposes.")
* )
*/
class TestFetcher extends DefaultFetcher implements FetcherInterface {
/**
* {@inheritdoc}
*/
public function fetch(FeedInterface $feed) {
if ($feed->label() == 'Do not fetch') {
return FALSE;
}
return parent::fetch($feed);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\aggregator_test\Plugin\aggregator\fetcher;
use Drupal\aggregator\Plugin\FetcherInterface;
use Drupal\aggregator\Plugin\aggregator\fetcher\DefaultFetcher;
use Drupal\aggregator\FeedInterface;
/**
* Defines a test fetcher implementation.
*
* Uses http_client class to download the feed.
*
* @AggregatorFetcher(
* id = "aggregator_test_fetcher",
* title = @Translation("Test fetcher"),
* description = @Translation("Dummy fetcher for testing purposes.")
* )
*/
class TestFetcher extends DefaultFetcher implements FetcherInterface {
/**
* {@inheritdoc}
*/
public function fetch(FeedInterface $feed) {
if ($feed->label() == 'Do not fetch') {
return FALSE;
}
return parent::fetch($feed);
}
}
Function Calls
None |
Stats
MD5 | 4538d18486b011dd3186c7f3d3d45494 |
Eval Count | 0 |
Decode Time | 89 ms |