-
## Rationale
WPCS includes a number of sniffs which examine function declarations.
Functions can be declared with or without body:
```php
// Standard, with body:
function something( $param ) {
…
-
Example code based on: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file with some small adjustments to test this properly:
```php
// phpcs:disable PEAR,Squiz…
-
Hi, I noticed a possible issue with correct indenting being marked as an issue with PHP CodeSniffer. I was using Visual Studio Code and the phpcs plugin.
Link to bug that has been closed.
https:…
-
## Bug Description
PHPC 10 takes a lot of time with some PHP files. In my case, PHPC10 takes 27 times more time than PHPC9 for a given file.
I am currently evaluating a phpBB extension for PHP…
-
I get Processing form data without nonce verification error for code like:
```
if ( empty( $_GET['author'] ) ) {
echo 'This is not an author page';
}
```
For obvious reasons it is im…
-
I'm getting a weird error when I'm using partial ignoring.
Here is part of my code:
```
/**
* @return iterable|BundleInterface[]
*/
public function registerBundles(): iterable
{
// phpc…
-
## Bug Description
When using `$this` in an [enum method](https://www.php.net/manual/en/language.enumerations.methods.php) in PHP 8, I receive this:
> "$this" can no longer be used in a plai…
-
I'm trying to run a test of [our coding standard](https://github.com/joomla/coding-standards) on Travis CI. our ruleset specifies core sniffs and adds some custom sniffs. We also have a secondary rule…
-
**Describe the bug**
After upgrading to BLT 13.7 and Drush 12.1 - my builds are failing.
**To Reproduce**
Upgrade BLT project to 13.7 with Drush 12.1
**Expected behavior**
A completed build w…
-
I'm noticing that some (all?) PR sandboxes are failing to be created. The error shown is this:
```
2023-06-08T12:49:11.935Z - Rebuilding preview: 6481cb0ba18a5084bb6cc78b (pr4448)
2023-06-08T12:49:…