Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option enable afterburner #626

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions inc/composer/class-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@
Run the local development server.

Default command - start the local development server:
start [--xdebug=<mode>] [--mutagen] [--tmp]
start [--xdebug=<mode>] [--mutagen] [--tmp] [--afterburner]
--xdebug starts the server with xdebug enabled
optionally set the xdebug mode by assigning a value.
--mutagen will start the server using Mutagen
for file sharing.
--tmp will mount the PHP container's /tmp directory to
.tmp in your project directory. Useful with --xdebug=profile
--afterburner starts the server with the Afterburner extension enabled
Stop the local development server or specific service:
stop [<service>] [--clean] passing --clean will also stop the proxy container
Restart the local development server:
Expand Down Expand Up @@ -89,7 +90,8 @@
->addOption( 'xdebug', null, InputOption::VALUE_OPTIONAL, 'Start the server with Xdebug', 'debug' )
->addOption( 'mutagen', null, InputOption::VALUE_NONE, 'Start the server with Mutagen file sharing' )
->addOption( 'clean', null, InputOption::VALUE_NONE, 'Remove or stop the proxy container when destroying or stopping the server' )
->addOption( 'tmp', null, InputOption::VALUE_NONE, 'Mount the PHP container\'s /tmp directory to `.tmp` for debugging purposes' );
->addOption('tmp', null, InputOption::VALUE_NONE, 'Mount the PHP container\'s /tmp directory to `.tmp` for debugging purposes')

Check failure on line 93 in inc/composer/class-command.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-command.php#L93

Expected 1 spaces after opening parenthesis; 0 found
Raw output
{
  "line": 93,
  "column": 15,
  "severity": "error",
  "message": "Expected 1 spaces after opening parenthesis; 0 found",
  "source": "PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket"
}

Check failure on line 93 in inc/composer/class-command.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-command.php#L93

Expected 1 spaces before closing parenthesis; 0 found
Raw output
{
  "line": 93,
  "column": 15,
  "severity": "error",
  "message": "Expected 1 spaces before closing parenthesis; 0 found",
  "source": "PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket"
}
->addOption('afterburner', null, InputOption::VALUE_NONE, 'Start the server with the Afterburner extension enabled');

Check failure on line 94 in inc/composer/class-command.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-command.php#L94

Expected 1 spaces after opening parenthesis; 0 found
Raw output
{
  "line": 94,
  "column": 15,
  "severity": "error",
  "message": "Expected 1 spaces after opening parenthesis; 0 found",
  "source": "PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket"
}

Check failure on line 94 in inc/composer/class-command.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-command.php#L94

Expected 1 spaces before closing parenthesis; 0 found
Raw output
{
  "line": 94,
  "column": 15,
  "severity": "error",
  "message": "Expected 1 spaces before closing parenthesis; 0 found",
  "source": "PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket"
}
}

/**
Expand Down Expand Up @@ -131,6 +133,7 @@
'mutagen' => 'off',
'tmp' => false,
'secure' => static::get_composer_config()['secure'] ?? true,
'afterburner' => 'off',
];

// If Xdebug switch is passed add to docker compose args.
Expand All @@ -154,6 +157,11 @@
}
}

// If Afterburner switch is passed add to the docker composer args.
if ( $input->hasParameterOption( '--afterburner' ) ) {
$settings['afterburner'] = true;
}

// Refresh the docker-compose.yml file.
if ( in_array( $subcommand, [ null, 'start', 'restart' ], true ) ) {
$this->generate_docker_compose( $settings );
Expand Down
18 changes: 18 additions & 0 deletions inc/composer/class-docker-compose-generator.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

Check failure on line 1 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L1

Files should only contain a single class, and no other declarations. First class was defined on line 14, and a function was found on line 83.
Raw output
{
  "line": 1,
  "column": 1,
  "severity": "error",
  "message": "Files should only contain a single class, and no other declarations. First class was defined on line 14, and a function was found on line 83.",
  "source": "HM.Classes.OnlyClassInFile.FoundMultipleDeclarations"
}

Check failure on line 1 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L1

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 83 and the first side effect is on line 14.
Raw output
{
  "line": 1,
  "column": 1,
  "severity": "error",
  "message": "A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 83 and the first side effect is on line 14.",
  "source": "PSR1.Files.SideEffects.FoundWithSymbols"
}
/**
* Local Server Docker Compose file generator.
*/

namespace Altis\Local_Server\Composer;

use Altis;

Check failure on line 8 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L8

Unused use statement
Raw output
{
  "line": 8,
  "column": 1,
  "severity": "error",
  "message": "Unused use statement",
  "source": "PSR2R.Namespaces.UnusedUseStatement.UnusedUse"
}
use Symfony\Component\Yaml\Yaml;

Check failure on line 9 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L9

Unused use statement
Raw output
{
  "line": 9,
  "column": 1,
  "severity": "error",
  "message": "Unused use statement",
  "source": "PSR2R.Namespaces.UnusedUseStatement.UnusedUse"
}

/**
* Generates a docker compose file for Altis Local Server.
*/
class Docker_Compose_Generator {

Check failure on line 14 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L14

Possible parse error: class Docker_Compose_Generator missing opening or closing brace
Raw output
{
  "line": 14,
  "column": 1,
  "severity": "error",
  "message": "Possible parse error: class Docker_Compose_Generator missing opening or closing brace",
  "source": "Generic.Classes.OpeningBraceSameLine.MissingBrace"
}

Check failure on line 14 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L14

Possible parse error: class missing opening or closing brace
Raw output
{
  "line": 14,
  "column": 1,
  "severity": "error",
  "message": "Possible parse error: class missing opening or closing brace",
  "source": "Squiz.Commenting.ClosingDeclarationComment.MissingBrace"
}

/**
* The Docker Compose project name.
Expand Down Expand Up @@ -80,23 +80,23 @@
* @param string $url The client facing URL.
* @param array $args An optional array of arguments to modify the behaviour of the generator.
*/
public function __construct( string $root_dir, string $project_name, string $tld, string $url, array $args = [] ) {

Check failure on line 83 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L83

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 83,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 83 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L83

Function name "__construct" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
Raw output
{
  "line": 83,
  "column": 12,
  "severity": "error",
  "message": "Function name \"__construct\" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.",
  "source": "PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore"
}

Check failure on line 83 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L83

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 83,
  "column": 12,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}

Check failure on line 83 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L83

Function name "__construct" is invalid; only PHP magic methods should be prefixed with a double underscore
Raw output
{
  "line": 83,
  "column": 12,
  "severity": "error",
  "message": "Function name \"__construct\" is invalid; only PHP magic methods should be prefixed with a double underscore",
  "source": "WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore"
}
$this->project_name = $project_name;

Check failure on line 84 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L84

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 84,
  "column": 9,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$this->bucket_name = "s3-{$this->project_name}";

Check failure on line 85 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L85

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 85,
  "column": 9,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$this->config_dir = dirname( __DIR__, 2 ) . '/docker';

Check failure on line 86 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L86

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 86,
  "column": 9,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$this->root_dir = $root_dir;

Check failure on line 87 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L87

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 87,
  "column": 9,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$this->tld = $tld;

Check failure on line 88 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L88

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 88,
  "column": 9,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$this->hostname = $this->tld ? $this->project_name . '.' . $this->tld : $this->project_name;

Check failure on line 89 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L89

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 89,
  "column": 9,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}

Check failure on line 89 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L89

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 89,
  "column": 27,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}

Check failure on line 89 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L89

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 89,
  "column": 40,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}

Check failure on line 89 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L89

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 89,
  "column": 68,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}

Check failure on line 89 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L89

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 89,
  "column": 81,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$this->url = $url;

Check failure on line 90 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L90

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 90,
  "column": 9,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$this->args = $args;

Check failure on line 91 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L91

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 91,
  "column": 9,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
}

Check failure on line 92 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L92

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 92,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the PHP server configuration.
*
* @return array
*/
protected function get_php_reusable() : array {

Check failure on line 99 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L99

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 99,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 99 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L99

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 99,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
$version_map = [
'8.2' => 'humanmade/altis-local-server-php:8.2.5',
'8.1' => 'humanmade/altis-local-server-php:6.0.7',
Expand All @@ -105,9 +105,9 @@
];

$versions = array_keys( $version_map );
$version = (string) $this->get_config()['php'];

Check failure on line 108 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L108

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 108,
  "column": 29,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}

if ( ! in_array( $version, $versions, true ) ) {

Check failure on line 110 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L110

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 110,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}
echo sprintf(
"The configured PHP version \"%s\" is not supported.\nTry one of the following:\n - %s\n",
// phpcs:ignore HM.Security.EscapeOutput.OutputNotEscaped
Expand All @@ -116,21 +116,25 @@
implode( "\n - ", $versions )
);
exit( 1 );
}

Check failure on line 119 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L119

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 119,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

$image = $version_map[ $version ];

$volumes = [
$this->get_app_volume(),

Check failure on line 124 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L124

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 124,
  "column": 13,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
"{$this->config_dir}/php.ini:/usr/local/etc/php/conf.d/altis.ini",
'socket:/var/run/php-fpm',
'tmp:/tmp',
];

if ( $this->args['xdebug'] !== 'off' ) {

Check failure on line 130 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L130

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 130,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 130 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L130

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 130,
  "column": 14,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$volumes[] = "{$this->config_dir}/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini";
}

Check failure on line 132 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L132

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 132,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

if ($this->args['afterburner'] == true) {

Check failure on line 134 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L134

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 134,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 134 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L134

No space after opening parenthesis is prohibited
Raw output
{
  "line": 134,
  "column": 9,
  "severity": "error",
  "message": "No space after opening parenthesis is prohibited",
  "source": "WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis"
}

Check failure on line 134 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L134

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 134,
  "column": 13,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}

Check failure on line 134 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L134

Found: ==. Use strict comparisons (=== or !==).
Raw output
{
  "line": 134,
  "column": 40,
  "severity": "error",
  "message": "Found: ==. Use strict comparisons (=== or !==).",
  "source": "WordPress.PHP.StrictComparisons.LooseComparison"
}

Check failure on line 134 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L134

No space before closing parenthesis is prohibited
Raw output
{
  "line": 134,
  "column": 47,
  "severity": "error",
  "message": "No space before closing parenthesis is prohibited",
  "source": "WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis"
}
$volumes[] = "{$this->config_dir}/afterburner.ini:/usr/local/etc/php/conf.d/afterburner.ini";
}

Check failure on line 136 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L136

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 136,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

$services = [
'init' => true,
'depends_on' => [
Expand Down Expand Up @@ -165,8 +169,8 @@
'default',
],
'environment' => [
'HOST_PATH' => $this->root_dir,

Check failure on line 172 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L172

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 172,
  "column": 32,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
'COMPOSE_PROJECT_NAME' => $this->hostname,

Check failure on line 173 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L173

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 173,
  "column": 43,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
'DB_HOST' => 'db',
'DB_READ_REPLICA_HOST' => 'db-read-replica',
'DB_PASSWORD' => 'wordpress',
Expand Down Expand Up @@ -199,48 +203,48 @@
Command::is_linux() && ! Command::is_wsl() ? '172.17.0.1' : 'host.docker.internal'
),
'PHP_IDE_CONFIG' => "serverName={$this->hostname}",
'XDEBUG_SESSION' => $this->hostname,

Check failure on line 206 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L206

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 206,
  "column": 37,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
// Set XDebug mode, fall back to "off" to avoid any performance hits.
'XDEBUG_MODE' => $this->args['xdebug'] ?? 'off',

Check failure on line 208 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L208

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 208,
  "column": 34,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
],
];

if ( $this->get_config()['elasticsearch'] ) {

Check failure on line 212 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L212

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 212,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 212 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L212

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 212,
  "column": 14,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$services['depends_on']['elasticsearch'] = [
'condition' => 'service_healthy',
];
}

Check failure on line 216 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L216

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 216,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

// Forward CI env var - set by Travis, Circle CI, GH Actions and more...
if ( getenv( 'CI' ) ) {

Check failure on line 219 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L219

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 219,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}
$services['environment']['CI'] = getenv( 'CI' );
}

Check failure on line 221 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L221

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 221,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

return $services;
}

Check failure on line 224 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L224

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 224,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the PHP container service.
*
* @return array
*/
protected function get_service_php() : array {

Check failure on line 231 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L231

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 231,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 231 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L231

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 231,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
return [
'php' => array_merge(
[
'container_name' => "{$this->project_name}-php",
],
$this->get_php_reusable()

Check failure on line 237 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L237

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 237,
  "column": 17,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
),
];
}

Check failure on line 240 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L240

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 240,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Webgrind service container for viewing Xdebug profiles.
*
* @return array
*/
protected function get_service_webgrind() : array {

Check failure on line 247 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L247

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 247,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 247 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L247

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 247,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
return [
'webgrind' => [
'container_name' => "{$this->project_name}-webgrind",
Expand Down Expand Up @@ -269,14 +273,14 @@
],
],
];
}

Check failure on line 276 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L276

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 276,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the Cavalcade service.
*
* @return array
*/
protected function get_service_cavalcade() : array {

Check failure on line 283 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L283

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 283,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 283 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L283

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 283,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
return [
'cavalcade' => array_merge(
[
Expand All @@ -287,18 +291,18 @@
'user' => 'nobody:nobody',
'restart' => 'unless-stopped',
],
$this->get_php_reusable()

Check failure on line 294 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L294

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 294,
  "column": 17,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
),
];
}

Check failure on line 297 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L297

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 297,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the nginx service.
*
* @return array
*/
protected function get_service_nginx() : array {

Check failure on line 304 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L304

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 304,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 304 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L304

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 304,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
$config = $this->get_config();

Check failure on line 305 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L305

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 305,
  "column": 19,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$domains = $config['domains'] ?? [];
$domains = $domains ? ',' . implode( ',', $domains ) : '';

Expand All @@ -314,7 +318,7 @@
'php',
],
'volumes' => [
$this->get_app_volume(),

Check failure on line 321 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L321

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 321,
  "column": 21,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
'socket:/var/run/php-fpm',
],
'ports' => [
Expand All @@ -332,18 +336,18 @@
// Gzip compression now defaults to off to support Brotli compression via CloudFront.
'GZIP_STATUS' => 'on',
// Increase read response timeout when debugging.
'READ_TIMEOUT' => ( $this->args['xdebug'] ?? 'off' ) !== 'off' ? '9000s' : '60s',

Check failure on line 339 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L339

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 339,
  "column": 41,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
],
],
];
}

Check failure on line 343 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L343

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 343,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the Redis service.
*
* @return array
*/
protected function get_service_redis() : array {

Check failure on line 350 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L350

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 350,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 350 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L350

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 350,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
return [
'redis' => [
'image' => 'redis:7.0-alpine',
Expand All @@ -353,14 +357,14 @@
],
],
];
}

Check failure on line 360 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L360

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 360,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the DB service.
*
* @return array
*/
protected function get_service_db() : array {

Check failure on line 367 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L367

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 367,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 367 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L367

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 367,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
return [
'db' => [
'image' => 'biarms/mysql:5.7',
Expand Down Expand Up @@ -394,14 +398,14 @@
],
],
];
}

Check failure on line 401 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L401

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 401,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the Elasticsearch service.
*
* @return array
*/
protected function get_service_elasticsearch() : array {

Check failure on line 408 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L408

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 408,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 408 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L408

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 408,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
$mem_limit = getenv( 'ES_MEM_LIMIT' ) ?: '1g';

$version_map = [
Expand All @@ -412,9 +416,9 @@
'6.3' => 'humanmade/altis-local-server-elasticsearch:3.0.0',
];

$this->check_elasticsearch_version( array_keys( $version_map ) );

Check failure on line 419 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L419

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 419,
  "column": 9,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}

$image = $version_map[ $this->get_elasticsearch_version() ];

Check failure on line 421 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L421

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 421,
  "column": 32,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}

return [
'elasticsearch' => [
Expand Down Expand Up @@ -465,14 +469,14 @@
],
],
];
}

Check failure on line 472 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L472

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 472,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the Kibana service.
*
* @return array
*/
protected function get_service_kibana() : array {

Check failure on line 479 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L479

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 479,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 479 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L479

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 479,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}

$version_map = [
'7.10' => 'humanmade/altis-local-server-kibana:1.1.1',
Expand All @@ -482,14 +486,14 @@
'6.3' => 'blacktop/kibana:6.3',
];

$this->check_elasticsearch_version( array_keys( $version_map ) );

Check failure on line 489 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L489

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 489,
  "column": 9,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}

$image = $version_map[ $this->get_elasticsearch_version() ];

Check failure on line 491 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L491

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 491,
  "column": 32,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}

$yml_file = 'kibana.yml';
if ( version_compare( $this->get_elasticsearch_version(), '7', '>=' ) ) {

Check failure on line 494 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L494

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 494,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 494 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L494

"$this" can no longer be used in a plain function or method since PHP 7.1.
Raw output
{
  "line": 494,
  "column": 31,
  "severity": "error",
  "message": "\"$this\" can no longer be used in a plain function or method since PHP 7.1.",
  "source": "PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"
}
$yml_file = 'kibana-7.yml';
}

Check failure on line 496 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L496

Line indented incorrectly; expected 1 tabs, found 2
Raw output
{
  "line": 496,
  "column": 9,
  "severity": "error",
  "message": "Line indented incorrectly; expected 1 tabs, found 2",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

return [
'kibana' => [
Expand Down Expand Up @@ -518,14 +522,14 @@
],
],
];
}

Check failure on line 525 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L525

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 525,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the S3 service.
*
* @return array
*/
protected function get_service_s3() : array {

Check failure on line 532 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L532

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 532,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 532 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L532

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 532,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
return [
's3' => [
'image' => 'minio/minio:RELEASE.2021-09-18T18-09-59Z',
Expand Down Expand Up @@ -593,14 +597,14 @@
'entrypoint' => "/bin/sh -c \"mc mb -p local/{$this->bucket_name} && mc policy set public local/{$this->bucket_name} && mc mirror --watch --overwrite -a local/{$this->bucket_name} /content\"",
],
];
}

Check failure on line 600 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L600

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 600,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the Tachyon service.
*
* @return array
*/
protected function get_service_tachyon() : array {

Check failure on line 607 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L607

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 607,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 607 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L607

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 607,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
return [
'tachyon' => [
'image' => 'humanmade/tachyon:v2.6.0',
Expand Down Expand Up @@ -629,14 +633,14 @@
],
],
];
}

Check failure on line 636 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L636

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 636,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the Mailhog service.
*
* @return array
*/
protected function get_service_mailhog() : array {

Check failure on line 643 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L643

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 643,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 643 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L643

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 643,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
return [
'mailhog' => [
'image' => 'cd2team/mailhog:latest',
Expand All @@ -660,14 +664,14 @@
],
],
];
}

Check failure on line 667 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L667

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 667,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the Analytics services.
*
* @return array
*/
protected function get_service_analytics() : array {

Check failure on line 674 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L674

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 674,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 674 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L674

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 674,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
return [
'cognito' => [
'container_name' => "{$this->project_name}-cognito",
Expand Down Expand Up @@ -711,14 +715,14 @@
],
],
];
}

Check failure on line 718 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L718

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 718,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the XRay service.
*
* @return array
*/
protected function get_service_xray() : array {

Check failure on line 725 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L725

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 725,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 725 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L725

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 725,
  "column": 15,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
return [
'xray' => [
'image' => 'amazon/aws-xray-daemon:3.3.3',
Expand All @@ -733,14 +737,14 @@
],
],
];
}

Check failure on line 740 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L740

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 740,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

/**
* Get the full docker compose configuration.
*
* @return array
*/
public function get_array() : array {

Check failure on line 747 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L747

Line indented incorrectly; expected 0 tabs, found 1
Raw output
{
  "line": 747,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected 0 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.IncorrectExact"
}

Check failure on line 747 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L747

Possible parse error: non-abstract method defined as abstract
Raw output
{
  "line": 747,
  "column": 12,
  "severity": "error",
  "message": "Possible parse error: non-abstract method defined as abstract",
  "source": "Squiz.Commenting.ClosingDeclarationComment.Abstract"
}

Check failure on line 747 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L747

Namespaced functions must be in namespace.php or $namespace.php
Raw output
{
  "line": 747,
  "column": 12,
  "severity": "error",
  "message": "Namespaced functions must be in namespace.php or $namespace.php",
  "source": "HM.Files.FunctionFileName.WrongFile"
}
$services = array_merge(
$this->get_service_db(),
$this->get_service_redis(),
Expand Down Expand Up @@ -818,122 +822,136 @@
];
}

// Enable afterburner if requested.
if ($this->args['afterburner'] ?? false) {
$afterburner_config = <<<EOL
[Afterburner]

Check failure on line 828 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L828

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 828,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
extension = afterburner.so

Check failure on line 829 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L829

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 829,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
afterburner.redis_server_info = "redis://redis:6379"

Check failure on line 830 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L830

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 830,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
afterburner.lru_cache_max_items = 1000

Check failure on line 831 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L831

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 831,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
afterburner.redis_skip_server_check = yes

Check failure on line 832 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L832

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 832,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

EOL;

Check failure on line 834 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L834

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 834,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

file_put_contents("{$this->config_dir}/afterburner.ini", $afterburner_config);

Check failure on line 836 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L836

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 836,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 837 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L837

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 837,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

// Handle mutagen volume according to args.

Check failure on line 839 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L839

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 839,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
if ( ! empty( $this->args['mutagen'] ) && $this->args['mutagen'] === 'on' ) {

Check failure on line 840 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L840

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 840,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
$config['volumes']['app'] = null;

Check failure on line 841 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L841

PHP syntax error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)
Raw output
{
  "line": 841,
  "column": 1,
  "severity": "error",
  "message": "PHP syntax error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)",
  "source": "Generic.PHP.Syntax.PHPSyntax"
}

Check failure on line 841 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L841

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 841,
  "column": 4,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

Check failure on line 841 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L841

Missing bracket closer.
Raw output
{
  "line": 841,
  "column": 11,
  "severity": "error",
  "message": "Missing bracket closer.",
  "source": "WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser"
}
$config['x-mutagen'] = [

Check failure on line 842 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L842

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 842,
  "column": 4,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

Check failure on line 842 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L842

Missing bracket closer.
Raw output
{
  "line": 842,
  "column": 11,
  "severity": "error",
  "message": "Missing bracket closer.",
  "source": "WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser"
}
'sync' => [

Check failure on line 843 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L843

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 843,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'app' => [

Check failure on line 844 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L844

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 844,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'alpha' => $this->root_dir,

Check failure on line 845 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L845

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 845,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'beta' => 'volume://app',

Check failure on line 846 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L846

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 846,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'configurationBeta' => [

Check failure on line 847 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L847

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 847,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'permissions' => [

Check failure on line 848 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L848

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 848,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'defaultOwner' => 'id:82',
'defaultGroup' => 'id:82',
'defaultFileMode' => '0664',
'defaultDirectoryMode' => '0775',
],

Check failure on line 853 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L853

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 853,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
],

Check failure on line 854 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L854

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 854,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'mode' => 'two-way-resolved',

Check failure on line 855 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L855

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 855,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
],

Check failure on line 856 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L856

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 856,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
],

Check failure on line 857 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L857

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 857,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
];

Check failure on line 858 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L858

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 858,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
// Add ignored paths.

Check failure on line 859 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L859

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 859,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
if ( ! empty( $this->get_config()['ignore-paths'] ) ) {

Check failure on line 860 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L860

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 860,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
$config['x-mutagen']['sync']['app']['ignore'] = [

Check failure on line 861 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L861

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 861,
  "column": 5,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

Check failure on line 861 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L861

Missing bracket closer.
Raw output
{
  "line": 861,
  "column": 12,
  "severity": "error",
  "message": "Missing bracket closer.",
  "source": "WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser"
}
'paths' => array_values( (array) $this->get_config()['ignore-paths'] ),

Check failure on line 862 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L862

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 862,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
];

Check failure on line 863 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L863

Line indented incorrectly; expected at least 2 tabs, found 1
Raw output
{
  "line": 863,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 1",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 864 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L864

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 864,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 865 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L865

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 865,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

return $config;

Check failure on line 867 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L867

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 867,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 868 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L868

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 868,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

/**

Check failure on line 870 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L870

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 870,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* Get Yaml output for config.

Check failure on line 871 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L871

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 871,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
*

Check failure on line 872 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L872

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 872,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* @return string

Check failure on line 873 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L873

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 873,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
*/

Check failure on line 874 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L874

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 874,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
public function get_yaml() : string {

Check failure on line 875 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L875

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 875,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
return Yaml::dump( $this->get_array(), 10, 2 );

Check failure on line 876 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L876

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 876,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 877 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L877

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 877,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

/**

Check failure on line 879 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L879

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 879,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* Get the Local Server config from composer.json.

Check failure on line 880 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L880

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 880,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
*

Check failure on line 881 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L881

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 881,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* @return array

Check failure on line 882 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L882

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 882,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
*/

Check failure on line 883 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L883

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 883,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
protected function get_config() : array {

Check failure on line 884 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L884

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 884,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
// Set the root directory required by Altis\get_config() if not available.

Check failure on line 885 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L885

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 885,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
if ( ! defined( 'Altis\\ROOT_DIR' ) ) {

Check failure on line 886 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L886

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 886,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
define( 'Altis\\ROOT_DIR', $this->root_dir );

Check failure on line 887 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L887

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 887,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 888 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L888

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 888,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

$modules = Altis\get_config()['modules'] ?? [];

Check failure on line 890 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L890

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 890,
  "column": 3,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

$analytics_enabled = $modules['analytics']['enabled'] ?? true;

Check failure on line 892 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L892

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 892,
  "column": 3,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

Check failure on line 892 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L892

Missing bracket closer.
Raw output
{
  "line": 892,
  "column": 32,
  "severity": "error",
  "message": "Missing bracket closer.",
  "source": "WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser"
}
$search_enabled = $modules['search']['enabled'] ?? true;

Check failure on line 893 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L893

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 893,
  "column": 3,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

Check failure on line 893 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L893

Missing bracket closer.
Raw output
{
  "line": 893,
  "column": 29,
  "severity": "error",
  "message": "Missing bracket closer.",
  "source": "WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser"
}

$defaults = [

Check failure on line 895 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L895

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 895,
  "column": 3,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
's3' => $modules['cloud']['s3-uploads'] ?? true,

Check failure on line 896 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L896

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 896,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

Check failure on line 896 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L896

Missing bracket closer.
Raw output
{
  "line": 896,
  "column": 20,
  "severity": "error",
  "message": "Missing bracket closer.",
  "source": "WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser"
}
'tachyon' => $modules['media']['tachyon'] ?? true,

Check failure on line 897 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L897

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 897,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

Check failure on line 897 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L897

Missing bracket closer.
Raw output
{
  "line": 897,
  "column": 25,
  "severity": "error",
  "message": "Missing bracket closer.",
  "source": "WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser"
}
'analytics' => $analytics_enabled,

Check failure on line 898 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L898

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 898,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'cavalcade' => $modules['cloud']['cavalcade'] ?? true,

Check failure on line 899 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L899

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 899,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

Check failure on line 899 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L899

Missing bracket closer.
Raw output
{
  "line": 899,
  "column": 27,
  "severity": "error",
  "message": "Missing bracket closer.",
  "source": "WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser"
}
'elasticsearch' => ( $analytics_enabled || $search_enabled ) ? '7' : false,

Check failure on line 900 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L900

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 900,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'kibana' => ( $analytics_enabled || $search_enabled ),

Check failure on line 901 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L901

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 901,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'xray' => $modules['cloud']['xray'] ?? true,

Check failure on line 902 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L902

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 902,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

Check failure on line 902 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L902

Missing bracket closer.
Raw output
{
  "line": 902,
  "column": 22,
  "severity": "error",
  "message": "Missing bracket closer.",
  "source": "WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser"
}
'ignore-paths' => [],

Check failure on line 903 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L903

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 903,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
'php' => '8.0',

Check failure on line 904 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L904

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 904,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
];

Check failure on line 905 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L905

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 905,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

return array_merge( $defaults, $modules['local-server'] ?? [] );

Check failure on line 907 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L907

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 907,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

Check failure on line 907 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L907

Missing bracket closer.
Raw output
{
  "line": 907,
  "column": 42,
  "severity": "error",
  "message": "Missing bracket closer.",
  "source": "WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser"
}
}

Check failure on line 908 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L908

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 908,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

/**

Check failure on line 910 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L910

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 910,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* Get the configured Elasticsearch version.

Check failure on line 911 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L911

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 911,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
*

Check failure on line 912 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L912

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 912,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* @return int

Check failure on line 913 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L913

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 913,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
*/

Check failure on line 914 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L914

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 914,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
protected function get_elasticsearch_version() : string {

Check failure on line 915 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L915

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 915,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
if ( ! empty( $this->get_config()['elasticsearch'] ) ) {

Check failure on line 916 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L916

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 916,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
return (string) $this->get_config()['elasticsearch'];

Check failure on line 917 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L917

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 917,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 918 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L918

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 918,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

return '7';

Check failure on line 920 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L920

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 920,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 921 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L921

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 921,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

/**

Check failure on line 923 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L923

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 923,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* Check the configured Elasticsearch version in config.

Check failure on line 924 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L924

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 924,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
*

Check failure on line 925 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L925

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 925,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* @param array $versions List of available version numbers.

Check failure on line 926 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L926

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 926,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* @return void

Check failure on line 927 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L927

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 927,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
*/

Check failure on line 928 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L928

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 928,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
protected function check_elasticsearch_version( array $versions ) {

Check failure on line 929 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L929

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 929,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
$versions = array_map( 'strval', $versions );

Check failure on line 930 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L930

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 930,
  "column": 3,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
rsort( $versions );

Check failure on line 931 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L931

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 931,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
if ( in_array( $this->get_elasticsearch_version(), $versions, true ) ) {

Check failure on line 932 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L932

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 932,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
return;

Check failure on line 933 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L933

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 933,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 934 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L934

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 934,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

echo sprintf(

Check failure on line 936 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L936

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 936,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
"The configured elasticsearch version \"%s\" is not supported.\nTry one of the following:\n - %s\n",

Check failure on line 937 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L937

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 937,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
// phpcs:ignore HM.Security.EscapeOutput.OutputNotEscaped

Check failure on line 938 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L938

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 938,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
$this->get_elasticsearch_version(),

Check failure on line 939 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L939

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 939,
  "column": 4,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
// phpcs:ignore HM.Security.EscapeOutput.OutputNotEscaped

Check failure on line 940 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L940

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 940,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
implode( "\n - ", $versions )

Check failure on line 941 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L941

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 941,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
);

Check failure on line 942 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L942

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 942,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
exit( 1 );

Check failure on line 943 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L943

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 943,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 944 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L944

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 944,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}

/**

Check failure on line 946 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L946

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 946,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* Get the main application volume adjusted for sharing config options.

Check failure on line 947 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L947

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 947,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
*

Check failure on line 948 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L948

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 948,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
* @return string

Check failure on line 949 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L949

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 949,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
*/

Check failure on line 950 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L950

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 950,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
protected function get_app_volume() : string {

Check failure on line 951 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L951

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 951,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
if ( ! empty( $this->args['mutagen'] ) && $this->args['mutagen'] === 'on' ) {

Check failure on line 952 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L952

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 952,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
return 'app:/usr/src/app:delegated';

Check failure on line 953 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L953

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 953,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 954 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L954

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 954,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
return "{$this->root_dir}:/usr/src/app:delegated";

Check failure on line 955 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L955

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 955,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 956 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L956

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 956,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}
}

Check failure on line 957 in inc/composer/class-docker-compose-generator.php

View check run for this annotation

HM Linter / hmlinter

inc/composer/class-docker-compose-generator.php#L957

Line indented incorrectly; expected at least 2 tabs, found 0
Raw output
{
  "line": 957,
  "column": 1,
  "severity": "error",
  "message": "Line indented incorrectly; expected at least 2 tabs, found 0",
  "source": "Generic.WhiteSpace.ScopeIndent.Incorrect"
}