Issue Bug Closed

#41719Bad comparison for strings

Dmitry Dulepov 10/08/12, 14:59 updated 10/23/17, 22:14

Description

ResourceStorage:

        if (in_array($action, array('read'))) {

There is no need for in_array() call on this line and below. A simple string comparison is faster and more readable in this case.

Function checkFileActionPermission().

Reviews 1