function _drush_core_cli_get_php_keywords

8.0.x cli.drush.inc _drush_core_cli_get_php_keywords()
master cli.drush.inc _drush_core_cli_get_php_keywords()

Returns a list of PHP keywords.

This will act as a blacklist for command and alias names.

Return value

array

1 call to _drush_core_cli_get_php_keywords()
_drush_core_cli_get_commands in commands/core/cli.drush.inc
Returns a filtered list of Drush commands used for CLI commands.

File

commands/core/cli.drush.inc, line 143

Code

function _drush_core_cli_get_php_keywords() {
  return ['__halt_compiler' 'abstract' 'and' 'array' 'as' 'break' 'callable' 'case' 'catch' 'class' 'clone' 'const' 'continue' 'declare' 'default' 'die' 'do' 'echo' 'else' 'elseif' 'empty' 'enddeclare' 'endfor' 'endforeach' 'endif' 'endswitch' 'endwhile' 'eval' 'exit' 'extends' 'final' 'for' 'foreach' 'function' 'global' 'goto' 'if' 'implements' 'include' 'include_once' 'instanceof' 'insteadof' 'interface' 'isset' 'list' 'namespace' 'new' 'or' 'print' 'private' 'protected' 'public' 'require' 'require_once' 'return' 'static' 'switch' 'throw' 'trait' 'try' 'unset' 'use' 'var' 'while' 'xor'];
}