src/Knp/MegaMAN/Filter/DevDependency.php 1 location
|
@@ 37-39 (lines=3) @@
|
34 |
|
$json = json_decode(file_get_contents($this->composer), true); |
35 |
|
$deps = []; |
36 |
|
|
37 |
|
if (true === array_key_exists('require-dev', $json)) { |
38 |
|
$deps = array_merge($deps, $json['require-dev']); |
39 |
|
} |
40 |
|
|
41 |
|
$package = $definition['package']; |
42 |
|
$definition['dev'] = array_key_exists($package, $deps); |
src/Knp/MegaMAN/Filter/DirectDependency.php 1 location
|
@@ 41-43 (lines=3) @@
|
38 |
|
$deps = array_merge($deps, $json['require']); |
39 |
|
} |
40 |
|
|
41 |
|
if (true === array_key_exists('require-dev', $json)) { |
42 |
|
$deps = array_merge($deps, $json['require-dev']); |
43 |
|
} |
44 |
|
|
45 |
|
$package = $definition['package']; |
46 |
|
$definition['direct'] = array_key_exists($package, $deps); |