Skip to content

Commit cc0dbf2

Browse files
committed
fix: code style
1 parent b1f26a9 commit cc0dbf2

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

src/Kernel.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
use Symfony\Component\HttpFoundation\Response;
77
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
88

9-
class Kernel extends \Symfony\Component\HttpKernel\Kernel
9+
class Kernel extends Symfony\Component\HttpKernel\Kernel
1010
{
1111
use MicroKernelTrait;
1212

1313
public function registerBundles(): iterable
1414
{
1515
return [
16-
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
17-
new \Symfony\Bundle\SecurityBundle\SecurityBundle(),
18-
new \Symfony\Bundle\TwigBundle\TwigBundle(),
19-
new \Symfony\Bundle\MonologBundle\MonologBundle(),
20-
new \Playbloom\Satisfy\PlaybloomSatisfyBundle(),
16+
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
17+
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
18+
new Symfony\Bundle\TwigBundle\TwigBundle(),
19+
new Symfony\Bundle\MonologBundle\MonologBundle(),
20+
new Playbloom\Satisfy\PlaybloomSatisfyBundle(),
2121
];
2222
}
2323

src/Playbloom/Satisfy/Event/BuildEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class BuildEvent extends Event
1515
/** @var int|null */
1616
private $status;
1717

18-
public function __construct(RepositoryInterface $repository = null)
18+
public function __construct(?RepositoryInterface $repository = null)
1919
{
2020
$this->repository = $repository;
2121
}

src/Playbloom/Satisfy/Model/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function getDescription(): ?string
202202
return $this->description;
203203
}
204204

205-
public function setDescription(string $description = null): void
205+
public function setDescription(?string $description = null): void
206206
{
207207
$this->description = $description;
208208
}
@@ -287,7 +287,7 @@ public function getIncludeFilename(): ?string
287287
return $this->includeFilename;
288288
}
289289

290-
public function setIncludeFilename(string $includeFilename = null): self
290+
public function setIncludeFilename(?string $includeFilename = null): self
291291
{
292292
if (empty($includeFilename)) {
293293
$includeFilename = null;
@@ -399,7 +399,7 @@ public function getTwigTemplate(): ?string
399399
return $this->twigTemplate;
400400
}
401401

402-
public function setTwigTemplate(string $twigTemplate = null): void
402+
public function setTwigTemplate(?string $twigTemplate = null): void
403403
{
404404
$this->twigTemplate = $twigTemplate;
405405
}

src/Playbloom/Satisfy/Persister/ConfigurationNormalizer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ class ConfigurationNormalizer implements NormalizerInterface, DenormalizerInterf
1717
/** @var SerializerInterface */
1818
private $serializer;
1919

20-
public function normalize($object, string $format = null, array $context = [])
20+
public function normalize($object, ?string $format = null, array $context = [])
2121
{
2222
return $object;
2323
}
2424

25-
public function supportsNormalization($data, string $format = null)
25+
public function supportsNormalization($data, ?string $format = null)
2626
{
2727
return false;
2828
}
2929

30-
public function denormalize($data, string $type, string $format = null, array $context = [])
30+
public function denormalize($data, string $type, ?string $format = null, array $context = [])
3131
{
3232
if ($type === PackageConstraint::class . '[]') {
3333
return $this->denormalizeRequire($data);
@@ -52,7 +52,7 @@ public function denormalize($data, string $type, string $format = null, array $c
5252
return $data;
5353
}
5454

55-
public function supportsDenormalization($data, string $type, string $format = null)
55+
public function supportsDenormalization($data, string $type, ?string $format = null)
5656
{
5757
switch ($type) {
5858
case PackageConstraint::class . '[]':

src/Playbloom/Satisfy/Process/ProcessFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function getRootPath(): string
2121
return $this->rootPath;
2222
}
2323

24-
public function create(array $command, int $timeout = null): Process
24+
public function create(array $command, ?int $timeout = null): Process
2525
{
2626
$exec = reset($command);
2727
$command[key($command)] = $this->rootPath . '/' . $exec;

src/Playbloom/Satisfy/Webhook/AbstractWebhook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(Manager $manager, EventDispatcherInterface $dispatch
2525
$this->dispatcher = $dispatcher;
2626
}
2727

28-
public function setSecret(string $secret): self
28+
public function setSecret(?string $secret): self
2929
{
3030
$this->secret = $secret;
3131

tests/Playbloom/Satisfy/Webhook/DevOpsWebhookTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function invalidRequestProvider(): \Generator
9898
yield [self::createRequest(['resource' => ['repository' => ['url' => '']]])];
9999
}
100100

101-
protected static function createRequest($content, string $token = null): Request
101+
protected static function createRequest($content, ?string $token = null): Request
102102
{
103103
if (!is_string($content)) {
104104
$content = json_encode($content);

tests/Playbloom/Satisfy/Webhook/GitlabWebhookTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public function testAutoAddPreferHttpsFallback(): void
299299
$response = $handler->getResponse($request);
300300
}
301301

302-
protected function createRequest($content, string $event = 'push', string $token = null): Request
302+
protected function createRequest($content, string $event = 'push', ?string $token = null): Request
303303
{
304304
if (!is_string($content)) {
305305
$content = json_encode($content);

0 commit comments

Comments
 (0)