mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-24 18:36:59 +03:00
chore: increase linter speed (#4211)
This commit is contained in:
parent
133dbf87c5
commit
4424ea54e9
3 changed files with 7 additions and 4 deletions
|
@ -49,7 +49,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./vendor/bin/phpunit",
|
"test": "./vendor/bin/phpunit",
|
||||||
"lint": "./vendor/bin/phpcs --standard=phpcs.xml --warning-severity=0 --extensions=php -p ./",
|
"lint": "./vendor/bin/phpcs --parallel=2 --standard=phpcs.xml --warning-severity=0 --extensions=php -p ./",
|
||||||
"compat": "./vendor/bin/phpcs --standard=phpcompatibility.xml --warning-severity=0 --extensions=php -p ./"
|
"compat": "./vendor/bin/phpcs --standard=phpcompatibility.xml --warning-severity=0 --extensions=php -p ./"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,9 @@ register_shutdown_function(function () use ($logger) {
|
||||||
|
|
||||||
$cacheFactory = new CacheFactory($logger);
|
$cacheFactory = new CacheFactory($logger);
|
||||||
|
|
||||||
|
// Uncomment this for debug logging
|
||||||
|
// $logger->addHandler(new StreamHandler('/tmp/rss-bridge.txt', Logger::DEBUG));
|
||||||
|
|
||||||
if (Debug::isEnabled()) {
|
if (Debug::isEnabled()) {
|
||||||
$logger->addHandler(new ErrorLogHandler(Logger::DEBUG));
|
$logger->addHandler(new ErrorLogHandler(Logger::DEBUG));
|
||||||
$cache = $cacheFactory->create('array');
|
$cache = $cacheFactory->create('array');
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
abstract class BridgeAbstract
|
abstract class BridgeAbstract
|
||||||
{
|
{
|
||||||
const NAME = 'Unnamed bridge';
|
const NAME = null;
|
||||||
const URI = '';
|
const URI = null;
|
||||||
const DONATION_URI = '';
|
const DONATION_URI = '';
|
||||||
const DESCRIPTION = 'No description provided';
|
const DESCRIPTION = 'No description provided';
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ abstract class BridgeAbstract
|
||||||
|
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
return static::NAME;
|
return static::NAME ?? $this->getShortName();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getURI()
|
public function getURI()
|
||||||
|
|
Loading…
Reference in a new issue