forked from wallabag/wallabag
Apply PHP-CS-Fixer fixes
This commit is contained in:
@ -16,7 +16,7 @@ abstract class WallabagAnnotationTestCase extends WebTestCase
|
||||
/**
|
||||
* @var KernelBrowser
|
||||
*/
|
||||
protected $client = null;
|
||||
protected $client;
|
||||
|
||||
/**
|
||||
* @var UserInterface
|
||||
|
||||
@ -18,7 +18,7 @@ abstract class WallabagApiTestCase extends WebTestCase
|
||||
/**
|
||||
* @var KernelBrowser
|
||||
*/
|
||||
protected $client = null;
|
||||
protected $client;
|
||||
|
||||
/**
|
||||
* @var UserInterface
|
||||
|
||||
@ -12,7 +12,7 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
|
||||
public $url = 'https://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html';
|
||||
|
||||
/**
|
||||
* @var entry
|
||||
* @var Entry
|
||||
*/
|
||||
public $adminEntry;
|
||||
|
||||
|
||||
@ -36,7 +36,7 @@ class FeedControllerTest extends WallabagCoreTestCase
|
||||
$this->assertSame('admin', $xpath->query('/a:feed/a:author/a:name')->item(0)->nodeValue);
|
||||
|
||||
$this->assertSame(1, $xpath->query('/a:feed/a:subtitle')->length);
|
||||
if (null !== $tagValue && 0 === strpos($type, 'tag')) {
|
||||
if (null !== $tagValue && str_starts_with($type, 'tag')) {
|
||||
$this->assertSame('wallabag — ' . $type . ' ' . $tagValue . ' feed', $xpath->query('/a:feed/a:title')->item(0)->nodeValue);
|
||||
$this->assertSame('Atom feed for entries tagged with ' . $tagValue, $xpath->query('/a:feed/a:subtitle')->item(0)->nodeValue);
|
||||
} else {
|
||||
|
||||
@ -437,7 +437,7 @@ class ContentProxyTest extends TestCase
|
||||
$ruleBasedIgnoreOriginProcessor->expects($this->once())
|
||||
->method('process');
|
||||
|
||||
$proxy = new ContentProxy((new Graby()), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage, true);
|
||||
$proxy = new ContentProxy(new Graby(), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage, true);
|
||||
$entry = new Entry(new User());
|
||||
$proxy->updateEntry(
|
||||
$entry,
|
||||
@ -483,7 +483,7 @@ class ContentProxyTest extends TestCase
|
||||
$logHandler = new TestHandler();
|
||||
$logger = new Logger('test', [$logHandler]);
|
||||
|
||||
$proxy = new ContentProxy((new Graby()), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $logger, $this->fetchingErrorMessage);
|
||||
$proxy = new ContentProxy(new Graby(), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $logger, $this->fetchingErrorMessage);
|
||||
$entry = new Entry(new User());
|
||||
$proxy->updateEntry(
|
||||
$entry,
|
||||
@ -523,7 +523,7 @@ class ContentProxyTest extends TestCase
|
||||
$handler = new TestHandler();
|
||||
$logger->pushHandler($handler);
|
||||
|
||||
$proxy = new ContentProxy((new Graby()), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $logger, $this->fetchingErrorMessage);
|
||||
$proxy = new ContentProxy(new Graby(), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $logger, $this->fetchingErrorMessage);
|
||||
$entry = new Entry(new User());
|
||||
$proxy->updateEntry(
|
||||
$entry,
|
||||
@ -565,7 +565,7 @@ class ContentProxyTest extends TestCase
|
||||
|
||||
$ruleBasedIgnoreOriginProcessor = $this->getRuleBasedIgnoreOriginProcessorMock();
|
||||
|
||||
$proxy = new ContentProxy((new Graby()), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage);
|
||||
$proxy = new ContentProxy(new Graby(), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage);
|
||||
$entry = new Entry(new User());
|
||||
$proxy->updateEntry(
|
||||
$entry,
|
||||
@ -609,7 +609,7 @@ class ContentProxyTest extends TestCase
|
||||
|
||||
$ruleBasedIgnoreOriginProcessor = $this->getRuleBasedIgnoreOriginProcessorMock();
|
||||
|
||||
$proxy = new ContentProxy((new Graby()), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage);
|
||||
$proxy = new ContentProxy(new Graby(), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage);
|
||||
$entry = new Entry(new User());
|
||||
$proxy->updateEntry(
|
||||
$entry,
|
||||
@ -620,7 +620,7 @@ class ContentProxyTest extends TestCase
|
||||
'url' => 'http://1.1.1.1',
|
||||
'language' => 'fr',
|
||||
'status' => '200',
|
||||
//'og_title' => 'my OG title',
|
||||
// 'og_title' => 'my OG title',
|
||||
'description' => 'OG desc',
|
||||
'image' => 'http://3.3.3.3/cover.jpg',
|
||||
'headers' => [
|
||||
@ -1043,7 +1043,7 @@ class ContentProxyTest extends TestCase
|
||||
->method('process')
|
||||
->willReturn($processor_result);
|
||||
|
||||
$proxy = new ContentProxy((new Graby()), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage, true);
|
||||
$proxy = new ContentProxy(new Graby(), $tagger, $ruleBasedIgnoreOriginProcessor, $this->getValidator(), $this->getLogger(), $this->fetchingErrorMessage, true);
|
||||
$entry = new Entry(new User());
|
||||
$entry->setOriginUrl($origin_url);
|
||||
$proxy->updateEntry(
|
||||
@ -1069,8 +1069,6 @@ class ContentProxyTest extends TestCase
|
||||
/**
|
||||
* https://stackoverflow.com/a/18506801.
|
||||
*
|
||||
* @param $string
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function strToHex($string)
|
||||
@ -1090,8 +1088,6 @@ class ContentProxyTest extends TestCase
|
||||
*
|
||||
* @see https://stackoverflow.com/a/18506801
|
||||
*
|
||||
* @param $hex
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function hexToStr($hex)
|
||||
|
||||
@ -18,7 +18,7 @@ abstract class WallabagCoreTestCase extends WebTestCase
|
||||
/**
|
||||
* @var KernelBrowser|null
|
||||
*/
|
||||
private $client = null;
|
||||
private $client;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@ -190,7 +190,7 @@ class PocketImportTest extends TestCase
|
||||
}
|
||||
}
|
||||
JSON
|
||||
));
|
||||
));
|
||||
|
||||
$pocketImport = $this->getPocketImport('ConsumerKey', 1);
|
||||
|
||||
@ -280,7 +280,7 @@ JSON
|
||||
}
|
||||
}
|
||||
JSON
|
||||
));
|
||||
));
|
||||
|
||||
$pocketImport = $this->getPocketImport('ConsumerKey', 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user