15 comments

[ 3.1 ms ] story [ 49.7 ms ] thread
What's the benefit of this tool over, say, StyleCI or even php-cs-fixer? It has a hard-to-use UI (in-browser), isn't a standalone tool, and can't be relied on for dev workflow. You can achieve a similar result just by running php-cs-fixer, and that would even teach a new user more.

It also changes class names to arbitrary names (e.g. sc_581ef0bae38b2) when attempting to fix code, which is not at all helpful.

Yeah StyleCI is the way to go if you want this automated.
It's funny that you can choose from four standards.
Well, to be fair, the standards (PSR 0/1/2) are different and fixes different things, they are not about fixing the same issues, in different ways. So at least that's good.

However, what is funny, is that Symfony chose their own standard instead of going with the rest of the ecosystem. But I come to expect that from Symfony

I believe Symfony's standard existed before the PHP-FIG which made the PSRs.
PSR-0, 1, and 2 build off of the previous one.

PSR-0 is an autoloading standard

PSR-1 is a basic coding standard

PSR-2 is a coding style guide

I'm very unsure what running code through PSR-0 would do for it, since it's not really about code-style

Why do these tools always force me to upload my source? The only time I want to use something like this is when I'm handed a hot pile of legacy code that looks like it came out of a blender. And that code I'm not allowed to give anyone, often will it contain a ton of SQL injections that can be automatically found.

To me this is useful but absolutely unusable

While I can't see what libraries are behind this tool, it's named "csfixer", which is the name of a widely used offline tool for PHP[1]

[1] https://packagist.org/packages/friendsofphp/php-cs-fixer

I have something in my bash aliases to tidy my code psr style, however, if I am not on my machine then an online cut and paste is potentially useful. I use such online tools for tidying html, svg and more. Glad to have this on the roster.
That's right. Sometimes we need to do it online.
why not just install the phpcs package via composer and run it locally?