Skip to content

Commit b95213e

Browse files
pfefferleobenland
andauthoredMay 14, 2025··
Consistantly use Activitypub (lowercase "p") (#1700)
Co-authored-by: Konstantin Obenland <[email protected]>
·
6.0.25.9.0
1 parent ffae98e commit b95213e

28 files changed

+33
-33
lines changed
 

‎CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
375375

376376
## [4.2.0] - 2024-11-15
377377
### Added
378-
- Unit tests for the `ActivityPub\Transformer\Post` class
378+
- Unit tests for the `Activitypub\Transformer\Post` class
379379

380380
### Changed
381381
- Reuse constants once they're defined

‎includes/class-mailer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Mailer Class.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub;

‎includes/rest/class-outbox-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Activitypub\Collection\Actors;
1212
use Activitypub\Collection\Outbox;
1313
use function Activitypub\get_masked_wp_version;
14-
use function ActivityPub\get_rest_url_by_path;
14+
use function Activitypub\get_rest_url_by_path;
1515

1616
/**
1717
* ActivityPub Outbox Controller.

‎includes/wp-admin/class-advanced-settings-fields.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
/**
33
* Advanced Settings Fields file.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

8-
namespace ActivityPub\WP_Admin;
8+
namespace Activitypub\WP_Admin;
99

1010
/**
1111
* Advanced Settings Fields class.

‎includes/wp-admin/class-blog-settings-fields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* ActivityPub Blog Settings Fields Handler.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\WP_Admin;

‎includes/wp-admin/class-user-settings-fields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* ActivityPub User Settings Fields Handler.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\WP_Admin;

‎tests/includes/activity/class-test-generic-object.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test Generic Object.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Activity;

‎tests/includes/class-test-dispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test Dispatcher Class.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests;

‎tests/includes/class-test-embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test the Embed class.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests;

‎tests/includes/class-test-functions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public function set_up() {
3636
/**
3737
* Test the get_remote_metadata_by_actor function.
3838
*
39-
* @covers \ActivityPub\get_remote_metadata_by_actor
39+
* @covers \Activitypub\get_remote_metadata_by_actor
4040
*/
4141
public function test_get_remote_metadata_by_actor() {
42-
$metadata = \ActivityPub\get_remote_metadata_by_actor( 'pfefferle@notiz.blog' );
42+
$metadata = \Activitypub\get_remote_metadata_by_actor( 'pfefferle@notiz.blog' );
4343
$this->assertEquals( 'https://notiz.blog/author/matthias-pfefferle/', $metadata['url'] );
4444
$this->assertEquals( 'pfefferle', $metadata['preferredUsername'] );
4545
$this->assertEquals( 'Matthias Pfefferle', $metadata['name'] );
@@ -48,7 +48,7 @@ public function test_get_remote_metadata_by_actor() {
4848
/**
4949
* Test object_id_to_comment.
5050
*
51-
* @covers \ActivityPub\object_id_to_comment
51+
* @covers \Activitypub\object_id_to_comment
5252
*/
5353
public function test_object_id_to_comment_basic() {
5454
$single_comment_source_id = 'https://example.com/single';
@@ -80,7 +80,7 @@ public function test_object_id_to_comment_basic() {
8080
/**
8181
* Test object_id_to_comment with invalid source ID.
8282
*
83-
* @covers \ActivityPub\object_id_to_comment
83+
* @covers \Activitypub\object_id_to_comment
8484
*/
8585
public function test_object_id_to_comment_none() {
8686
$single_comment_source_id = 'https://example.com/none';
@@ -91,7 +91,7 @@ public function test_object_id_to_comment_none() {
9191
/**
9292
* Test object_id_to_comment with duplicate source ID.
9393
*
94-
* @covers \ActivityPub\object_id_to_comment
94+
* @covers \Activitypub\object_id_to_comment
9595
*/
9696
public function test_object_id_to_comment_duplicate() {
9797
$duplicate_comment_source_id = 'https://example.com/duplicate';

‎tests/includes/class-test-mailer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test Mailer Class.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests;

‎tests/includes/class-test-query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test file for Query class.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests;

‎tests/includes/class-test-scheduler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test file for Scheduler class.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests;

‎tests/includes/handler/class-test-delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test file for Delete handler.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Handler;

‎tests/includes/handler/class-test-follow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test file for Follow handler.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Handler;

‎tests/includes/rest/class-test-collections-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test Collections REST Endpoint.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Rest;

‎tests/includes/rest/class-test-comments-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test Comments REST Endpoint.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Rest;

‎tests/includes/rest/class-test-moderators-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test Moderators REST Endpoint.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Rest;

‎tests/includes/rest/class-test-post-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test Post REST Endpoints.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Rest;

‎tests/includes/rest/class-test-replies-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test Replies REST Endpoint.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Rest;

‎tests/includes/rest/class-test-trait-collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test Collection Trait.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Rest;

‎tests/includes/transformer/class-test-activity-object.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test file for Activity Object transformer.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Transformer;

‎tests/includes/transformer/class-test-attachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test file for Attachment transformer.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Transformer;

‎tests/includes/transformer/class-test-base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test file for Base Transformer.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Transformer;

‎tests/includes/transformer/class-test-comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test file for Comment transformer.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Transformer;

‎tests/includes/transformer/class-test-factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test file for Transformer Factory.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Transformer;

‎tests/includes/transformer/class-test-json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test file for JSON transformer.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Transformer;

‎tests/integration/class-test-akismet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Test Akismet Integration.
44
*
5-
* @package ActivityPub
5+
* @package Activitypub
66
*/
77

88
namespace Activitypub\Tests\Integration;

0 commit comments

Comments
 (0)
Please sign in to comment.