Dag
891c8979a3
refactor: return proper response object ( #4169 )
2024-07-31 17:30:06 +02:00
User123698745
69da0dd583
[refactoring] replace direct use of curl with getContents ( #3723 )
...
+ some fixed warnings
2023-10-01 20:46:51 +02:00
Jan Tojnar
951092eef3
Fix coding style missed by phpbcf ( #2901 )
...
$ composer require --dev friendsofphp/php-cs-fixer
$ echo >.php-cs-fixer.dist.php "<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__);
$rules = [
'@PSR12' => true,
// '@PSR12:risky' => true,
'@PHP74Migration' => true,
// '@PHP74Migration:risky' => true,
// buggy, duplicates existing comment sometimes
'no_break_comment' => false,
'array_syntax' => true,
'lowercase_static_reference' => true,
'visibility_required' => false,
// Too much noise
'binary_operator_spaces' => false,
'heredoc_indentation' => false,
'trailing_comma_in_multiline' => false,
];
$config = new PhpCsFixer\Config();
return $config
->setRules($rules)
// ->setRiskyAllowed(true)
->setFinder($finder);
"
$ vendor/bin/php-cs-fixer --version
PHP CS Fixer 3.8.0 BerSzcz against war! by Fabien Potencier and Dariusz Ruminski.
PHP runtime: 8.1.7
$ vendor/bin/php-cs-fixer fix
$ rm .php-cs-fixer.cache
$ vendor/bin/php-cs-fixer fix
2022-07-08 13:00:52 +02:00
Dag
4f75591060
Reformat codebase v4 ( #2872 )
...
Reformat code base to PSR12
Co-authored-by: rssbridge <noreply@github.com>
2022-07-01 15:10:30 +02:00
Mitsu
918041cc28
[FDroid] minor syntax fix for phpcs
2022-01-24 12:41:33 +01:00
Mitsu
e9f871ce68
[FDroid] cache up, add timestamp extraction
...
- increase caching from 2 to 4 hours
- using cURL, extract Last-Modified header of app icons and use as item timestamp
Test warning: F-Droid response time is quite slow even on static assets, the additional requests might impact bridge performance further
2022-01-24 12:36:49 +01:00
Eugene Molotov
37cb4091d4
bridges: remove redundant "or returnServerError" after getContents/getSimpleHTMLDom/getSimpleHTMLDomCached ( #2398 )
...
When fetching website contents, exceptions already raise on fetching error
2022-01-02 14:36:09 +05:00
DJCrashdummy
d9ee9e272e
[FDroidBridge] fixed bridge ( #1075 )
...
because an additional widget (i guess the language selector) was added to the homepage.
2019-04-04 22:52:59 +02:00
logmanoriginal
e0db349a57
bridges: Fix bridges that don't pass the unit test
2019-01-22 18:24:32 +01:00
logmanoriginal
392e3ff6c7
phpcs: Fix violations
2018-11-05 12:55:58 +01:00
logmanoriginal
7621784598
bridges: Add favicon to bridges missing it
...
Adds favicon to bridges that support it. Some sites prevent downloading
favicons, those bridges are left untouched.
Affected bridges:
- AutoJMBridge
- BandcampBridge
- BlaguesDeMerdeBridge
- BloombergBridge
- BundesbankBridge
- ChristianDailyReporterBridge
- ContainerLinuxReleasesBridge
- DailymotionBridge
- DiceBridge
- DribbbleBridge
- EliteDangerousGalnetBridge
- ElsevierBridge
- FacebookBridge
- FB2Bridge
- FDroidBridge
- FierPandaBridge
- GooglePlusPostBridge
- JapanExpoBridge
- KATBridge
- KernelBugTrackerBridge
- LegifranceJOBridge
- NotAlwaysBridge
- NyaaTorrentsBridge
- PinterestBridge
- RadioMelodieBridge
- RainbowSixSiegeBridge
- SupInfoBridge
- TagBoardBridge
- TebeoBridge
- TheTVDBBridge
- WhydBridge
- ZoneTelechargementBridge
2018-10-26 19:10:58 +02:00
Mitsukarenai
208fff801d
[FDroid] minor fixes for Travis CI
2018-04-15 13:21:48 +02:00
Mitsukarenai
3c9860de43
[FDroid] new bridge
2018-04-15 13:13:10 +02:00