public function checkAll(array $domains)
    {
        return When::map($domains, array($this, 'check'))
            ->then(function ($statuses) use ($domains) {
                ksort($statuses);
                return array_combine($domains, $statuses);
            });

    }
public function checkAll(array $domains)
    {
        return When::map($domains, array($this, 'check'))
            ->then(function ($statuses) use ($domains) {
                ksort($statuses);
                return array_combine($domains, $statuses);
            });

    }
public function checkAll ( array $ domains ) { return When :: map ( $ domains , array ( $ this , 'check' ) ) -> then ( function ( $ statuses ) use ( $ domains ) { ksort ( $ statuses ) ; return array_combine ( $ domains , $ statuses ) ; } ) ; }
Checks domain availability of multiple domains.

@param array $domains
Checks domain availability of multiple domains .