From f53243556995bb43259a821f05dab47728daa87a Mon Sep 17 00:00:00 2001 From: lmajano Date: Thu, 14 Dec 2023 14:10:49 +0000 Subject: [PATCH] Apply cfformat changes --- build/Build.cfc | 6 +++--- commands/contentbox/install.cfc | 24 +++++++++++++----------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/build/Build.cfc b/build/Build.cfc index 3165411..de02f4b 100644 --- a/build/Build.cfc +++ b/build/Build.cfc @@ -38,7 +38,7 @@ component { } ); // Create Project Dependency Mappings - //fileSystemUtil.createMapping( "@module_name@", variables.cwd ); + // fileSystemUtil.createMapping( "@module_name@", variables.cwd ); return this; } @@ -299,9 +299,9 @@ component { */ private function ensureExportDir( required projectName, - version = "1.0.0" + version = "1.0.0" ){ - if ( structKeyExists( variables, "exportsDir" ) && directoryExists( variables.exportsDir ) ){ + if ( structKeyExists( variables, "exportsDir" ) && directoryExists( variables.exportsDir ) ) { return; } // Prepare exports directory diff --git a/commands/contentbox/install.cfc b/commands/contentbox/install.cfc index 60af712..a3d35de 100644 --- a/commands/contentbox/install.cfc +++ b/commands/contentbox/install.cfc @@ -110,8 +110,10 @@ component { // ContentBox 5 ONLY, as it uses ORM DDL, 6 uses migrations // MySQL 8 Bug on Lucee - if ( arguments.contentboxVersion eq 5 && arguments.cfmlEngine.findNoCase( "lucee" ) && arguments.databaseType == "MySQL8" ) { - contentBox5LuceeBug( installDir); + if ( + arguments.contentboxVersion eq 5 && arguments.cfmlEngine.findNoCase( "lucee" ) && arguments.databaseType == "MySQL8" + ) { + contentBox5LuceeBug( installDir ); } // Seed the right CFML Engine to deploy @@ -168,17 +170,17 @@ component { private function startupServer( required cfmlEngine ){ variables.print - .line() - .blueLine( "Please wait while we startup your CommandBox server..." ) - .toConsole(); - command( "server start" ).run(); - sleep( 5000 ); + .line() + .blueLine( "Please wait while we startup your CommandBox server..." ) + .toConsole(); + command( "server start" ).run(); + sleep( 5000 ); - variables.print.greenLine( "√ ContentBox server started, check out the details below:" ); - command( "server info" ).run(); + variables.print.greenLine( "√ ContentBox server started, check out the details below:" ); + command( "server info" ).run(); - variables.print.greenLine( "√ Opening a browser for you to continue with the web installer..." ); - command( "server open" ).run(); + variables.print.greenLine( "√ Opening a browser for you to continue with the web installer..." ); + command( "server open" ).run(); } /**