Skip to content

Commit

Permalink
Make phpcs happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen committed Jun 2, 2017
1 parent 278a8af commit 5c7d641
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/blocks.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php
/**
* Functions related to editor blocks for the Gutenberg editor plugin.
*
* @package gutenberg
*/

if ( ! defined( 'ABSPATH' ) ) {
die( 'Silence is golden.' );
Expand Down
6 changes: 6 additions & 0 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?php
/**
* Functions to register client-side assets (scripts and stylesheets) for the
* Gutenberg editor plugin.
*
* @package gutenberg
*/

if ( ! defined( 'ABSPATH' ) ) {
die( 'Silence is golden.' );
Expand Down
5 changes: 5 additions & 0 deletions lib/i18n.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php
/**
* Internationalization-related functions for the Gutenberg editor plugin.
*
* @package gutenberg
*/

if ( ! defined( 'ABSPATH' ) ) {
die( 'Silence is golden.' );
Expand Down
5 changes: 5 additions & 0 deletions lib/register.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php
/**
* Initialization and wp-admin integration for the Gutenberg editor plugin.
*
* @package gutenberg
*/

if ( ! defined( 'ABSPATH' ) ) {
die( 'Silence is golden.' );
Expand Down
5 changes: 5 additions & 0 deletions phpcs.ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />

<!-- index.php already has a file comment, I promise -->
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>index.php</exclude-pattern>
</rule>

<!-- Do not require docblocks for unit tests -->
<rule ref="Squiz.Commenting.FunctionComment.Missing">
<exclude-pattern>phpunit/*</exclude-pattern>
Expand Down

0 comments on commit 5c7d641

Please sign in to comment.