Skip to content

Commit 504c6ea

Browse files
committed
Fix code indentation
1 parent f1b8c54 commit 504c6ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

migrations/container/20181225063950_service-command_change_global_service_container_names.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ public function up() {
5353
$global_compose_file_path = EE_ROOT_DIR . '/services/docker-compose.yml';
5454
$global_compose_file_backup_path = EE_BACKUP_DIR . '/services/docker-compose.yml.backup';
5555

56-
$old_containers = ['ee-global-nginx-proxy', 'ee-global-redis', 'ee-global-db'];
56+
$old_containers = [ 'ee-global-nginx-proxy', 'ee-global-redis', 'ee-global-db' ];
5757

5858
$running_containers = [];
59-
foreach ( $old_containers as $container) {
59+
foreach ( $old_containers as $container ) {
6060
if ( 'running' === \EE_DOCKER::container_status( $container ) ) {
6161
$running_containers[] = $container;
6262
}
@@ -145,7 +145,7 @@ public function down() {
145145
/**
146146
* Restore docker-compose.yml and start old ee-containers.
147147
*
148-
* @param $source string path of source file.
148+
* @param $source string path of source file.
149149
* @param $destination string path of destination.
150150
*/
151151
public static function restore_yml_file( $source, $destination ) {
@@ -211,7 +211,7 @@ public static function update_cache_host( $site_info ) {
211211
$update_hostname_constant = "docker-compose exec --user='www-data' php wp config set RT_WP_NGINX_HELPER_REDIS_HOSTNAME global-redis --add=true --type=constant";
212212
$redis_plugin_constant = 'docker-compose exec --user=\'www-data\' php wp config set --type=variable redis_server "array(\'host\'=> \'global-redis\',\'port\'=> 6379,)" --raw';
213213

214-
if( ! chdir( $site_info->site_fs_path ) ) {
214+
if ( ! chdir( $site_info->site_fs_path ) ) {
215215
throw new \Exception( sprintf( '%s path not exists', $site_info->site_fs_path ) );
216216
}
217217

0 commit comments

Comments
 (0)