Skip to content

Commit 3077a9f

Browse files
Fix dependency in composer (#211)
* Fix dependency in composer * Remove phpunit * Fix phpcs. --------- Co-authored-by: Jonny Harris <[email protected]>
1 parent 83a2951 commit 3077a9f

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

composer.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
{
22
"name": "stuttter/wp-multi-network",
33
"description": "Provides a Network Management Interface for global administrators in WordPress Multisite installations.",
4-
"homepage": "https://wordpress.org/plugins/wp-multi-network/",
5-
"type": "wordpress-plugin",
64
"license": "GPL-2.0-or-later",
5+
"type": "wordpress-plugin",
76
"authors": [
87
{
98
"name": "John James Jacoby",
109
"email": "[email protected]"
1110
}
1211
],
12+
"homepage": "https://wordpress.org/plugins/wp-multi-network/",
1313
"support": {
14-
"source": "https://github.com/stuttter/wp-multi-network",
1514
"issues": "https://github.com/stuttter/wp-multi-network/issues",
16-
"forum": "https://github.com/stuttter/wp-multi-network/discussions"
15+
"forum": "https://github.com/stuttter/wp-multi-network/discussions",
16+
"source": "https://github.com/stuttter/wp-multi-network"
1717
},
1818
"require": {
1919
"php": ">=5.2",
2020
"composer/installers": "^1.0 || ^2.0"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "^9.6.0",
24-
"squizlabs/php_codesniffer": "^3.11.0",
25-
"wp-coding-standards/wpcs": "^3.1.0",
2623
"phpcompatibility/phpcompatibility-wp": "^2.1.0",
27-
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0"
24+
"wp-coding-standards/wpcs": "^3.1.0",
25+
"yoast/wp-test-utils": "^1.2"
2826
},
2927
"config": {
3028
"allow-plugins": {
3129
"composer/installers": true,
3230
"dealerdirect/phpcodesniffer-composer-installer": true
33-
}
31+
},
32+
"sort-packages": true
3433
}
3534
}

wpmn-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private function includes() {
186186
*
187187
* @since 1.3.0
188188
*/
189-
function setup_multi_network() {
189+
function setup_multi_network() { // phpcs:ignore Universal.Files.SeparateFunctionsFromOO.Mixed
190190
wpmn();
191191
}
192192
add_action( 'muplugins_loaded', 'setup_multi_network' );

0 commit comments

Comments
 (0)