forked from wallabag/wallabag
Update deps
Also CS (because cs-fixer got an update) Package operations: 0 installs, 26 updates, 0 removals - Updating twig/twig (v2.12.1 => v2.12.2) - Updating symfony/symfony (v3.4.33 => v3.4.34) - Updating doctrine/event-manager (v1.0.0 => 1.1.0) - Updating doctrine/collections (v1.6.2 => 1.6.3) - Updating doctrine/cache (v1.8.1 => 1.9.0) - Updating doctrine/persistence (1.1.1 => 1.2.0) - Updating doctrine/inflector (v1.3.0 => 1.3.1) - Updating symfony/mime (v4.3.5 => v4.3.7) - Updating swiftmailer/swiftmailer (v6.2.1 => v6.2.3) - Updating symfony/swiftmailer-bundle (v3.3.0 => v3.3.1) - Updating doctrine/dbal (v2.9.2 => v2.9.3) - Updating doctrine/instantiator (1.2.0 => 1.3.0) - Updating j0k3r/graby-site-config (1.0.93 => 1.0.94) - Updating phpoption/phpoption (1.5.0 => 1.5.2) - Updating symfony/http-client-contracts (v1.1.7 => v1.1.8) - Updating symfony/http-client (v4.3.5 => v4.3.7) - Updating sensiolabs/security-checker (v6.0.2 => v6.0.3) - Updating paragonie/constant_time_encoding (v2.2.3 => v2.3.0) - Updating scheb/two-factor-bundle (v4.7.1 => v4.8.0) - Updating symfony/phpunit-bridge (v4.3.6 => v4.3.7) - Updating composer/xdebug-handler (1.3.3 => 1.4.0) - Updating friendsofphp/php-cs-fixer (v2.15.3 => v2.16.0) - Updating doctrine/data-fixtures (v1.3.2 => 1.3.3) - Updating nette/schema (v1.0.0 => v1.0.1) - Updating nikic/php-parser (v4.2.4 => v4.3.0) - Updating sentry/sentry (2.2.2 => 2.2.4)
This commit is contained in:
@ -86,7 +86,6 @@ class ContentProxy
|
||||
/**
|
||||
* Use a Symfony validator to ensure the language is well formatted.
|
||||
*
|
||||
* @param Entry $entry
|
||||
* @param string $value Language to validate and save
|
||||
*/
|
||||
public function updateLanguage(Entry $entry, $value)
|
||||
@ -112,7 +111,6 @@ class ContentProxy
|
||||
/**
|
||||
* Use a Symfony validator to ensure the preview picture is a real url.
|
||||
*
|
||||
* @param Entry $entry
|
||||
* @param string $value URL to validate and save
|
||||
*/
|
||||
public function updatePreviewPicture(Entry $entry, $value)
|
||||
@ -134,7 +132,6 @@ class ContentProxy
|
||||
/**
|
||||
* Update date.
|
||||
*
|
||||
* @param Entry $entry
|
||||
* @param string $value Date to validate and save
|
||||
*/
|
||||
public function updatePublishedAt(Entry $entry, $value)
|
||||
@ -161,8 +158,6 @@ class ContentProxy
|
||||
|
||||
/**
|
||||
* Helper to extract and save host from entry url.
|
||||
*
|
||||
* @param Entry $entry
|
||||
*/
|
||||
public function setEntryDomainName(Entry $entry)
|
||||
{
|
||||
@ -176,8 +171,6 @@ class ContentProxy
|
||||
* Helper to set a default title using:
|
||||
* - url basename, if applicable
|
||||
* - hostname.
|
||||
*
|
||||
* @param Entry $entry
|
||||
*/
|
||||
public function setDefaultEntryTitle(Entry $entry)
|
||||
{
|
||||
@ -333,7 +326,6 @@ class ContentProxy
|
||||
* Update the origin_url field when a redirection occurs
|
||||
* This field is set if it is empty and new url does not match ignore list.
|
||||
*
|
||||
* @param Entry $entry
|
||||
* @param string $url
|
||||
*/
|
||||
private function updateOriginUrl(Entry $entry, $url)
|
||||
@ -441,8 +433,6 @@ class ContentProxy
|
||||
/**
|
||||
* Validate that the given content has at least a title, an html and a url.
|
||||
*
|
||||
* @param array $content
|
||||
*
|
||||
* @return bool true if valid otherwise false
|
||||
*/
|
||||
private function validateContent(array $content)
|
||||
|
||||
@ -213,8 +213,6 @@ class DownloadImages
|
||||
/**
|
||||
* Get images urls from the srcset image attribute.
|
||||
*
|
||||
* @param Crawler $imagesCrawler
|
||||
*
|
||||
* @return array An array of urls
|
||||
*/
|
||||
private static function getSrcsetUrls(Crawler $imagesCrawler)
|
||||
|
||||
@ -27,9 +27,7 @@ class HttpClientFactory implements ClientFactory
|
||||
/**
|
||||
* HttpClientFactory constructor.
|
||||
*
|
||||
* @param \GuzzleHttp\Cookie\CookieJar $cookieJar
|
||||
* @param string $restrictedAccess This param is a kind of boolean. Values: 0 or 1
|
||||
* @param LoggerInterface $logger
|
||||
* @param string $restrictedAccess This param is a kind of boolean. Values: 0 or 1
|
||||
*/
|
||||
public function __construct(CookieJar $cookieJar, $restrictedAccess, LoggerInterface $logger)
|
||||
{
|
||||
@ -40,8 +38,6 @@ class HttpClientFactory implements ClientFactory
|
||||
|
||||
/**
|
||||
* Adds a subscriber to the HTTP client.
|
||||
*
|
||||
* @param SubscriberInterface $subscriber
|
||||
*/
|
||||
public function addSubscriber(SubscriberInterface $subscriber)
|
||||
{
|
||||
@ -51,8 +47,6 @@ class HttpClientFactory implements ClientFactory
|
||||
/**
|
||||
* Input an array of configuration to be able to create a HttpClient.
|
||||
*
|
||||
* @param array $config
|
||||
*
|
||||
* @return HttpClient
|
||||
*/
|
||||
public function createClient(array $config = [])
|
||||
|
||||
@ -20,8 +20,7 @@ class PreparePagerForEntries
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AdapterInterface $adapter
|
||||
* @param User $user If user isn't logged in, we can force it (like for feed)
|
||||
* @param User $user If user isn't logged in, we can force it (like for feed)
|
||||
*
|
||||
* @return Pagerfanta|null
|
||||
*/
|
||||
|
||||
@ -56,8 +56,6 @@ class RuleBasedTagger
|
||||
/**
|
||||
* Apply all the tagging rules defined by a user on its entries.
|
||||
*
|
||||
* @param User $user
|
||||
*
|
||||
* @return array<Entry> A list of modified entries
|
||||
*/
|
||||
public function tagAllForUser(User $user)
|
||||
@ -109,8 +107,6 @@ class RuleBasedTagger
|
||||
/**
|
||||
* Retrieves the tagging rules for a given user.
|
||||
*
|
||||
* @param User $user
|
||||
*
|
||||
* @return array<TaggingRule>
|
||||
*/
|
||||
private function getRulesForUser(User $user)
|
||||
|
||||
@ -21,7 +21,6 @@ class TagsAssigner
|
||||
/**
|
||||
* Assign some tags to an entry.
|
||||
*
|
||||
* @param Entry $entry
|
||||
* @param array|string $tags An array of tag or a string coma separated of tag
|
||||
* @param array $entitiesReady Entities from the EntityManager which are persisted but not yet flushed
|
||||
* It is mostly to fix duplicate tag on import @see http://stackoverflow.com/a/7879164/569101
|
||||
|
||||
@ -11,7 +11,6 @@ class UrlHasher
|
||||
* Hash the given url using the given algorithm.
|
||||
* Hashed url are faster to be retrieved in the database than the real url.
|
||||
*
|
||||
* @param string $url
|
||||
* @param string $algorithm
|
||||
*
|
||||
* @return string
|
||||
|
||||
Reference in New Issue
Block a user