mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 21:15:56 +03:00
[PR #948] [MERGED] Lib framework code optimizations #1169
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#1169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cypht-org/cypht/pull/948
Author: @TheDigitalOrchard
Created: 4/13/2024
Status: ✅ Merged
Merged: 4/30/2024
Merged by: @kroky
Base:
master← Head:lib-framework-code-optimizations📝 Commits (8)
fe9f5afreduce function calls; fix whitespace6c378c1expanded coverage of changes across all lib/ files; updated syntax to more closely adhere to PSR-12; changed array initializers to short-array (square bracket) syntax;2513658missed semicolon8c14259Merge branch 'master' into lib-framework-code-optimizations23bc528Merge branch 'master' into lib-framework-code-optimizationsd7fd682dash9fef798fix merge conflictseb3fdc4restore original logic for libsodium check, but usingelse/ifstatements intead of three separateifstatements📊 Changes
24 files changed (+300 additions, -382 deletions)
View changed files
📝
lib/api.php(+4 -4)📝
lib/auth.php(+16 -19)📝
lib/cache.php(+10 -10)📝
lib/config.php(+48 -58)📝
lib/crypt.php(+6 -6)📝
lib/crypt_sodium.php(+2 -2)📝
lib/db.php(+9 -12)📝
lib/dispatch.php(+15 -30)📝
lib/environment.php(+2 -3)📝
lib/format.php(+8 -12)📝
lib/framework.php(+9 -12)📝
lib/ini_set.php(+1 -2)📝
lib/module.php(+26 -32)📝
lib/modules.php(+15 -18)📝
lib/modules_exec.php(+5 -11)📝
lib/oauth2.php(+3 -3)📝
lib/output.php(+8 -15)📝
lib/request.php(+21 -25)📝
lib/servers.php(+6 -7)📝
lib/session_base.php(+23 -23)...and 4 more files
📄 Description
Pullrequest
No functional changes. Code cleanup, whitespace; short-array syntax; single quotes; closer adherence to PSR-12 syntax guidelines.
Now, I understand there may be some clashing with personal preferences, such as how "else" begins on the next line, but I did see some of the newer files already adhering to PSR-12, so figured this was a safe change to make.
(Sidenote, Packagist.org still says this library is compatible back to PHP 5, but that doesn't appear to be true anymore.)
Issues
Checklist
How2Test
Todo
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.