mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Merge pull request #6113 from wallabag/dependabot/composer/friendsofphp/php-cs-fixer-3.4.0
Bump friendsofphp/php-cs-fixer from 2.19.3 to 3.4.0
This commit is contained in:
commit
a57c815ddc
11 changed files with 51 additions and 142 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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue