Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
php
web-php
Repository navigation
Code
Issues
23
(23)
Pull requests
18
(18)
Actions
Projects
Security and quality
Insights
More
items
Multiple micro-optimizations
- #603
#603
Merged
cmb69
merged 12 commits into
php:master
php/web-php:master
from
Ayesh:modernize/micro-optimizations
Copy head branch name to clipboard
Jul 3, 2022
Conversation
Commits
12
(12)
Checks
Files changed
Merged
Multiple micro-optimizations
#603
cmb69
merged 12 commits into
php:master
php/web-php:master
from
Ayesh:modernize/micro-optimizations
Copy head branch name to clipboard
Commits
Commits on Jul 2, 2022
Replace `ob_get_contents();ob_clean()` with `ob_get_clean()`
Show description for 2971196
Ayesh
committed
2971196
View commit details
Copy full SHA for 2971196
Browse repository at this point
Replace `intval()` calls with `(int)` type cast
Show description for 9a33c57
Ayesh
committed
9a33c57
View commit details
Copy full SHA for 9a33c57
Browse repository at this point
Replace `preg_replace` call that could be done with an `rtrim()` call
Show description for e490817
Ayesh
committed
e490817
View commit details
Copy full SHA for e490817
Browse repository at this point
Combine consecutive `str_replace` calls to a single `str_replace` call
Ayesh
committed
94fb9f4
View commit details
Copy full SHA for 94fb9f4
Browse repository at this point
Use short ternary operator where possible
Show description for 406909d
Ayesh
committed
406909d
View commit details
Copy full SHA for 406909d
Browse repository at this point
Cascade various `else` statements where possible
Show description for f2c40d1
Ayesh
committed
f2c40d1
View commit details
Copy full SHA for f2c40d1
Browse repository at this point
Combine multiple `isset()` calls to a single `isset()`
Show description for 9f73c7a
Ayesh
committed
9f73c7a
View commit details
Copy full SHA for 9f73c7a
Browse repository at this point
Replace `for` loop with a `foreach` loop
Ayesh
committed
b343a79
View commit details
Copy full SHA for b343a79
Browse repository at this point
Remove unnecessary character escapes in regular expressions
Show description for bc9bd19
Ayesh
committed
bc9bd19
View commit details
Copy full SHA for bc9bd19
Browse repository at this point
Remove unnecessary break statement
Ayesh
committed
6706898
View commit details
Copy full SHA for 6706898
Browse repository at this point
Remove unnecessary PHP close tags
Ayesh
committed
0bf0a7c
View commit details
Copy full SHA for 0bf0a7c
Browse repository at this point
Remove redundant JSON_ERROR_NONE check
Show description for 4b8d205
Ayesh
committed
4b8d205
View commit details
Copy full SHA for 4b8d205
Browse repository at this point
You can’t perform that action at this time.