MageScan\Check\Patch\MageReport::checkAll PHP Метод

checkAll() публичный Метод

Check all patches
public checkAll ( ) : array
Результат array
    public function checkAll()
    {
        $results = [];
        $request = new Request(self::BASE_URL);
        $paths = $this->patches;
        array_walk($paths, function (&$value) {
            $value = $value . '?s=' . $this->url;
        });
        $responses = $request->getMany($paths);
        foreach ($responses as $path => $response) {
            $results[$this->getPatchName($path)] = $this->parseResponse($response);
        }
        return $results;
    }

Usage Example

Пример #1
0
 /**
  * Check all patches
  *
  * @param string $url
  *
  * @return array
  */
 public function checkAll($url)
 {
     $mageReport = new MageReport($url);
     $mageReport->setRequest($this->request);
     $results = $mageReport->checkAll();
     return $results;
 }
All Usage Examples Of MageScan\Check\Patch\MageReport::checkAll