Comments (4)
Nice point. When this code was written php-cs-fixer did not have this feature.
from php-backslasher.
@keradus
Hi !
I see just one difference between them. This one backslash php constant also \true \null \false when FOP/php-cs-fixer doesn't do it, it only do it for native function call.
I would like to know if this is effective. I tend to think that add backslash on true, false and null appears to me overkill. What about constant like PHP_EOL DIRECTORY_SEPARATOR and all other native constant?
from php-backslasher.
usually you don't backslash everything in code as is. you either backslash what's crucial for your app, or you backslash everything in artifact build job
from php-backslasher.
@keradus Thanks for your response :) I will go to php-cs-fixer than, that's only backslash native function. But doesn't backslash constants.
from php-backslasher.
Related Issues (13)
- Look for autoload file HOT 1
- Generate the php file to run from console HOT 1
- Build installer.php to make installation a one line command HOT 1
- Consider adding some bechmarks to show the speed gain HOT 3
- Backslash \true, \false and \null and ALL constants HOT 2
- Add tests for constants HOT 1
- Booleans HOT 3
- Reduce backslash subset to those with custom opcodes only
- Remove backslashed functions
- Improvement: add switch to inteoduce 'use' statements for functions instead of backslash HOT 1
- Run php-backslasheron the php-backslasher source
- Add PHP 7.4 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-backslasher.