src/Propel/Runtime/Adapter/Pdo/OracleAdapter.php
Method bindValue
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function bindValue(StatementInterface $stmt, string $parameter, $value, ColumnMap $cMap, ?int $position = null): bool
Function initConnection
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
public function initConnection(ConnectionInterface $con, array $settings): void
{
$con->exec("ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD'");
$con->exec("ALTER SESSION SET NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS'");
if (isset($settings['queries']) && is_array($settings['queries'])) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function applyLimit
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public function applyLimit(string &$sql, int $offset, int $limit, ?Criteria $criteria = null): void
{
$params = [];
if ($criteria && $criteria->needsSelectAliases()) {
$crit = clone $criteria;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"