Advertisement · 728 × 90
#
Hashtag
#phpcs
Advertisement · 728 × 90
Original post on phpc.social

Are there any @phpcs sniffs available (maybe in third-party packages) that check for PER-CS 3.0 style?

I’m trying to avoid errors due to the abbreviated constructor (`{}`). So, if there’s a sniff just for that, I’d be happy. I’d prefer not to ignore all Squiz.WhiteSpace.ScopeClosingBrace […]

0 0 0 0

🚨 PHP_CodeSniffer 4.0.0beta1 is out!

⚙️ Major changes:

Requires PHP ≥ 7.2

- Default standard: PSR12 (was PEAR)
- Files with no extension can now be checked
- Output streams: STDOUT = reports, STDERR = debug/info
- Native PHP 8+ tokenizer support

#PHP #PHPCS #CodeQuality

2 0 1 0
Preview
PHPCS 4.0: Open invitation to join live stream April 14, 15, 17 and 18, 2025 · Issue #924 · PHPCSStandards/PHP_CodeSniffer As previously announced in #120, to have confidence in the PHPCS 4.0 release, I have been working behind the scenes to recreate the 4.0 branch as a fresh, improved branch with atomic and comprehens...

Hey, #OpenSource and #PHP friends!

Juliette Reinders Folmer, maintainer of PHP CodeSniffer is live-streaming the upgrade to the 4.0 branch of #PHPCS this week!

Such a fun idea! Come along and watch #FOSS in action!

github.com/PHPCSStandar...

2 0 1 0
Preview
docker-ecs-xdebug/ecs-config.php at develop · lgersman/docker-ecs-xdebug Evaluating wordpress coding standard PHPCS rules into easy coding standard. featuring dockerized php+xdebug - lgersman/docker-ecs-xdebug

TIP: If you want to know how to integrate an existing PHPCS configuration into Tomas Votruba's excellent easy-coding-standard linting tool -> here you go : github.com/lgersman/doc...

The repo features a xdebug+vscode ready configuration.

#wordpress #ecs #easy-coding-standard #phpcs #lint

0 0 0 0
Screenshot of a comparison between two PHP code formatting styles. The first shows HTML tags indented as they would be without any PHP. The PHP open and close tags are on their own line, and the PHP code follows it's own internal indentation logic unaffected by HTML nesting level.

The second example shows "standard" indentation where both HTML and PHP affect each others' indentation level.

Screenshot of a comparison between two PHP code formatting styles. The first shows HTML tags indented as they would be without any PHP. The PHP open and close tags are on their own line, and the PHP code follows it's own internal indentation logic unaffected by HTML nesting level. The second example shows "standard" indentation where both HTML and PHP affect each others' indentation level.

Maybe it's because I started writing vanilla HTML first before adding #PHP, and I was meticulous with code formatting before I was introduced to #PHPCS, but my brain still thinks about indentation in PHP as separate from HTML indentation.

I have yet to find a coding standard or sniff for this.

2 0 1 0
Preview
PHP_CodeSniffer: one year in - PHP CodeSniffer Today marks the one year anniversary since I took on - and took over - as the maintainer of the PHP_CodeSniffer project. As you may have noticed, this is the first n...

Wondering what’s been happening with #PHPCS in the year since Juliette took over?

opencollective.com/php_codesnif...

2 0 0 0
Preview
cpx Run Composer Packages Effortlessly

Run #PHP #Composer packages without installation. Features: on-the-fly command execution, no dependency conflicts, auto-updates. Supports #PHPUnit, #Psalm, #PHPCS. Includes REPL, autoloaders, dynamic packages. 🚀 #OpenSource #DeveloperTools cpx.dev

0 0 0 0
Handing off a bread basket

Handing off a bread basket

PHPCS is migrating to new ownership

gbti.io/devops/phpcs...

#php #Devops #phpcs #codesniffer #phpnews #opensourcenews #fossnews

1 0 0 0