for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ShiftOneLabs\LaravelSqsFifoQueue\Support;
use Illuminate\Support\Arr as BaseArr;
class Arr
{
/**
* Get a subset of the items from the given array.
*
* @param array $array
* @param array|string $keys
* @return array
*/
public static function only($array, $keys)
return class_exists(BaseArr::class) ? BaseArr::only($array, $keys) : array_only($array, $keys);
array_only
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return class_exists(BaseArr::class) ? BaseArr::only($array, $keys) : /** @scrutinizer ignore-call */ array_only($array, $keys);
}
* Get a value from the array, and remove it.
* @param string $key
* @param mixed $default
* @return mixed
public static function pull(&$array, $key, $default = null)
return class_exists(BaseArr::class) ? BaseArr::pull($array, $key, $default) : array_pull($array, $key, $default);
array_pull
return class_exists(BaseArr::class) ? BaseArr::pull($array, $key, $default) : /** @scrutinizer ignore-call */ array_pull($array, $key, $default);
* Get an item from an array using "dot" notation.
* @param \ArrayAccess|array $array
* @param string|int $key
public static function get($array, $key, $default = null)
return class_exists(BaseArr::class) ? BaseArr::get($array, $key, $default) : array_get($array, $key, $default);
array_get
return class_exists(BaseArr::class) ? BaseArr::get($array, $key, $default) : /** @scrutinizer ignore-call */ array_get($array, $key, $default);