Skip to content

Commit d63c25d

Browse files
php-cs-fixer fix .
1 parent f4b8e49 commit d63c25d

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

src/Form/Type/AppSubscriptionType.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
3434
if ('create' == $options['context']) {
3535
if (AppSubscriptionModel::TYPE_EMAIL == $options['type']) {
3636
$fields[] = 'email';
37-
3837
} else {
3938
$fields[] = 'endpoint';
4039

@@ -131,7 +130,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
131130
$form->get('endpoint')->addError(new FormError(
132131
$this->translator->trans('endpoint_already_used')
133132
));
134-
135133
}
136134
}
137135
}

src/Manager/AppNotificationManager.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ public function generate(): array
124124

125125
if (1 >= $interval->format('%a')) {
126126
$licenseInfo = 'license_1_day';
127-
} else if (15 > $interval->format('%a')) {
127+
} elseif (15 > $interval->format('%a')) {
128128
$licenseInfo = 'license_15_days';
129-
} else if (30 > $interval->format('%a')) {
129+
} elseif (30 > $interval->format('%a')) {
130130
$licenseInfo = 'license_30_days';
131131
}
132132
}
@@ -149,7 +149,6 @@ public function generate(): array
149149
file_put_contents($this->filename, json_encode($lastInfo));
150150

151151
return $this->compareInfo($previousInfo, $lastInfo);
152-
153152
} catch (ConnectionException $e) {
154153
return [];
155154
}

src/Manager/CallManager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ public function setLicense()
310310
$callResponse = $this->call($callRequest);
311311
$license = $callResponse->getContent();
312312
$this->license = $license['license'];
313-
314313
} catch (CallException $e) {
315314
$this->license = [];
316315
}

tests/Controller/AbstractAppControllerTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ abstract class AbstractAppControllerTest extends WebTestCase
1515

1616
protected $callManager;
1717

18-
public static function setUpBeforeClass() {
18+
public static function setUpBeforeClass()
19+
{
1920
if (false === defined('GENERATED_NAME')) {
2021
define('GENERATED_NAME', 'phpunit-'.uniqid());
2122
}
@@ -73,7 +74,8 @@ protected function setUp(): void
7374
}
7475
}
7576

76-
function getRandomString($length = 8) {
77+
function getRandomString($length = 8)
78+
{
7779
$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
7880
$string = '';
7981

0 commit comments

Comments
 (0)