Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
/ICEcoderPublic archive

Increase readability#741

Open
rotelok wants to merge18 commits intoicecoder:master
base:master
Choose a base branch
Loading
fromrotelok:increase-readability
Open

Increase readability#741

rotelok wants to merge18 commits intoicecoder:masterfromrotelok:increase-readability

Conversation

rotelok
Copy link
Contributor

I spread a few refactors in small commits so you could cherry-pick the ones you like
most commits are just of one of three categories.

  1. increasing readability
  2. compatibility and future proofing
  3. performance

It seems like a lot of changes, but it's not, it's just small corrections on many files, functionality wise everything should be the same, I made an effort to use equivalent constructs every time I made a change, so input/output of the functions shouldn't change

( reverting commit6ed2edb to fix errors )

it's equivalent and easier to read this constant was introducedin php version 5.3.
if (array_search() === FALSE)toif (in_array())
substr($var, 0, 1) === $chartostrpos($var, $char) === 0
and (float)$var, it's faster and more future proof
for ($i=0;$i<count($var);$i++)tofor ($i=0, $iMax = count($var); $i< $iMax; $i++)so we don't spend processor time counting the same variable every loopiteration
the commit had unintende consequences ( broke the file manager, probablymore stuff )
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@rotelok

[8]ページ先頭

©2009-2025 Movatter.jp