Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ <h4>Compliant solution</h4>
release(MESSAGE);
}
</pre>
<pre data-diff-id="1" data-diff-type="compliant">
function run($message) {
prepare($message); // Compliant - the duplicated string literal is turned into a parameter
execute($message);
release($message);
}

run('this is no duplicate');
</pre>
<pre>
$severity = $request-&gt;getParam('severity-score');
</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
],
"OWASP Top 10 2021": [
"A1"
],
"CWE": [
547
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ <h3>Compliant solution</h3>
$dividend = 5;

$result = $this-&gt;divide($divisor, $dividend); // Compliant
}{code}
h4. &nbsp;
}
</pre>

Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
],
"PCI DSS 4.0": [
"6.2.4"
],
"CWE": [
598
]
},
"quickfix": "unknown"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
],
"PCI DSS 4.0": [
"6.2.4"
],
"CWE": [
16
]
},
"quickfix": "unknown"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ <h3>Compliant solution</h3>

class SomeCustomException extends Exception {}

throw new SomeCustomException(); // Compliant{code}
throw new SomeCustomException(); // Compliant
</pre>

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ <h3>Compliant solution</h3>
try {
foo();
} catch (SomeCustomException $e) { // Compliant
}{code}
&nbsp;
}
</pre>

Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
],
"OWASP Top 10 2021": [
"A5"
],
"CWE": [
1352
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
],
"PCI DSS 4.0": [
"6.2.4"
],
"CWE": [
16,
306,
400
]
}
}
2 changes: 1 addition & 1 deletion sonarpedia.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"languages": [
"PHP"
],
"latest-update": "2025-11-20T14:39:03.052241343Z",
"latest-update": "2025-12-29T05:15:35.295716501Z",
"options": {
"no-language-in-filenames": true,
"preserve-filenames": true
Expand Down