This commit is contained in:
Jeremy Benoist 2022-12-13 10:26:51 +01:00
parent 498b205c53
commit de5b138a59
No known key found for this signature in database
GPG key ID: 7168D5DD29F38552
9 changed files with 10 additions and 10 deletions

View file

@ -9,7 +9,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
abstract class WallabagMigration extends AbstractMigration implements ContainerAwareInterface abstract class WallabagMigration extends AbstractMigration implements ContainerAwareInterface
{ {
const UN_ESCAPED_TABLE = true; public const UN_ESCAPED_TABLE = true;
/** /**
* @var ContainerInterface * @var ContainerInterface

View file

@ -21,8 +21,8 @@ use Wallabag\UserBundle\Entity\User;
*/ */
class Config class Config
{ {
const REDIRECT_TO_HOMEPAGE = 0; public const REDIRECT_TO_HOMEPAGE = 0;
const REDIRECT_TO_CURRENT_PAGE = 1; public const REDIRECT_TO_CURRENT_PAGE = 1;
/** /**
* @var int * @var int

View file

@ -10,7 +10,7 @@ use Wallabag\CoreBundle\Entity\Entry;
*/ */
class EntryDeletedEvent extends Event class EntryDeletedEvent extends Event
{ {
const NAME = 'entry.deleted'; public const NAME = 'entry.deleted';
protected $entry; protected $entry;

View file

@ -10,7 +10,7 @@ use Wallabag\CoreBundle\Entity\Entry;
*/ */
class EntrySavedEvent extends Event class EntrySavedEvent extends Event
{ {
const NAME = 'entry.saved'; public const NAME = 'entry.saved';
protected $entry; protected $entry;

View file

@ -19,7 +19,7 @@ use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser;
class DownloadImages class DownloadImages
{ {
const REGENERATE_PICTURES_QUALITY = 80; public const REGENERATE_PICTURES_QUALITY = 80;
private $client; private $client;
private $baseFolder; private $baseFolder;

View file

@ -47,7 +47,7 @@ class TagsAssigner
$label = trim(mb_convert_case($label, \MB_CASE_LOWER)); $label = trim(mb_convert_case($label, \MB_CASE_LOWER));
// avoid empty tag // avoid empty tag
if (0 === \strlen($label)) { if ('' === $label) {
continue; continue;
} }

View file

@ -383,7 +383,7 @@ class EntryRepository extends ServiceEntityRepository
* Remove tags from all user entries. * Remove tags from all user entries.
* *
* @param int $userId * @param int $userId
* @param Array<Tag> $tags * @param array<Tag> $tags
*/ */
public function removeTags($userId, $tags) public function removeTags($userId, $tags)
{ {

View file

@ -14,7 +14,7 @@ use Wallabag\CoreBundle\Entity\Entry;
class PocketImport extends AbstractImport class PocketImport extends AbstractImport
{ {
const NB_ELEMENTS = 5000; public const NB_ELEMENTS = 5000;
/** /**
* @var HttpMethodsClient * @var HttpMethodsClient
*/ */

View file

@ -17,7 +17,7 @@ use Wallabag\UserBundle\Entity\User;
class EntryControllerTest extends WallabagCoreTestCase 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 $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'; 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"]'; private $entryDataTestAttribute = '[data-test="entry"]';