PHPackages                             lunapress/coding-standards - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. lunapress/coding-standards

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

lunapress/coding-standards
==========================

PHP\_CodeSniffer rules (sniffs) for LunaPress

026PHPCI passing

Since Nov 20Pushed 5mo agoCompare

[ Source](https://github.com/lunapress/coding-standards)[ Packagist](https://packagist.org/packages/lunapress/coding-standards)[ RSS](/packages/lunapress-coding-standards/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [![PHP Version](https://camo.githubusercontent.com/c1f5b5269de6d5541c9deacab4192aefc16c6255211ab03aa6dd6c1737fac355/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e332d3838393242463f6c6f676f3d706870)](https://camo.githubusercontent.com/c1f5b5269de6d5541c9deacab4192aefc16c6255211ab03aa6dd6c1737fac355/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e332d3838393242463f6c6f676f3d706870) [![PHPUnit Tests Status](https://github.com/lunapress/coding-standards/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/lunapress/coding-standards/actions/workflows/unit-tests.yml/badge.svg) [![Coverage](https://camo.githubusercontent.com/d457ea68b7e11db7fdaa6574eb67de31289d1a918537e2c9146c0edd6b52bc53/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c756e6170726573732f636f64696e672d7374616e64617264732f62616467652e7376673f6272616e63683d6d61696e)](https://camo.githubusercontent.com/d457ea68b7e11db7fdaa6574eb67de31289d1a918537e2c9146c0edd6b52bc53/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c756e6170726573732f636f64696e672d7374616e64617264732f62616467652e7376673f6272616e63683d6d61696e) [![Psalm level](https://camo.githubusercontent.com/2812de64f5588a07d70a7b6bff79a75c3e2bac47a79309a6f3bc47183c952f41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7073616c6d2d6c6576656c253230312d626c7565)](https://camo.githubusercontent.com/2812de64f5588a07d70a7b6bff79a75c3e2bac47a79309a6f3bc47183c952f41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7073616c6d2d6c6576656c253230312d626c7565) [![Latest Stable Version](https://camo.githubusercontent.com/9a92df1fdfa2e686713357959cef0edb14a0b9e232a7c4a767d0d53b96e8274e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756e6170726573732f636f64696e672d7374616e6461726473)](https://packagist.org/packages/lunapress/coding-standards) [![Total Downloads](https://camo.githubusercontent.com/fd964af142cf060b538f6f6c954362c10954d30e538731974efe744ad70b5d76/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c756e6170726573732f636f64696e672d7374616e6461726473)](https://packagist.org/packages/lunapress/coding-standards)

LunaPress Coding Standards
==========================

[](#lunapress-coding-standards)

Based on [wp-coding-standards/wpcs](https://github.com/WordPress/WordPress-Coding-Standards).

- Declarations Sniffs
    - [LunaPressStandard.Declarations.StrictTypes](#lunapressdeclarationsstricttypes)
- WP Sniffs
    - [LunaPressStandard.WP.AbspathAfterNamespace](#lunapresswpabspathafternamespace)

Declarations Sniffs
-------------------

[](#declarations-sniffs)

### LunaPressStandard.Declarations.StrictTypes

[](#lunapressstandarddeclarationsstricttypes)

Checks for mandatory `declare(strict_types=1);` after `
