Patch   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A checkAll() 0 7 1
1
<?php
2
/**
3
 * Mage Scan
4
 *
5
 * PHP version 5
6
 *
7
 * @category  MageScan
8
 * @package   MageScan
9
 * @author    Steve Robbins <[email protected]>
10
 * @copyright 2015 Steve Robbins
11
 * @license   http://creativecommons.org/licenses/by/4.0/ CC BY 4.0
12
 * @link      https://github.com/steverobbins/magescan
13
 */
14
15
namespace MageScan\Check;
16
17
use MageScan\Check\Patch\MageReport;
18
19
/**
20
 * Check for installed patches
21
 *
22
 * @category  MageScan
23
 * @package   MageScan
24
 * @author    Steve Robbins <[email protected]>
25
 * @copyright 2015 Steve Robbins
26
 * @license   http://creativecommons.org/licenses/by/4.0/ CC BY 4.0
27
 * @link      https://github.com/steverobbins/magescan
28
 */
29
class Patch extends AbstractCheck
30
{
31
    const PATCHED   = 1;
32
    const UNPATCHED = 2;
33
    const UNKNOWN   = 3;
34
35
    /**
36
     * Check all patches
37
     *
38
     * @param string $url
39
     *
40
     * @return array
41
     */
42
    public function checkAll($url)
43
    {
44
        $mageReport = new MageReport($url);
45
        $mageReport->setRequest($this->request);
46
        $results = $mageReport->checkAll();
47
        return $results;
48
    }
49
}
50