@@ -94,7 +94,8 @@ public function __construct() {
94
94
* : Use redis cache for WordPress.
95
95
*
96
96
* [--vip]
97
- * : Create WordPress VIP GO site using your vip repo which contains wp-content dir. Default it will use skeleton repo.
97
+ * : Create WordPress VIP GO site using your vip repo which contains wp-content dir. Default it will use skeleton
98
+ * repo.
98
99
* ---
99
100
* default: https://github.com/Automattic/vip-go-skeleton.git
100
101
* ---
@@ -266,7 +267,7 @@ public function create( $args, $assoc_args ) {
266
267
$ this ->logger ->debug ( 'assoc_args: ' , empty ( $ assoc_args ) ? array ( 'NULL ' ) : $ assoc_args );
267
268
$ this ->site_data ['site_url ' ] = strtolower ( \EE \Utils \remove_trailing_slash ( $ args [0 ] ) );
268
269
269
- $ mu = \EE \Utils \get_flag_value ( $ assoc_args , 'mu ' );
270
+ $ mu = \EE \Utils \get_flag_value ( $ assoc_args , 'mu ' );
270
271
$ this ->site_data ['app_sub_type ' ] = $ mu ?? 'wp ' ;
271
272
272
273
EE ::log ( 'Starting site creation. ' );
@@ -361,7 +362,7 @@ public function create( $args, $assoc_args ) {
361
362
if ( ! empty ( $ alias_domains ) ) {
362
363
$ comma_seprated_domains = explode ( ', ' , $ alias_domains );
363
364
foreach ( $ comma_seprated_domains as $ domain ) {
364
- $ trimmed_domain = trim ( $ domain );
365
+ $ trimmed_domain = trim ( $ domain );
365
366
$ this ->site_data ['alias_domains ' ] .= $ trimmed_domain . ', ' ;
366
367
}
367
368
}
@@ -375,7 +376,7 @@ public function create( $args, $assoc_args ) {
375
376
$ this ->site_data ['php_version ' ] = 5.6 ;
376
377
} elseif ( 7 === $ floor ) {
377
378
$ this ->site_data ['php_version ' ] = 7.4 ;
378
- $ old_version .= ' yet ' ;
379
+ $ old_version .= ' yet ' ;
379
380
} elseif ( 8 === $ floor ) {
380
381
$ this ->site_data ['php_version ' ] = 8.0 ;
381
382
$ old_version .= ' yet ' ;
@@ -550,6 +551,7 @@ public function info( $args, $assoc_args ) {
550
551
$ site = (array ) Site::find ( $ this ->site_data ['site_url ' ] );
551
552
$ site = reset ( $ site );
552
553
EE ::log ( json_encode ( $ site ) );
554
+
553
555
return ;
554
556
}
555
557
0 commit comments