Skip to content

Commit

Permalink
apply php-cs-fixer and import optimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
shahmal1yev committed Nov 8, 2024
1 parent 17e985f commit e3470c9
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/Collections/ActorCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class ActorCollection extends GenericCollection
{
public function __construct(iterable $collection = [])
{
parent::__construct(new StringType, $collection);
parent::__construct(new StringType(), $collection);
}
}
}
1 change: 0 additions & 1 deletion src/Lexicons/App/Bsky/Graph/GetFollowers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/Lexicons/App/Bsky/RichText/FeatureAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Atproto\Contracts\LexiconContract;
use Atproto\Lexicons\Traits\Lexicon;
use Atproto\Lexicons\Traits\Serializable;

abstract class FeatureAbstract implements LexiconContract
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/App/Bsky/Actor/GetProfilesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/App/Bsky/Graph/GetFollowersResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/Feature/Lexicons/App/Bsky/Actor/GetProfilesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 0 additions & 4 deletions tests/Feature/Lexicons/Com/Atproto/Repo/CreateRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion tests/Unit/Lexicons/App/Bsky/RichText/FeatureTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Responses/BaseResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e3470c9

Please sign in to comment.