Skip to content

Commit 93455b1

Browse files
committed
CS fix
1 parent fb110cb commit 93455b1

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lib/AdminUI/ComponentLayoutsLoader.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public function loadComponentLayouts(ContentInfo $contentInfo): iterable
6767
public function loadLayoutsData(): array
6868
{
6969
$query = $this->databaseConnection->createQueryBuilder();
70-
7170
$query->select('b.view_type, bt.parameters, l.uuid as layout_uuid, l.name as layout_name')
7271
->from('nglayouts_block', 'b')
7372
->innerJoin(

lib/AdminUI/RelatedLayoutsLoader.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public function __construct(
3232
public function loadRelatedLayouts(Location $location): array
3333
{
3434
$query = $this->databaseConnection->createQueryBuilder();
35-
3635
$query->select('DISTINCT l.uuid, l.name')
3736
->from('nglayouts_collection_item', 'ci')
3837
->innerJoin(

tests/lib/Security/Authorization/Voter/RepositoryAccessVoterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ protected function setUp(): void
4848
#[DataProvider('voteDataProvider')]
4949
public function testVote(mixed $attribute, array $repoAccess, int $voteResult): void
5050
{
51-
$token = $this->createMock(TokenInterface::class);
51+
$tokenMock = $this->createMock(TokenInterface::class);
5252

5353
if (count($repoAccess) > 0) {
5454
$this->accessDecisionManagerMock
5555
->method('decide')
5656
->with(
57-
self::identicalTo($token),
57+
self::identicalTo($tokenMock),
5858
self::isArray(),
5959
self::isNull(),
6060
)->willReturnCallback(
6161
static fn (TokenInterface $token, array $attributes) => $repoAccess[$attributes[0]->function],
6262
);
6363
}
6464

65-
$result = $this->voter->vote($token, null, [$attribute]);
65+
$result = $this->voter->vote($tokenMock, null, [$attribute]);
6666

6767
self::assertSame($voteResult, $result);
6868
}

0 commit comments

Comments
 (0)