diff --git a/src/Collections/ActorCollection.php b/src/Collections/ActorCollection.php index 8122595..a4cf374 100644 --- a/src/Collections/ActorCollection.php +++ b/src/Collections/ActorCollection.php @@ -9,6 +9,6 @@ class ActorCollection extends GenericCollection { public function __construct(iterable $collection = []) { - parent::__construct(new StringType, $collection); + parent::__construct(new StringType(), $collection); } -} \ No newline at end of file +} diff --git a/src/Lexicons/App/Bsky/Graph/GetFollowers.php b/src/Lexicons/App/Bsky/Graph/GetFollowers.php index ffb0aa7..2c62509 100644 --- a/src/Lexicons/App/Bsky/Graph/GetFollowers.php +++ b/src/Lexicons/App/Bsky/Graph/GetFollowers.php @@ -9,7 +9,6 @@ use Atproto\Exceptions\InvalidArgumentException; use Atproto\Lexicons\APIRequest; use Atproto\Lexicons\Traits\AuthenticatedEndpoint; -use Atproto\Lexicons\Traits\Endpoint; use Atproto\Responses\App\Bsky\Graph\GetFollowersResponse; class GetFollowers extends APIRequest implements LexiconContract diff --git a/src/Lexicons/App/Bsky/RichText/FeatureAbstract.php b/src/Lexicons/App/Bsky/RichText/FeatureAbstract.php index ab71af2..72e83a6 100644 --- a/src/Lexicons/App/Bsky/RichText/FeatureAbstract.php +++ b/src/Lexicons/App/Bsky/RichText/FeatureAbstract.php @@ -4,7 +4,6 @@ use Atproto\Contracts\LexiconContract; use Atproto\Lexicons\Traits\Lexicon; -use Atproto\Lexicons\Traits\Serializable; abstract class FeatureAbstract implements LexiconContract { diff --git a/src/Responses/App/Bsky/Actor/GetProfilesResponse.php b/src/Responses/App/Bsky/Actor/GetProfilesResponse.php index 05a55b2..617d0e4 100644 --- a/src/Responses/App/Bsky/Actor/GetProfilesResponse.php +++ b/src/Responses/App/Bsky/Actor/GetProfilesResponse.php @@ -3,8 +3,8 @@ namespace Atproto\Responses\App\Bsky\Actor; use Atproto\Contracts\Resources\ResponseContract; -use Atproto\Responses\Objects\ProfilesObject; use Atproto\Responses\BaseResponse; +use Atproto\Responses\Objects\ProfilesObject; use Atproto\Traits\Castable; class GetProfilesResponse implements ResponseContract diff --git a/src/Responses/App/Bsky/Graph/GetFollowersResponse.php b/src/Responses/App/Bsky/Graph/GetFollowersResponse.php index 197ed3f..7949368 100644 --- a/src/Responses/App/Bsky/Graph/GetFollowersResponse.php +++ b/src/Responses/App/Bsky/Graph/GetFollowersResponse.php @@ -3,10 +3,10 @@ namespace Atproto\Responses\App\Bsky\Graph; use Atproto\Contracts\Resources\ResponseContract; +use Atproto\Responses\BaseResponse; use Atproto\Responses\Objects\BaseObject; use Atproto\Responses\Objects\FollowersObject; use Atproto\Responses\Objects\SubjectObject; -use Atproto\Responses\BaseResponse; use Atproto\Traits\Castable; class GetFollowersResponse implements ResponseContract diff --git a/tests/Feature/Lexicons/App/Bsky/Actor/GetProfilesTest.php b/tests/Feature/Lexicons/App/Bsky/Actor/GetProfilesTest.php index 4b55db2..767d70c 100644 --- a/tests/Feature/Lexicons/App/Bsky/Actor/GetProfilesTest.php +++ b/tests/Feature/Lexicons/App/Bsky/Actor/GetProfilesTest.php @@ -4,7 +4,6 @@ use Atproto\Client; use Atproto\Collections\ActorCollection; -use Atproto\Lexicons\App\Bsky\Actor\GetProfiles; use Atproto\Responses\App\Bsky\Actor\GetProfilesResponse; use Atproto\Responses\Objects\ProfileObject; use Atproto\Responses\Objects\ProfilesObject; diff --git a/tests/Feature/Lexicons/Com/Atproto/Repo/CreateRecordTest.php b/tests/Feature/Lexicons/Com/Atproto/Repo/CreateRecordTest.php index 786eb37..64a9c42 100644 --- a/tests/Feature/Lexicons/Com/Atproto/Repo/CreateRecordTest.php +++ b/tests/Feature/Lexicons/Com/Atproto/Repo/CreateRecordTest.php @@ -5,14 +5,10 @@ use Atproto\Client; use Atproto\Contracts\Lexicons\App\Bsky\Feed\PostBuilderContract; use Atproto\DataModel\Blob\Blob; -use Atproto\Exceptions\BlueskyException; use Atproto\Exceptions\InvalidArgumentException; use Atproto\Lexicons\App\Bsky\Embed\Collections\ImageCollection; use Atproto\Lexicons\App\Bsky\Embed\Image; use Atproto\Lexicons\App\Bsky\RichText\RichText; -use Atproto\Lexicons\App\Bsky\RichText\Link; -use Atproto\Lexicons\App\Bsky\RichText\Mention; -use Atproto\Lexicons\App\Bsky\RichText\Tag; use Atproto\Lexicons\Com\Atproto\Repo\CreateRecord; use Atproto\Support\Arr; use Atproto\Support\FileSupport; diff --git a/tests/Unit/Lexicons/App/Bsky/RichText/FeatureTests.php b/tests/Unit/Lexicons/App/Bsky/RichText/FeatureTests.php index cf07f59..f041b18 100644 --- a/tests/Unit/Lexicons/App/Bsky/RichText/FeatureTests.php +++ b/tests/Unit/Lexicons/App/Bsky/RichText/FeatureTests.php @@ -3,7 +3,6 @@ namespace Tests\Unit\Lexicons\App\Bsky\RichText; use Atproto\Lexicons\App\Bsky\RichText\FeatureAbstract; -use ReflectionException; use Tests\Supports\Reflection; trait FeatureTests diff --git a/tests/Unit/Responses/BaseResponseTest.php b/tests/Unit/Responses/BaseResponseTest.php index bf0d116..f6bb926 100644 --- a/tests/Unit/Responses/BaseResponseTest.php +++ b/tests/Unit/Responses/BaseResponseTest.php @@ -5,8 +5,8 @@ use Atproto\Contracts\Resources\ObjectContract; use Atproto\Contracts\Resources\ResponseContract; use Atproto\Exceptions\Resource\BadAssetCallException; -use Atproto\Responses\Objects\BaseObject; use Atproto\Responses\BaseResponse; +use Atproto\Responses\Objects\BaseObject; use Atproto\Traits\Castable; use PHPUnit\Framework\TestCase;