-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add the BLOCKERA_DATA_STREAM_OFF constant
- Loading branch information
1 parent
1b9119e
commit 1a1f615
Showing
10 changed files
with
59 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
APP_MODE=production | ||
DATA_STREAM_SERVER_URL=http://127.0.0.1:8000/v1 | ||
BLOCKERA_DATA_STREAM_OFF=false | ||
WP_TESTS_DIR=/Users/User/Desktop/workflow/wordpress-develop/tests/phpunit/ | ||
|
||
DB=wp_tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
<?php | ||
|
||
if ( ! function_exists( 'blockera_ds_is_off' ) ) { | ||
|
||
/** | ||
* Check the blockera data stream system is off? | ||
* | ||
* @return bool true on success, false on otherwise! | ||
*/ | ||
function blockera_ds_is_off(): bool { | ||
|
||
if ( isset( $_ENV['BLOCKERA_DATA_STREAM_OFF'] ) && 'false' !== $_ENV['BLOCKERA_DATA_STREAM_OFF'] ) { | ||
|
||
return true; | ||
} | ||
|
||
if ( ! defined( 'BLOCKERA_DATA_STREAM_OFF' ) ) { | ||
|
||
return false; | ||
} | ||
|
||
return BLOCKERA_DATA_STREAM_OFF; | ||
} | ||
} |