Commit graph

12 commits

Author SHA1 Message Date
def76226b7
feat(core): add phpstan for static analysis (#1223)
* feat: add phpstan for static analysis

* ci(actions): add phpstan action

* ci(actions): do analysing inside docker container

* fix(FetchToncoinTransactions): add var declaration

* fix(ServiceAPI/Wall): add var declaration

* fix(bootstrap): remove case-insensitive false vars

* fix(VKAPI/Handlers/Board): change parameters order

* fix(VKAPIRequestHandler): set fail's return type as never

* fix(VKAPI/Handlers/Groups): add array declaration

* fix(VKAPI/Handlers/Newsfeed): add return_banned declaration

* fix(VKAPI/Handlers/Notes): move $nodez declaration up

* fix(phpstan): most of the things and stupid lines of code

* fix(lint)

* fix(phpstan): less errors

* fix(lint): again. cuz i forgot about it

* fix(stan): all errors are gone now =3

---------

Co-authored-by: veselcraft <veselcraft@icloud.com>
2025-03-09 16:03:33 +03:00
6ec54a379d
feat: add linting of code (#1220)
* feat(lint): add php-cs-fixer for linting

Removing previous CODE_STYLE as it was not enforced anyway and using PER-CS 2.0.

This is not the reformatting commit.

* style: format code according to PER-CS 2.0 with php-cs-fixer

* ci(actions): add lint action

Resolves #1132.
2025-01-31 18:20:13 +03:00
veselcraft
198bf7472d
fix(datetime): adjust to timezone 2024-12-13 16:24:51 +03:00
44531fcbb0
fix(DateTime): use php81_bc/strftime (#1063)
Native strftime was deprecated in PHP 8.1 so I replaced it with an
alternative library that uses ICU so that you don't have to set up
locales on your server anymore.
Also this commit removes AM/PM labels as timestamps were in 24h format
anyways, regardless of locale.
2024-01-02 22:22:10 +02:00
celestora
0e22d1866f Fix certain poll functions
Polls can now be set to quiz mode correctly, weird characters in options no longer crash OpenVK
2022-10-11 20:24:34 +03:00
veselcraft
6c90bd1d0f
Date: Hide seconds if smth was created today or ACTUALLY yesterday 2022-01-24 16:16:24 +03:00
veselcraft
4ae74841e0
Date: Hide seconds if smth was created today or yesterday 2022-01-24 16:15:27 +03:00
veselcraft
b9f4cedca5
Date: Make it more user-friendly 2022-01-24 16:08:40 +03:00
veselcraft
b0a843f17a wait i am retarded 2021-01-04 12:54:57 -05:00
veselcraft
051b7d7434 [FIX] Using ISO-8601:1988 year standard (%g) instead of dividing year by 100 (%G) 2021-01-04 12:50:41 -05:00
Alma Armas
b2f069f75f Make DateTime compatible with Windows 2020-09-29 12:59:59 -07:00
Jill Stingray
db845c3c0b Initial commit 2020-06-07 19:04:43 +03:00