PHPackages                             inspirecz/coding-standard-sniffs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. inspirecz/coding-standard-sniffs

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

inspirecz/coding-standard-sniffs
================================

INSPIRE Coding Standard Sniffs

v1.4.0(1y ago)226.6k↓42.2%11MITPHPPHP &gt;=7.0

Since Sep 20Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/InspireCZ/coding-standard-sniffs)[ Packagist](https://packagist.org/packages/inspirecz/coding-standard-sniffs)[ RSS](/packages/inspirecz-coding-standard-sniffs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (1)

Inspire Coding Standards Sniffs
===============================

[](#inspire-coding-standards-sniffs)

Sniffs for INSPIRE Coding Standard.

List of sniffs
--------------

[](#list-of-sniffs)

### Inspire.ControlStructures.DisallowHashComments 🔧

[](#inspirecontrolstructuresdisallowhashcomments-)

Reports and fixes hash comments in the code.

```
❌
$correct = false; # This is (invalid) hash comment
```

```
👍
$correct = true; // This is a valid comment
```

### Inspire.ControlStructures.InlineCommentSpacing 🔧

[](#inspirecontrolstructuresinlinecommentspacing-)

Reports and fixes invalid spaces count before and after inline comment start

```
❌
//wrong inline comment
//   wrong inline comment
$a = 1; //wrong inline comment (missing space after "//")
$b = 2;// also wrong inline comment (missing space before "//")
```

```
👍
// correct inline comment with exactly one space after "//"
$a = 1; // correct inline comment
$b = 2; // correct inline comment
```

### Inspire.ControlStructures.ControlStructureSpacing 🔧

[](#inspirecontrolstructurescontrolstructurespacing-)

Reports and fixes for correct spaces after control structures (exactly one space is expected, no more, no less).

```
❌
if($foo) {
     //...
}
```

```
👍
if ($foo) {
     //...
}
```

### Inspire.ControlStructures.ClosingParenthesisOpeningCurlyBracketSameLineOnMultilineIf 🔧

[](#inspirecontrolstructuresclosingparenthesisopeningcurlybracketsamelineonmultilineif-)

Reports when closing parenthesis is not on the same line as opening curly bracket of `if` with multiline condition.

```
❌
if (
    $foo
    && $bar
)
{ //...
```

```
👍
if (
    $foo
    && $bar
) { //...
```

### Inspire.Methods.ClosingParenthesisOpeningCurlyBracketSameLineOnMultilineMethods 🔧

[](#inspiremethodsclosingparenthesisopeningcurlybracketsamelineonmultilinemethods-)

Reports when closing parenthesis is not on the same line as opening curly bracket on functions and methods with multiline arguments.

```
❌
public function foo(
    int $foo,
    string $bar,
)
{ //...
```

```
👍
public function foo(
    int $foo,
    string $bar,
) { //...
```

### Inspire.Methods.MultilineMethodArgumentsParenthesisPosition

[](#inspiremethodsmultilinemethodargumentsparenthesisposition)

Checks whether there is no comma immediately preceding closing parenthesis of function or method argument list.

```
❌
public function foo(
    int $foo,
    string $bar, ) { //...
```

```
👍
public function foo(
    int $foo,
    string $bar,
) { //...
```

```
❌
public function foo(User $user,) { //...
```

```
👍
public function foo(User $user) { //...
```

### Inspire.Sniffs.ControlStructures.BlankLinesSniff 🔧

[](#inspiresniffscontrolstructuresblanklinessniff-)

Forces single blank line before control structures (DO, FOR, FOREACH, IF, SWITCH, WHILE), unless they are the first statement after block opening. Contains fixer.

### Inspire.Sniffs.Methods.BlankLinesBeforeReturnSniff 🔧

[](#inspiresniffsmethodsblanklinesbeforereturnsniff-)

Forces single blank line before `return` statement, unless it is the first statement after block opening. Contains fixer.

### Inspire.Sniffs.Methods.DisallowTracyDumpMethodsSniff

[](#inspiresniffsmethodsdisallowtracydumpmethodssniff)

Disallows debug statements in the code.

### Inspire.Sniffs.Classes.EmptyInterfaceSniff

[](#inspiresniffsclassesemptyinterfacesniff)

Disallows interfaces with no methods.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance67

Regular maintenance activity

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 81.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~225 days

Recently: every ~189 days

Total

11

Last Release

545d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c233e9fe281989cae2e662f760d8b9796ed88c69f9d353ba9fb5c56017d81b5?d=identicon)[InspireCZ](/maintainers/InspireCZ)

---

Top Contributors

[![mlutonsky](https://avatars.githubusercontent.com/u/423848?v=4)](https://github.com/mlutonsky "mlutonsky (9 commits)")[![rodrigoprimo](https://avatars.githubusercontent.com/u/77215?v=4)](https://github.com/rodrigoprimo "rodrigoprimo (1 commits)")[![Theery1](https://avatars.githubusercontent.com/u/58081502?v=4)](https://github.com/Theery1 "Theery1 (1 commits)")

---

Tags

phpstandardcodingCoding Standard

### Embed Badge

![Health badge](/badges/inspirecz-coding-standard-sniffs/health.svg)

```
[![Health](https://phpackages.com/badges/inspirecz-coding-standard-sniffs/health.svg)](https://phpackages.com/packages/inspirecz-coding-standard-sniffs)
```

###  Alternatives

[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

75833.3k94](/packages/consistence-coding-standard)[sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

58446.7k34](/packages/sandrokeil-interop-config)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2137.0k10](/packages/leroy-merlin-br-coding-standard)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
