diff options
| author | 2024-09-29 16:17:26 +0200 | |
|---|---|---|
| committer | 2024-09-29 16:17:26 +0200 | |
| commit | a792c195d23390f4b23c95cca2071045915b0d5c (patch) | |
| tree | 5f2ad8a2fa37393b456f9c60b0671335c07540ce /lib | |
| parent | 496d3a1a486c23345ca5e9022980a9f89151bb49 (diff) | |
Sync SimplePie (#6840)
FreshRSS upstream PR merged https://github.com/simplepie/simplepie/pull/883
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/.gitignore | 4 | ||||
| -rw-r--r-- | lib/composer.json | 2 | ||||
| -rw-r--r-- | lib/simplepie/simplepie/phpcs.xml | 10 | ||||
| -rw-r--r-- | lib/simplepie/simplepie/src/SimplePie.php | 2 |
4 files changed, 13 insertions, 5 deletions
diff --git a/lib/.gitignore b/lib/.gitignore index 599e39843..d5a49d735 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -23,10 +23,8 @@ phpmailer/phpmailer/src/OAuth* phpmailer/phpmailer/src/POP3.php simplepie/simplepie/.* !simplepie/simplepie/.editorconfig -!simplepie/simplepie/.github/ -!simplepie/simplepie/.gitignore -simplepie/simplepie/.github/* !simplepie/simplepie/.github/README.md +!simplepie/simplepie/.gitignore simplepie/simplepie/autoloader.php simplepie/simplepie/build/ simplepie/simplepie/compatibility_test/ diff --git a/lib/composer.json b/lib/composer.json index e2d77fa06..92ae71805 100644 --- a/lib/composer.json +++ b/lib/composer.json @@ -18,7 +18,7 @@ "marienfressinaud/lib_opml": "0.5.1", "phpgt/cssxpath": "dev-master#45f3ac151fc21d459e2515c3aff97cd4bf877bf8", "phpmailer/phpmailer": "6.9.1", - "simplepie/simplepie": "dev-freshrss#e041dacffc6e29979437d1545773a3e0f716c486" + "simplepie/simplepie": "dev-freshrss#88f13f2df1ba17a7432a624d38884b1bd8f60e43" }, "config": { "sort-packages": true, diff --git a/lib/simplepie/simplepie/phpcs.xml b/lib/simplepie/simplepie/phpcs.xml index f77624289..6ec1797bf 100644 --- a/lib/simplepie/simplepie/phpcs.xml +++ b/lib/simplepie/simplepie/phpcs.xml @@ -7,6 +7,7 @@ <rule ref="PSR12"> <exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/> <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/> + <exclude name="PSR12.ControlStructures.ControlStructureSpacing.CloseParenthesisLine"/> <exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/> <exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/> </rule> @@ -16,4 +17,13 @@ <property name="absoluteLineLimit" value="400"/> </properties> </rule> + <rule ref="Generic.WhiteSpace.DisallowTabIndent.TabsUsed"> + <exclude-pattern>./demo/</exclude-pattern> + </rule> + <rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace"> + <exclude-pattern>./library/</exclude-pattern> + </rule> + <rule ref="Squiz.Classes.ValidClassName.NotCamelCaps"> + <exclude-pattern>./library/</exclude-pattern> + </rule> </ruleset> diff --git a/lib/simplepie/simplepie/src/SimplePie.php b/lib/simplepie/simplepie/src/SimplePie.php index 455a90a2f..a02138ecd 100644 --- a/lib/simplepie/simplepie/src/SimplePie.php +++ b/lib/simplepie/simplepie/src/SimplePie.php @@ -1978,7 +1978,7 @@ class SimplePie $this->data = []; } // Check if the cache has been updated - elseif (empty($this->data['cache_expiration_time']) || $this->data['cache_expiration_time'] < time()) { // FreshRSS https://github.com/simplepie/simplepie/pull/846 + elseif (!isset($this->data['cache_expiration_time']) || $this->data['cache_expiration_time'] < time()) { // Want to know if we tried to send last-modified and/or etag headers // when requesting this file. (Note that it's up to the file to // support this, but we don't always send the headers either.) |
