Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to 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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
php
/
web-php
Public
Notifications
You must be signed in to change notification settings
Fork
634
Star
1.1k
Code
Issues
23
Pull requests
15
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
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.