Skip to content

Commit

Permalink
Revert "Refactor foreach loop into in_array call (#989)" (#1112)
Browse files Browse the repository at this point in the history
This reverts commit a63866a.
  • Loading branch information
mrook committed Aug 6, 2019
1 parent e2f7581 commit 045f45f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion classes/phing/tasks/ext/ExportPropertiesTask.php
Expand Up @@ -122,6 +122,12 @@ public function main()
*/
protected function isDisallowedPropery($propertyName)
{
return in_array(substr($propertyName, 0, strlen($property)), $this->_disallowedPropertyPrefixes);
foreach ($this->_disallowedPropertyPrefixes as $property) {
if (substr($propertyName, 0, strlen($property)) == $property) {
return true;
}
}

return false;
}
}

0 comments on commit 045f45f

Please sign in to comment.