Skip to content

Commit

Permalink
Rename remaining directories
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl authored and enricobattocchi committed Dec 22, 2023
1 parent a9a14c7 commit a0409ed
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</properties>

<!-- Exclude WordPress example function. -->
<exclude-pattern>/src/facades/wordpress\.php$</exclude-pattern>
<exclude-pattern>/src/Facades/wordpress\.php$</exclude-pattern>

<!-- Exclude mocks of WP Core functions which comply with the WP function name rules instead. -->
<exclude-pattern>/tests/Unit/Doubles/WpCoreFunctionsMock\.php$</exclude-pattern>
Expand All @@ -101,7 +101,7 @@

<rule ref="Yoast.NamingConventions.ValidHookName.WrongPrefix">
<!-- Valid usage: Example code for external users of the module. -->
<exclude-pattern>/src/facades/wordpress\.php$</exclude-pattern>
<exclude-pattern>/src/Facades/wordpress\.php$</exclude-pattern>
</rule>

<!-- The variable parameters passed to the WHIP exceptions are mostly used to retrieve
Expand All @@ -111,6 +111,7 @@
</rule>

<rule ref="Yoast.Files.FileName.InvalidFunctionsFileName">
<exclude-pattern>/src/Facades/wordpress\.php$</exclude-pattern>
<exclude-pattern>/tests/Unit/Doubles/WPCoreFunctionsMock\.php$</exclude-pattern>
</rule>

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"Yoast\\WHIPv2\\": "src/"
},
"files": [
"src/facades/wordpress.php"
"src/Facades/wordpress.php"
]
},
"autoload-dev": {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/facades/wordpress.php → src/Facades/wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function whip_wp_check_versions( $requirements ) {
return;
}

$config = include __DIR__ . '/../configs/default.php';
$config = include __DIR__ . '/../Configs/default.php';
$checker = new Whip_RequirementsChecker( $config );

foreach ( $requirements as $component => $versionComparison ) {
Expand Down
2 changes: 1 addition & 1 deletion src/Whip_MessagesManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct() {
* @return void
*/
public function addMessage( Whip_Message $message ) {
$whipVersion = require __DIR__ . '/configs/version.php';
$whipVersion = require __DIR__ . '/Configs/version.php';

$GLOBALS['whip_messages'][ $whipVersion ] = $message;
}
Expand Down

0 comments on commit a0409ed

Please sign in to comment.