Skip to content

Commit 674227b

Browse files
authored
Merge branch 'master' into feat/folderRestructure
2 parents 4b6eaac + 1d54d34 commit 674227b

12 files changed

Lines changed: 803 additions & 728 deletions

USAGE.md

Lines changed: 360 additions & 0 deletions
Large diffs are not rendered by default.

USEAGE.md

Lines changed: 0 additions & 221 deletions
This file was deleted.

data-yml.php

Lines changed: 0 additions & 130 deletions
This file was deleted.

data.php

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
<?php
2+
require_once("functions.php");
3+
24
$dimensions = array();
35

46
$files = scandir("data");
5-
$Extra = new ParsedownExtra();
6-
function readYaml($file)
7-
{
8-
return yaml_parse(
9-
file_get_contents($file)
10-
);
11-
}
127

138
$dimensions = array(
149
"Culture and Org." => readYaml("data/CultureandOrg.yml"),
15-
"Build and Deployment" => readYaml("data/BuildandDeployment.yml"),
10+
"Build and Deployment" => readYaml("data/BuildandDeployment.yml#/sub-dimensions"),
1611
"Information Gathering" => readYaml("data/Informationgathering.yml"),
1712
"Implementation" => readYaml("data/Implementation.yml"),
1813
"Test and Verification" => readYaml("data/TestandVerification.yml")
@@ -176,6 +171,14 @@ function isAssoc(array $arr)
176171
return array_keys($arr) !== range(0, count($arr) - 1);
177172
}
178173

174+
175+
function render_risk($risk) {
176+
177+
if (is_array($risk)) {
178+
return implode("\ ", $risk);
179+
}
180+
return $risk;
181+
}
179182
function build_table_tooltip($array, $headerWeight = 2)
180183
{
181184
$mapKnowLedge = array("Very Low (one discipline)", "Low (one discipline)", "Medium (two disciplines)", "High (two disciplines)", "Very High (three or more disciplines)");
@@ -191,7 +194,7 @@ function build_table_tooltip($array, $headerWeight = 2)
191194

192195
$html = "";
193196
$html .= "<h" . $headerWeight . ">Risk and Opportunity</h$headerWeight>";
194-
$html .= "<div><b>" . "Risk" . ":</b> " . $array['risk'] . "</div>";
197+
$html .= "<div><b>" . "Risk" . ":</b> " . render_risk($array['risk']) . "</div>";
195198
$html .= "<div><b>" . "Opportunity" . ":</b> " . $array['measure'] . "</div>";
196199
if (IS_SHOW_EVIDENCE_TODO || $evidenceContent != "TODO")
197200
$html .= "<div><b>" . "Evidence" . ":</b> " . $evidenceContent . "</div>";

0 commit comments

Comments
 (0)