Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replacing array_key_exists with isset() for performance improvements.

  • Loading branch information...
commit 436cccfbb46304aaf0c5aee1812d505beea700c4 1 parent d4a21a1
@daschl daschl authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/rules/IncludeAndRequireWithoutBrackets.php
View
2  test/rules/IncludeAndRequireWithoutBrackets.php
@@ -21,7 +21,7 @@ public function apply($testable) {
$tokens = $testable->tokens();
foreach ($tokens as $key => $token) {
- if(array_key_exists($token['name'], $this->_inspectableTokens)) {
+ if(isset($this->_inspectableTokens[$token['name']])) {
for ($i = 1; $i <= 2; $i++) {
if ($tokens[$key+$i]['name'] == 'T_WHITESPACE') {
continue;

1 comment on commit 436cccf

@daschl
Collaborator

Down to 40.

Please sign in to comment.
Something went wrong with that request. Please try again.