src/Graviton/RestBundle/Listener/WriteLockListener.php
private function doRandomDelay($url)
    {
        return array_reduce(
            $this->randomWaitUrls,
            function ($carry, $value) use ($url) {
                if ($carry !== true) {
                    return (strpos($url, $value) === 0);
                } else {
                    return $carry;
                }
            }
        );
    }
private function doRandomDelay($url)
    {
        return array_reduce(
            $this->randomWaitUrls,
            function ($carry, $value) use ($url) {
                if ($carry !== true) {
                    return (strpos($url, $value) === 0);
                } else {
                    return $carry;
                }
            }
        );
    }
private function doRandomDelay ( $ url ) { return array_reduce ( $ this -> randomWaitUrls , function ( $ carry , $ value ) use ( $ url ) { if ( $ carry !== true ) { return ( strpos ( $ url , $ value ) === 0 ) ; } else { return $ carry ; } } ) ; }
if we should randomly wait on current request

@param string $url the current url

@return boolean true if yes, false otherwise
if we should randomly wait on current request