Commit graph

39723 commits

Author SHA1 Message Date
Art4
d3df0ff1d3 Add phpstan check in woodpecker ci 2024-11-16 09:01:20 +00:00
Hypolite Petovan
b8aa6f15c9
Merge pull request #14529 from Art4/add-static-code-analysis
Add static code analysis with PHPStan level 0
2024-11-15 13:52:45 -05:00
Art4
2ef9982f63 refactor Receiver::processObject() method 2024-11-14 07:32:25 +00:00
Art4
ee2cdc7763 replace method with anonymous function 2024-11-13 07:49:29 +00:00
Artur Weigandt
3e523ddd09
Update src/Protocol/ActivityPub/Receiver.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2024-11-12 22:03:09 +01:00
Art4
ca51b45f04 Upgrade to PHPStan 2.0 2024-11-12 21:02:21 +00:00
Art4
9a04f90bbd Improve check for unlisted receiver 2024-11-12 00:20:30 +00:00
Art4
12d5e4da44 use get_class() instead of static() in BaseCollection 2024-11-11 23:40:45 +00:00
Michael Vogel
c6754fe838
Merge pull request #14543 from Art4/fix-continous-deployment-pipeline
Fix composer installation in woodpecker pipelines
2024-11-11 00:08:42 +01:00
Art4
68fb214f85 Fix composer installation in woodpecker pipelines 2024-11-10 21:17:41 +00:00
Art4
31665e795c Merge branch 'develop' into add-static-code-analysis 2024-11-10 21:03:31 +00:00
Hypolite Petovan
a7bc4010b9
Merge pull request #14526 from Art4/improve-tests
Improve tests
2024-11-10 15:14:07 -05:00
Art4
89801f043f recreate messages.po 2024-11-10 07:45:24 +00:00
Art4
d2151f9cd0 add composer script to recreate lang file 2024-11-10 07:44:58 +00:00
Art4
82a95367ae fix code style 2024-11-10 00:23:35 +00:00
Art4
221dad7663 Merge branch 'improve-tests' into add-static-code-analysis 2024-11-10 00:20:29 +00:00
Art4
5305286312 Improve phpunit testsuites, add script for unit tests 2024-11-10 00:12:47 +00:00
Art4
bbf7e4a936 Fix code style 2024-11-09 23:56:59 +00:00
Art4
8b500926ee Refactor tests for Util\Crypto 2024-11-09 23:50:06 +00:00
Art4
940884e4bd Refactor Crypto::randomDigits() 2024-11-09 23:18:13 +00:00
Art4
29c0473b64 Merge branch 'develop' into improve-tests 2024-11-09 22:51:40 +00:00
Michael Vogel
e1efa09260
Merge pull request #14539 from Art4/fix-composer-install-in-woodpecker-ci
Fix woodpecker ci pipelines
2024-11-09 15:59:23 +01:00
Art4
35c01b9685 Fix code style 2024-11-09 10:08:40 +00:00
Art4
dcc8cca6cd Merge branch 'improve-tests' into add-static-code-analysis 2024-11-09 10:05:06 +00:00
Art4
37b2c3faab Merge branch 'fix-composer-install-in-woodpecker-ci' into improve-tests 2024-11-09 10:02:52 +00:00
Art4
64751b7b5a create empty addon folder in phpunit tests 2024-11-09 09:57:16 +00:00
Art4
1946d4f470 Create empty addon folder 2024-11-09 09:50:47 +00:00
Art4
d4f6b3bbef Merge branch 'develop' into improve-tests 2024-11-09 09:06:33 +00:00
Michael Vogel
c2be44a848
Merge pull request #14523 from Art4/update-composer-v2
Update to Composer v2
2024-11-09 06:15:27 +01:00
Art4
256ed12b51 Move test into Unit test namespace 2024-11-08 08:17:27 +00:00
Art4
dc80d35088 Fix cs 2024-11-08 08:15:03 +00:00
Art4
1c3a33ab49 Fix namespace 2024-11-08 08:01:07 +00:00
Art4
dfb821d3b5 Ignore false positive PHPStan error
see https://github.com/friendica/friendica-addons/pull/1363
2024-11-05 15:26:24 +00:00
Art4
a28a207774 Fix name of Mode class 2024-11-05 12:20:43 +00:00
Art4
eff96cc140 add missing use statement 2024-11-05 12:17:41 +00:00
Art4
4b971f84fd Fix returns in Console commands 2024-11-05 12:13:18 +00:00
Art4
01ba276455 Add missing return
This needs some refactoring: returning nothing implicit returns null, thas will be convert to int 0.
I return false instead of nothing to keep this behaviour for BC.
2024-11-05 11:52:23 +00:00
Art4
bf04b3e57d Fix usage of static 2024-11-05 11:27:29 +00:00
Art4
f024de4350 add missing property in FixAPDeliveryWorkerTaskParameters 2024-11-05 11:25:35 +00:00
Art4
3c229443e8 Remove missleading template phpdoc 2024-11-05 07:14:24 +00:00
Art4
4e49c45021 Remove support for apc 2024-11-05 07:07:58 +00:00
Art4
8448d719e7 Remove support for apc
apc is deprecated since PHP 5.5 and not compatible with PHP 7
2024-11-04 20:34:42 +00:00
Art4
ad6be21b56 Fix defaults in Contact model 2024-11-04 20:02:44 +00:00
Art4
28f2b7fc81 Fix variable name
The variable was renamed but this line was accidently overseen

see 62eb16e9ad (diff-785d24b46fdf749363656f33208f941ea0eca809c7c76452180a0bfc16df68a3R2555)
2024-11-04 15:28:10 +00:00
Art4
3535c7c4cd Remove unused code 2024-11-04 15:09:33 +00:00
Art4
71add60f59 remove unused code
this code was never called because $body is never declared
and hence the if could never be true
2024-11-04 15:04:06 +00:00
Art4
57c188d01d Fix wrong use of static 2024-11-04 13:46:33 +00:00
Art4
4a9c7d2f30 Remove call of non-existing functions
This functions were removed in commit a97b3f690c9e4476ba638236897507100f77af6f

- twitter_statuses_show()
- twitter_media_entities()
- twitter_expand_entities()

see a97b3f690c
2024-11-04 13:56:08 +01:00
Art4
b5c2cbc597 Refactor Friendica\Module\Debug\ItemBody class 2024-11-04 13:36:57 +01:00
Art4
979468e7fb refactor of Friendica\Object\Api\Mastodon\Preferences class 2024-11-04 13:30:26 +01:00