Replaced in_array by contains

This commit is contained in:
Alejandro Celaya
2018-10-05 18:52:42 +02:00
parent ebf2e459e8
commit e55dbef2fc
6 changed files with 45 additions and 27 deletions

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace Shlinkio\Shlink\Common;
use function getenv;
use function in_array;
use function strtolower;
use function trim;
@@ -43,5 +44,5 @@ function env($key, $default = null)
function contains($needle, array $haystack)
{
return \in_array($needle, $haystack, true);
return in_array($needle, $haystack, true);
}