Skip to content

Commit

Permalink
Use all caps for boolean TRUE and FALSE.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Nov 6, 2014
1 parent 1084dcd commit 2e10b07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion commands/core/core.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ function drush_core_version() {
*/
function drush_core_execute() {
$result = TRUE;
$escape = drush_get_option('escape', true);
$escape = drush_get_option('escape', TRUE);
// Get all of the args and options that appear after the command name.
$args = drush_get_original_cli_args_and_options();
if ($escape) {
Expand Down
12 changes: 6 additions & 6 deletions includes/command.inc
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ function drush_parse_args() {
if (strlen($opt) > 2 && $opt{1} != "-") {
// Each char becomes a key of its own.
for ($j = 1; $j < strlen($opt); $j++) {
$options[substr($opt, $j, 1)] = true;
$options[substr($opt, $j, 1)] = TRUE;
}
}
// Do we have a longopt (starting with '--')?
Expand All @@ -764,7 +764,7 @@ function drush_parse_args() {
$options[substr($opt, 2, $pos - 2)] = substr($opt, $pos + 1);
}
else {
$options[substr($opt, 2)] = true;
$options[substr($opt, 2)] = TRUE;
}
}
else {
Expand All @@ -777,7 +777,7 @@ function drush_parse_args() {
$i++;
}
else {
$options[$opt] = true;
$options[$opt] = TRUE;
}
}
}
Expand Down Expand Up @@ -1720,7 +1720,7 @@ function drush_enforce_requirement_core(&$command) {
* core-execute and pass alias value along with rest of CLI arguments.
*/
function drush_shell_alias_replace() {
$escape = true;
$escape = TRUE;
$args = drush_get_arguments();
$argv = drush_get_context('argv');
$first = current($args);
Expand Down Expand Up @@ -1764,7 +1764,7 @@ function drush_shell_alias_replace() {
if (substr($alias_value, 0, 1) == '!') {
$alias_value = ltrim($alias_value, '!');
$alias_value = array('core-execute', $alias_value);
$escape = false;
$escape = FALSE;
}
else {
// Respect quoting. See http://stackoverflow.com/questions/2202435/php-ex
Expand All @@ -1775,7 +1775,7 @@ function drush_shell_alias_replace() {
$pos = array_search($first, $argv);
array_splice($argv, $pos, 1, $alias_value);
if (!$escape) {
drush_set_option('escape', false);
drush_set_option('escape', FALSE);
}
drush_set_context('argv', $argv);
drush_parse_args();
Expand Down

0 comments on commit 2e10b07

Please sign in to comment.