Skip to content

Commit

Permalink
Apply cfformat changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano authored and github-actions[bot] committed Sep 11, 2024
1 parent 603c0b1 commit e064560
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions system/TestBox.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ component accessors="true" {
property name="bundlesPattern";

// Static Variables
variables.TESTBOX_PATH = expandPath( "/testbox" );
variables.IS_BOXLANG = server.keyExists( "boxlang" );
variables.IS_CLI = !getFunctionList().keyExists( "getPageContext" );
variables.DEFAULT_REPORTER = variables.IS_CLI ? "text" : "simple";
variables.TESTBOX_PATH = expandPath( "/testbox" );
variables.IS_BOXLANG = server.keyExists( "boxlang" );
variables.IS_CLI = !getFunctionList().keyExists( "getPageContext" );
variables.DEFAULT_REPORTER = variables.IS_CLI ? "text" : "simple";
variables.DEFAULT_BUNDLES_PATTERN = "*.bx|*.cfc";
// TestBox Info : Modified by the build process.
variables.VERSION = "@build.version@[email protected]@";
variables.CODENAME = "";
variables.VERSION = "@build.version@[email protected]@";
variables.CODENAME = "";

/**
* Constructor
Expand Down
4 changes: 2 additions & 2 deletions system/reports/BaseReporter.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ component {
*/
function getPageContextResponse(){
// If running in CLI mode, we don't have a page context
if( !getFunctionList().keyExists( "pageContext" ) ){
if ( !getFunctionList().keyExists( "pageContext" ) ) {
return {
"setContentType" : function(){
// do nothing
Expand All @@ -38,7 +38,7 @@ component {
*/
function resetHTMLResponse(){
// If running in CLI mode, we don't have a page context
if( !getFunctionList().keyExists( "pageContext" ) ){
if ( !getFunctionList().keyExists( "pageContext" ) ) {
return;
}
// reset cfhtmlhead from integration tests
Expand Down

0 comments on commit e064560

Please sign in to comment.