Skip to content

Commit

Permalink
Merge pull request #7 from sarahcssiqueira/develop
Browse files Browse the repository at this point in the history
refactor: renamed classes to follow PSR-1 conventions & others
  • Loading branch information
sarahcssiqueira authored Dec 5, 2023
2 parents 9d9abf5 + 053c0ab commit 3da3902
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion inc/class-block-w.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Block W
*/
class Block_W {
class BlockW {


/**
Expand Down
2 changes: 1 addition & 1 deletion inc/class-block-x.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Block X
*/
class Block_X {
class BlockX {


/**
Expand Down
2 changes: 1 addition & 1 deletion inc/class-block-y.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Block Y
*/
class Block_Y {
class BlockY {


/**
Expand Down
18 changes: 9 additions & 9 deletions xywz-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@
/**
* Block X
*/
require dirname( __FILE__ ) . '/inc/class-block-x.php';
use XYWZBlocks\Inc\Block_X;
new Block_X();
require_once __DIR__ . '/inc/class-block-x.php';
use XYWZBlocks\Inc\BlockX;
new BlockX();

/**
* Block Y
*/
require dirname( __FILE__ ) . '/inc/class-block-y.php';
use XYWZBlocks\Inc\Block_Y;
new Block_Y();
require_once __DIR__ . '/inc/class-block-y.php';
use XYWZBlocks\Inc\BlockY;
new BlockY();

/**
* Block W
*/
require dirname( __FILE__ ) . '/inc/class-block-w.php';
use XYWZBlocks\Inc\Block_W;
new Block_W();
require_once __DIR__ . '/inc/class-block-w.php';
use XYWZBlocks\Inc\BlockW;
new BlockW();

0 comments on commit 3da3902

Please sign in to comment.