Skip to content

Commit 4382157

Browse files
committed
Fixing coding standards.
1 parent 9bfd50c commit 4382157

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

src/Environment.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ public static function getEnvironmentClass()
5555
if (!isset($class)) {
5656
if ($class = getenv('DRUPAL_ENVIRONMENT_CLASS')) {
5757
// Do nothing. The class was assigned in the if.
58-
}
59-
else {
58+
} else {
6059
// Intentionally re-assigning the class variable here so that a match
6160
// breaks the foreach loop, or we fall back to the default class.
6261
foreach (static::CLASSES as $class) {

src/Environment/Acquia.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ class Acquia extends DefaultEnvironment
1919
* {@inheritdoc}
2020
*/
2121
public const ENVIRONMENT_NAME = 'AH_SITE_ENVIRONMENT';
22-
2322
}

src/Environment/CircleCi.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ public static function getEnvironment(): string
2222
{
2323
return static::CI;
2424
}
25-
2625
}

src/Environment/DefaultEnvironment.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ public static function isLocal(): bool
157157
*
158158
* @see https://architecture.lullabot.com/adr/20210609-environment-indicator/
159159
*/
160-
public static function getIndicatorConfig(): ?array {
160+
public static function getIndicatorConfig(): ?array
161+
{
161162
if (static::isProduction()) {
162163
return [
163164
'name' => 'Production',
@@ -195,7 +196,7 @@ public static function getIndicatorConfig(): ?array {
195196
}
196197

197198
// Unknown environment condition.
198-
return NULL;
199+
return null;
199200
}
200201

201202
}

src/Environment/Tugboat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Tugboat extends DefaultEnvironment
2020
*/
2121
public static function isPreview(): bool
2222
{
23-
return TRUE;
23+
return true;
2424
}
2525

2626
}

0 commit comments

Comments
 (0)