File tree Expand file tree Collapse file tree 5 files changed +5
-7
lines changed Expand file tree Collapse file tree 5 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ public static function getEnvironmentClass()
55
55
if (!isset ($ class )) {
56
56
if ($ class = getenv ('DRUPAL_ENVIRONMENT_CLASS ' )) {
57
57
// Do nothing. The class was assigned in the if.
58
- }
59
- else {
58
+ } else {
60
59
// Intentionally re-assigning the class variable here so that a match
61
60
// breaks the foreach loop, or we fall back to the default class.
62
61
foreach (static ::CLASSES as $ class ) {
Original file line number Diff line number Diff line change @@ -19,5 +19,4 @@ class Acquia extends DefaultEnvironment
19
19
* {@inheritdoc}
20
20
*/
21
21
public const ENVIRONMENT_NAME = 'AH_SITE_ENVIRONMENT ' ;
22
-
23
22
}
Original file line number Diff line number Diff line change @@ -22,5 +22,4 @@ public static function getEnvironment(): string
22
22
{
23
23
return static ::CI ;
24
24
}
25
-
26
25
}
Original file line number Diff line number Diff line change @@ -157,7 +157,8 @@ public static function isLocal(): bool
157
157
*
158
158
* @see https://architecture.lullabot.com/adr/20210609-environment-indicator/
159
159
*/
160
- public static function getIndicatorConfig (): ?array {
160
+ public static function getIndicatorConfig (): ?array
161
+ {
161
162
if (static ::isProduction ()) {
162
163
return [
163
164
'name ' => 'Production ' ,
@@ -195,7 +196,7 @@ public static function getIndicatorConfig(): ?array {
195
196
}
196
197
197
198
// Unknown environment condition.
198
- return NULL ;
199
+ return null ;
199
200
}
200
201
201
202
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Tugboat extends DefaultEnvironment
20
20
*/
21
21
public static function isPreview (): bool
22
22
{
23
- return TRUE ;
23
+ return true ;
24
24
}
25
25
26
26
}
You can’t perform that action at this time.
0 commit comments