Skip to content

Commit 1d07474

Browse files
committed
Updating the PHP Namespace
1 parent 13f9d8e commit 1d07474

11 files changed

+39
-19
lines changed

inc/class-block-bindings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace {{namespace|lowerCase}}\classes;
3+
24
/**
35
* Block Bindings Registration.
46
*
@@ -13,7 +15,7 @@
1315
/**
1416
* Block Bindings class.
1517
*/
16-
class {{namespace|pascalCase}}_Block_Bindings {
18+
class Block_Bindings {
1719

1820
/**
1921
* Binding source name.

inc/class-block-templates.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace {{namespace|lowerCase}}\classes;
3+
24
/**
35
* Block Templates Registration.
46
*
@@ -12,7 +14,7 @@
1214
/**
1315
* Block Templates class.
1416
*/
15-
class {{namespace|pascalCase}}_Block_Templates {
17+
class Block_Templates {
1618

1719
/**
1820
* Constructor.

inc/class-fields.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace {{namespace|lowerCase}}\classes;
3+
24
/**
35
* Custom Fields Registration using Secure Custom Fields.
46
*
@@ -13,7 +15,7 @@
1315
/**
1416
* Fields class.
1517
*/
16-
class {{namespace|pascalCase}}_Fields {
18+
class Fields {
1719

1820
/**
1921
* Field group key.

inc/class-options.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace {{namespace|lowerCase}}\classes;
3+
24
/**
35
* Options Pages Registration using Secure Custom Fields.
46
*
@@ -19,7 +21,7 @@
1921
*
2022
* Registers options pages and their associated field groups using SCF.
2123
*/
22-
class {{namespace|pascalCase}}_Options {
24+
class Options {
2325

2426
/**
2527
* Main options page slug.

inc/class-patterns.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace {{namespace|lowerCase}}\classes;
3+
24
/**
35
* Block Patterns Registration.
46
*
@@ -12,7 +14,7 @@
1214
/**
1315
* Patterns class.
1416
*/
15-
class {{namespace|pascalCase}}_Patterns {
17+
class Patterns {
1618

1719
/**
1820
* Constructor.

inc/class-post-types.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace {{namespace|lowerCase}}\classes;
3+
24
/**
35
* Custom Post Type Registration.
46
*
@@ -12,7 +14,7 @@
1214
/**
1315
* Post Types class.
1416
*/
15-
class {{namespace|pascalCase}}_Post_Types {
17+
class Post_Types {
1618

1719
/**
1820
* Post type slug.

inc/class-repeater-fields.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace {{namespace|lowerCase}}\classes;
3+
24
/**
35
* Repeater and Flexible Content Fields using Secure Custom Fields.
46
*
@@ -13,7 +15,7 @@
1315
/**
1416
* Repeater Fields class.
1517
*/
16-
class {{namespace|pascalCase}}_Repeater_Fields {
18+
class Repeater_Fields {
1719

1820
/**
1921
* Constructor.

inc/class-scf-json-validator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace {{namespace|lowerCase}}\classes;
3+
24
/**
35
* SCF JSON Schema Validator.
46
*
@@ -18,7 +20,7 @@
1820
*
1921
* Validates SCF field group JSON files against the schema.
2022
*/
21-
class {{namespace|pascalCase}}_SCF_JSON_Validator {
23+
class SCF_JSON_Validator {
2224

2325
/**
2426
* Path to the JSON schema file.

inc/class-scf-json.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace {{namespace|lowerCase}}\classes;
3+
24
/**
35
* SCF Local JSON Configuration.
46
*
@@ -19,7 +21,7 @@
1921
*
2022
* Manages Local JSON save and load paths for SCF field groups.
2123
*/
22-
class {{namespace|pascalCase}}_SCF_JSON {
24+
class SCF_JSON {
2325

2426
/**
2527
* Local JSON directory path.

inc/class-taxonomies.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace {{namespace|lowerCase}}\classes;
3+
24
/**
35
* Custom Taxonomy Registration.
46
*
@@ -12,7 +14,7 @@
1214
/**
1315
* Taxonomies class.
1416
*/
15-
class {{namespace|pascalCase}}_Taxonomies {
17+
class Taxonomies {
1618

1719
/**
1820
* Taxonomy slug.

0 commit comments

Comments
 (0)