mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-16 18:55:15 +00:00
Fix CS
This commit is contained in:
parent
498b205c53
commit
de5b138a59
9 changed files with 10 additions and 10 deletions
|
@ -9,7 +9,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||
|
||||
abstract class WallabagMigration extends AbstractMigration implements ContainerAwareInterface
|
||||
{
|
||||
const UN_ESCAPED_TABLE = true;
|
||||
public const UN_ESCAPED_TABLE = true;
|
||||
|
||||
/**
|
||||
* @var ContainerInterface
|
||||
|
|
|
@ -21,8 +21,8 @@ use Wallabag\UserBundle\Entity\User;
|
|||
*/
|
||||
class Config
|
||||
{
|
||||
const REDIRECT_TO_HOMEPAGE = 0;
|
||||
const REDIRECT_TO_CURRENT_PAGE = 1;
|
||||
public const REDIRECT_TO_HOMEPAGE = 0;
|
||||
public const REDIRECT_TO_CURRENT_PAGE = 1;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
|
|
|
@ -10,7 +10,7 @@ use Wallabag\CoreBundle\Entity\Entry;
|
|||
*/
|
||||
class EntryDeletedEvent extends Event
|
||||
{
|
||||
const NAME = 'entry.deleted';
|
||||
public const NAME = 'entry.deleted';
|
||||
|
||||
protected $entry;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ use Wallabag\CoreBundle\Entity\Entry;
|
|||
*/
|
||||
class EntrySavedEvent extends Event
|
||||
{
|
||||
const NAME = 'entry.saved';
|
||||
public const NAME = 'entry.saved';
|
||||
|
||||
protected $entry;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser;
|
|||
|
||||
class DownloadImages
|
||||
{
|
||||
const REGENERATE_PICTURES_QUALITY = 80;
|
||||
public const REGENERATE_PICTURES_QUALITY = 80;
|
||||
|
||||
private $client;
|
||||
private $baseFolder;
|
||||
|
|
|
@ -47,7 +47,7 @@ class TagsAssigner
|
|||
$label = trim(mb_convert_case($label, \MB_CASE_LOWER));
|
||||
|
||||
// avoid empty tag
|
||||
if (0 === \strlen($label)) {
|
||||
if ('' === $label) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -383,7 +383,7 @@ class EntryRepository extends ServiceEntityRepository
|
|||
* Remove tags from all user entries.
|
||||
*
|
||||
* @param int $userId
|
||||
* @param Array<Tag> $tags
|
||||
* @param array<Tag> $tags
|
||||
*/
|
||||
public function removeTags($userId, $tags)
|
||||
{
|
||||
|
|
|
@ -14,7 +14,7 @@ use Wallabag\CoreBundle\Entity\Entry;
|
|||
|
||||
class PocketImport extends AbstractImport
|
||||
{
|
||||
const NB_ELEMENTS = 5000;
|
||||
public const NB_ELEMENTS = 5000;
|
||||
/**
|
||||
* @var HttpMethodsClient
|
||||
*/
|
||||
|
|
|
@ -17,7 +17,7 @@ use Wallabag\UserBundle\Entity\User;
|
|||
|
||||
class EntryControllerTest extends WallabagCoreTestCase
|
||||
{
|
||||
const AN_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE = 'https://www.lemonde.fr/judo/article/2017/11/11/judo-la-decima-de-teddy-riner_5213605_1556020.html';
|
||||
public const AN_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE = 'https://www.lemonde.fr/judo/article/2017/11/11/judo-la-decima-de-teddy-riner_5213605_1556020.html';
|
||||
public $downloadImagesEnabled = false;
|
||||
public $url = 'https://www.lemonde.fr/pixels/article/2019/06/18/ce-qu-il-faut-savoir-sur-le-libra-la-cryptomonnaie-de-facebook_5477887_4408996.html';
|
||||
private $entryDataTestAttribute = '[data-test="entry"]';
|
||||
|
|
Loading…
Reference in a new issue