2018-01-14 18:09:40 +01:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2018-11-06 03:57:36 +01:00
|
|
|
namespace Psalm\Internal\Analyzer\Statements\Expression;
|
2018-01-14 18:09:40 +01:00
|
|
|
|
|
|
|
use PhpParser;
|
2021-06-08 04:55:21 +02:00
|
|
|
use Psalm\CodeLocation;
|
|
|
|
use Psalm\Context;
|
2022-02-12 20:50:06 +01:00
|
|
|
use Psalm\Exception\ComplicatedExpressionException;
|
2021-12-03 20:29:06 +01:00
|
|
|
use Psalm\Exception\ScopeAnalysisException;
|
2021-06-08 04:55:21 +02:00
|
|
|
use Psalm\Internal\Algebra;
|
2020-11-03 22:15:44 +01:00
|
|
|
use Psalm\Internal\Algebra\FormulaGenerator;
|
2020-09-03 02:08:09 +02:00
|
|
|
use Psalm\Internal\Analyzer\AlgebraAnalyzer;
|
2020-11-07 03:01:17 +01:00
|
|
|
use Psalm\Internal\Analyzer\Statements\Block\IfConditionalAnalyzer;
|
2021-06-08 04:55:21 +02:00
|
|
|
use Psalm\Internal\Analyzer\Statements\ExpressionAnalyzer;
|
2018-11-06 03:57:36 +01:00
|
|
|
use Psalm\Internal\Analyzer\StatementsAnalyzer;
|
2021-12-03 20:11:20 +01:00
|
|
|
use Psalm\Internal\Clause;
|
|
|
|
use Psalm\Internal\Scope\IfScope;
|
2021-06-08 04:55:21 +02:00
|
|
|
use Psalm\Internal\Type\AssertionReconciler;
|
2022-02-12 20:50:06 +01:00
|
|
|
use Psalm\Node\Expr\VirtualBooleanNot;
|
2022-01-20 23:33:06 +01:00
|
|
|
use Psalm\Storage\Assertion\Truthy;
|
2018-01-14 18:09:40 +01:00
|
|
|
use Psalm\Type;
|
|
|
|
use Psalm\Type\Reconciler;
|
2021-06-08 04:55:21 +02:00
|
|
|
|
2021-12-03 21:07:25 +01:00
|
|
|
use function array_diff;
|
2019-06-26 22:52:29 +02:00
|
|
|
use function array_filter;
|
2021-09-04 20:22:06 +02:00
|
|
|
use function array_intersect;
|
2021-10-23 17:30:34 +02:00
|
|
|
use function array_intersect_key;
|
2019-06-26 22:52:29 +02:00
|
|
|
use function array_keys;
|
2021-06-08 04:55:21 +02:00
|
|
|
use function array_map;
|
|
|
|
use function array_merge;
|
|
|
|
use function array_values;
|
2022-02-12 20:50:06 +01:00
|
|
|
use function count;
|
2021-12-03 21:07:25 +01:00
|
|
|
use function in_array;
|
2019-06-26 22:52:29 +02:00
|
|
|
use function preg_match;
|
|
|
|
use function preg_quote;
|
2021-12-03 21:07:25 +01:00
|
|
|
use function spl_object_id;
|
2018-01-14 18:09:40 +01:00
|
|
|
|
2018-12-02 00:37:49 +01:00
|
|
|
/**
|
|
|
|
* @internal
|
|
|
|
*/
|
2018-11-06 03:57:36 +01:00
|
|
|
class TernaryAnalyzer
|
2018-01-14 18:09:40 +01:00
|
|
|
{
|
|
|
|
public static function analyze(
|
2018-11-11 18:01:14 +01:00
|
|
|
StatementsAnalyzer $statements_analyzer,
|
2018-01-14 18:09:40 +01:00
|
|
|
PhpParser\Node\Expr\Ternary $stmt,
|
|
|
|
Context $context
|
2021-12-05 18:51:26 +01:00
|
|
|
): bool {
|
2019-12-06 18:47:27 +01:00
|
|
|
$codebase = $statements_analyzer->getCodebase();
|
2019-05-02 19:43:18 +02:00
|
|
|
|
2021-12-03 20:11:20 +01:00
|
|
|
$if_scope = new IfScope();
|
2019-05-02 19:43:18 +02:00
|
|
|
|
2019-12-06 18:47:27 +01:00
|
|
|
try {
|
2020-11-07 03:01:17 +01:00
|
|
|
$if_conditional_scope = IfConditionalAnalyzer::analyze(
|
2019-12-06 18:47:27 +01:00
|
|
|
$statements_analyzer,
|
|
|
|
$stmt->cond,
|
|
|
|
$context,
|
|
|
|
$codebase,
|
|
|
|
$if_scope,
|
|
|
|
$context->branch_point ?: (int) $stmt->getAttribute('startFilePos')
|
2019-05-02 19:43:18 +02:00
|
|
|
);
|
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
// this is the context for stuff that happens within the first operand of the ternary
|
2019-12-06 18:47:27 +01:00
|
|
|
$if_context = $if_conditional_scope->if_context;
|
2019-05-02 19:43:18 +02:00
|
|
|
|
2019-12-06 18:47:27 +01:00
|
|
|
$cond_referenced_var_ids = $if_conditional_scope->cond_referenced_var_ids;
|
2020-11-07 06:58:20 +01:00
|
|
|
$assigned_in_conditional_var_ids = $if_conditional_scope->assigned_in_conditional_var_ids;
|
2021-12-03 20:29:06 +01:00
|
|
|
} catch (ScopeAnalysisException $e) {
|
2019-12-06 18:47:27 +01:00
|
|
|
return false;
|
2019-05-02 19:43:18 +02:00
|
|
|
}
|
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
$cond_object_id = spl_object_id($stmt->cond);
|
2020-08-26 21:35:29 +02:00
|
|
|
|
2020-11-03 22:15:44 +01:00
|
|
|
$if_clauses = FormulaGenerator::getFormula(
|
2022-02-12 20:50:06 +01:00
|
|
|
$cond_object_id,
|
|
|
|
$cond_object_id,
|
2018-01-14 18:09:40 +01:00
|
|
|
$stmt->cond,
|
2019-12-28 21:56:19 +01:00
|
|
|
$context->self,
|
2018-11-11 18:01:14 +01:00
|
|
|
$statements_analyzer,
|
2018-11-06 03:57:36 +01:00
|
|
|
$codebase
|
2018-01-14 18:09:40 +01:00
|
|
|
);
|
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
if (count($if_clauses) > 200) {
|
|
|
|
$if_clauses = [];
|
|
|
|
}
|
|
|
|
|
2018-08-24 22:48:14 +02:00
|
|
|
$mixed_var_ids = [];
|
2018-05-31 02:54:03 +02:00
|
|
|
|
|
|
|
foreach ($context->vars_in_scope as $var_id => $type) {
|
2018-12-08 19:18:55 +01:00
|
|
|
if ($type->hasMixed()) {
|
2018-05-31 02:54:03 +02:00
|
|
|
$mixed_var_ids[] = $var_id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach ($context->vars_possibly_in_scope as $var_id => $_) {
|
|
|
|
if (!isset($context->vars_in_scope[$var_id])) {
|
|
|
|
$mixed_var_ids[] = $var_id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-26 13:48:38 +01:00
|
|
|
$if_clauses = array_map(
|
2022-04-09 11:58:26 +02:00
|
|
|
static function (Clause $c) use ($mixed_var_ids, $cond_object_id): Clause {
|
2021-11-26 13:48:38 +01:00
|
|
|
$keys = array_keys($c->possibilities);
|
2018-05-31 02:54:03 +02:00
|
|
|
|
2021-12-03 21:07:25 +01:00
|
|
|
$mixed_var_ids = array_diff($mixed_var_ids, $keys);
|
2019-11-12 16:12:07 +01:00
|
|
|
|
2021-11-26 13:48:38 +01:00
|
|
|
foreach ($keys as $key) {
|
|
|
|
foreach ($mixed_var_ids as $mixed_var_id) {
|
|
|
|
if (preg_match('/^' . preg_quote($mixed_var_id, '/') . '(\[|-)/', $key)) {
|
2022-02-12 20:50:06 +01:00
|
|
|
return new Clause([], $cond_object_id, $cond_object_id, true);
|
2018-05-31 02:54:03 +02:00
|
|
|
}
|
|
|
|
}
|
2021-11-26 13:48:38 +01:00
|
|
|
}
|
2018-05-31 02:54:03 +02:00
|
|
|
|
2021-11-26 13:48:38 +01:00
|
|
|
return $c;
|
|
|
|
},
|
|
|
|
$if_clauses
|
2018-05-31 02:54:03 +02:00
|
|
|
);
|
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
$entry_clauses = $context->clauses;
|
|
|
|
|
2020-09-03 02:08:09 +02:00
|
|
|
// this will see whether any of the clauses in set A conflict with the clauses in set B
|
|
|
|
AlgebraAnalyzer::checkForParadox(
|
|
|
|
$context->clauses,
|
|
|
|
$if_clauses,
|
|
|
|
$statements_analyzer,
|
|
|
|
$stmt->cond,
|
2020-11-07 06:58:20 +01:00
|
|
|
$assigned_in_conditional_var_ids
|
2020-09-03 02:08:09 +02:00
|
|
|
);
|
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
$if_clauses = Algebra::simplifyCNF($if_clauses);
|
|
|
|
|
|
|
|
$ternary_context_clauses = array_merge($entry_clauses, $if_clauses);
|
2019-12-08 06:49:34 +01:00
|
|
|
|
|
|
|
if ($if_context->reconciled_expression_clauses) {
|
|
|
|
$reconciled_expression_clauses = $if_context->reconciled_expression_clauses;
|
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
$ternary_context_clauses = array_values(
|
2019-12-08 06:49:34 +01:00
|
|
|
array_filter(
|
2022-02-12 20:50:06 +01:00
|
|
|
$ternary_context_clauses,
|
2022-04-09 11:58:26 +02:00
|
|
|
static fn(Clause $c): bool => !in_array($c->hash, $reconciled_expression_clauses)
|
2019-12-08 06:49:34 +01:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
if (count($if_context->clauses) === 1
|
|
|
|
&& $if_context->clauses[0]->wedge
|
|
|
|
&& !$if_context->clauses[0]->possibilities
|
|
|
|
) {
|
|
|
|
$if_context->clauses = [];
|
|
|
|
$if_context->reconciled_expression_clauses = [];
|
|
|
|
}
|
|
|
|
}
|
2018-01-14 18:09:40 +01:00
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
try {
|
|
|
|
$if_scope->negated_clauses = Algebra::negateFormula($if_clauses);
|
|
|
|
} catch (ComplicatedExpressionException $e) {
|
|
|
|
try {
|
|
|
|
$if_scope->negated_clauses = FormulaGenerator::getFormula(
|
|
|
|
$cond_object_id,
|
|
|
|
$cond_object_id,
|
|
|
|
new VirtualBooleanNot($stmt->cond),
|
|
|
|
$context->self,
|
|
|
|
$statements_analyzer,
|
|
|
|
$codebase,
|
|
|
|
false
|
|
|
|
);
|
|
|
|
} catch (ComplicatedExpressionException $e) {
|
|
|
|
$if_scope->negated_clauses = [];
|
|
|
|
}
|
|
|
|
}
|
2018-01-14 18:09:40 +01:00
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
$if_scope->negated_types = Algebra::getTruthsFromFormula(
|
2018-05-07 07:26:06 +02:00
|
|
|
Algebra::simplifyCNF(
|
2022-02-12 20:50:06 +01:00
|
|
|
array_merge($context->clauses, $if_scope->negated_clauses)
|
2018-05-06 02:52:10 +02:00
|
|
|
)
|
|
|
|
);
|
2018-01-14 18:09:40 +01:00
|
|
|
|
2019-12-08 22:35:56 +01:00
|
|
|
$active_if_types = [];
|
|
|
|
|
|
|
|
$reconcilable_if_types = Algebra::getTruthsFromFormula(
|
2022-02-12 20:50:06 +01:00
|
|
|
$ternary_context_clauses,
|
|
|
|
$cond_object_id,
|
2019-12-08 22:35:56 +01:00
|
|
|
$cond_referenced_var_ids,
|
|
|
|
$active_if_types
|
|
|
|
);
|
2018-01-14 18:09:40 +01:00
|
|
|
|
|
|
|
$changed_var_ids = [];
|
|
|
|
|
2018-12-17 21:23:56 +01:00
|
|
|
if ($reconcilable_if_types) {
|
2019-12-06 18:47:27 +01:00
|
|
|
$if_vars_in_scope_reconciled = Reconciler::reconcileKeyedTypes(
|
2018-12-17 21:23:56 +01:00
|
|
|
$reconcilable_if_types,
|
2019-12-08 22:35:56 +01:00
|
|
|
$active_if_types,
|
2019-12-06 18:47:27 +01:00
|
|
|
$if_context->vars_in_scope,
|
2022-01-11 00:45:29 +01:00
|
|
|
$if_context->references_in_scope,
|
2018-12-17 21:23:56 +01:00
|
|
|
$changed_var_ids,
|
2019-05-02 19:43:18 +02:00
|
|
|
$cond_referenced_var_ids,
|
2018-12-17 21:23:56 +01:00
|
|
|
$statements_analyzer,
|
2019-12-29 00:37:55 +01:00
|
|
|
$statements_analyzer->getTemplateTypeMap() ?: [],
|
2019-12-06 18:47:27 +01:00
|
|
|
$if_context->inside_loop,
|
2018-12-17 21:23:56 +01:00
|
|
|
new CodeLocation($statements_analyzer->getSource(), $stmt->cond)
|
|
|
|
);
|
|
|
|
|
2019-12-06 18:47:27 +01:00
|
|
|
$if_context->vars_in_scope = $if_vars_in_scope_reconciled;
|
2018-12-17 21:23:56 +01:00
|
|
|
}
|
2018-01-14 18:09:40 +01:00
|
|
|
|
|
|
|
$t_else_context = clone $context;
|
|
|
|
|
|
|
|
if ($stmt->if) {
|
2019-12-06 18:47:27 +01:00
|
|
|
if (ExpressionAnalyzer::analyze($statements_analyzer, $stmt->if, $if_context) === false) {
|
2018-01-14 18:09:40 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-03-15 23:40:31 +01:00
|
|
|
$context->cond_referenced_var_ids = array_merge(
|
|
|
|
$context->cond_referenced_var_ids,
|
|
|
|
$if_context->cond_referenced_var_ids
|
2018-01-14 18:09:40 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-09-03 02:08:09 +02:00
|
|
|
$t_else_context->clauses = Algebra::simplifyCNF(
|
|
|
|
array_merge(
|
|
|
|
$t_else_context->clauses,
|
2022-02-12 20:50:06 +01:00
|
|
|
$if_scope->negated_clauses
|
2020-09-03 02:08:09 +02:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
$changed_var_ids = [];
|
2020-09-03 02:08:09 +02:00
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
if ($if_scope->negated_types) {
|
|
|
|
$else_vars_reconciled = Reconciler::reconcileKeyedTypes(
|
|
|
|
$if_scope->negated_types,
|
|
|
|
$if_scope->negated_types,
|
2018-01-14 18:09:40 +01:00
|
|
|
$t_else_context->vars_in_scope,
|
2022-01-11 00:45:29 +01:00
|
|
|
$t_else_context->references_in_scope,
|
2018-01-14 18:09:40 +01:00
|
|
|
$changed_var_ids,
|
2019-05-02 19:43:18 +02:00
|
|
|
$cond_referenced_var_ids,
|
2018-11-11 18:01:14 +01:00
|
|
|
$statements_analyzer,
|
2019-12-29 00:37:55 +01:00
|
|
|
$statements_analyzer->getTemplateTypeMap() ?: [],
|
2018-12-08 19:18:55 +01:00
|
|
|
$t_else_context->inside_loop,
|
2018-11-14 19:44:20 +01:00
|
|
|
new CodeLocation($statements_analyzer->getSource(), $stmt->else)
|
2018-01-14 18:09:40 +01:00
|
|
|
);
|
|
|
|
|
2022-02-12 20:50:06 +01:00
|
|
|
$t_else_context->vars_in_scope = $else_vars_reconciled;
|
2020-09-03 02:08:09 +02:00
|
|
|
|
|
|
|
$t_else_context->clauses = Context::removeReconciledClauses($t_else_context->clauses, $changed_var_ids)[0];
|
2018-01-14 18:09:40 +01:00
|
|
|
}
|
|
|
|
|
2018-11-11 18:01:14 +01:00
|
|
|
if (ExpressionAnalyzer::analyze($statements_analyzer, $stmt->else, $t_else_context) === false) {
|
2018-01-14 18:09:40 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-10-23 17:30:34 +02:00
|
|
|
$assign_var_ifs = $if_context->assigned_var_ids;
|
|
|
|
$assign_var_else = $t_else_context->assigned_var_ids;
|
|
|
|
$assign_all = array_intersect_key($assign_var_ifs, $assign_var_else);
|
|
|
|
|
|
|
|
//if the same var was assigned in both branches
|
|
|
|
foreach ($assign_all as $var_id => $_) {
|
|
|
|
if (isset($if_context->vars_in_scope[$var_id]) && isset($t_else_context->vars_in_scope[$var_id])) {
|
2018-06-01 03:57:17 +02:00
|
|
|
$context->vars_in_scope[$var_id] = Type::combineUnionTypes(
|
2019-12-06 18:47:27 +01:00
|
|
|
$if_context->vars_in_scope[$var_id],
|
2021-10-23 17:30:34 +02:00
|
|
|
$t_else_context->vars_in_scope[$var_id]
|
2018-06-01 03:57:17 +02:00
|
|
|
);
|
2018-01-14 18:09:40 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-04 20:22:06 +02:00
|
|
|
$redef_var_ifs = array_keys($if_context->getRedefinedVars($context->vars_in_scope));
|
|
|
|
$redef_var_else = array_keys($t_else_context->getRedefinedVars($context->vars_in_scope));
|
|
|
|
$redef_all = array_intersect($redef_var_ifs, $redef_var_else);
|
|
|
|
|
2021-10-23 17:30:34 +02:00
|
|
|
//these vars were changed in both branches
|
2021-09-04 20:22:06 +02:00
|
|
|
foreach ($redef_all as $redef_var_id) {
|
|
|
|
$context->vars_in_scope[$redef_var_id] = Type::combineUnionTypes(
|
|
|
|
$if_context->vars_in_scope[$redef_var_id],
|
|
|
|
$t_else_context->vars_in_scope[$redef_var_id]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-10-23 17:30:34 +02:00
|
|
|
//these vars were changed in the if and existed before
|
|
|
|
foreach ($redef_var_ifs as $redef_var_ifs_id) {
|
|
|
|
if (isset($context->vars_in_scope[$redef_var_ifs_id])) {
|
|
|
|
$context->vars_in_scope[$redef_var_ifs_id] = Type::combineUnionTypes(
|
|
|
|
$context->vars_in_scope[$redef_var_ifs_id],
|
|
|
|
$if_context->vars_in_scope[$redef_var_ifs_id]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//these vars were changed in the else and existed before
|
|
|
|
foreach ($redef_var_else as $redef_var_else_id) {
|
|
|
|
if (isset($context->vars_in_scope[$redef_var_else_id])) {
|
|
|
|
$context->vars_in_scope[$redef_var_else_id] = Type::combineUnionTypes(
|
|
|
|
$context->vars_in_scope[$redef_var_else_id],
|
|
|
|
$t_else_context->vars_in_scope[$redef_var_else_id]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-01 03:57:17 +02:00
|
|
|
$context->vars_possibly_in_scope = array_merge(
|
|
|
|
$context->vars_possibly_in_scope,
|
2019-12-06 18:47:27 +01:00
|
|
|
$if_context->vars_possibly_in_scope,
|
2018-06-01 03:57:17 +02:00
|
|
|
$t_else_context->vars_possibly_in_scope
|
|
|
|
);
|
|
|
|
|
2022-03-15 23:40:31 +01:00
|
|
|
$context->cond_referenced_var_ids = array_merge(
|
|
|
|
$context->cond_referenced_var_ids,
|
|
|
|
$t_else_context->cond_referenced_var_ids
|
2018-01-14 18:09:40 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
$lhs_type = null;
|
2022-01-20 23:51:55 +01:00
|
|
|
$stmt_cond_type = $statements_analyzer->node_data->getType($stmt->cond);
|
2018-01-14 18:09:40 +01:00
|
|
|
if ($stmt->if) {
|
2019-11-25 17:44:54 +01:00
|
|
|
if ($stmt_if_type = $statements_analyzer->node_data->getType($stmt->if)) {
|
|
|
|
$lhs_type = $stmt_if_type;
|
2018-01-14 18:09:40 +01:00
|
|
|
}
|
2022-01-20 23:51:55 +01:00
|
|
|
} elseif ($stmt_cond_type) {
|
2019-08-10 19:22:21 +02:00
|
|
|
$if_return_type_reconciled = AssertionReconciler::reconcile(
|
2022-01-20 23:33:06 +01:00
|
|
|
new Truthy(),
|
2019-11-25 17:44:54 +01:00
|
|
|
clone $stmt_cond_type,
|
2018-01-14 18:09:40 +01:00
|
|
|
'',
|
2018-11-11 18:01:14 +01:00
|
|
|
$statements_analyzer,
|
2018-12-08 19:18:55 +01:00
|
|
|
$context->inside_loop,
|
2019-01-23 05:42:54 +01:00
|
|
|
[],
|
2018-11-11 18:01:14 +01:00
|
|
|
new CodeLocation($statements_analyzer->getSource(), $stmt),
|
|
|
|
$statements_analyzer->getSuppressedIssues()
|
2018-01-14 18:09:40 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
$lhs_type = $if_return_type_reconciled;
|
|
|
|
}
|
|
|
|
|
2019-11-25 17:44:54 +01:00
|
|
|
if ($lhs_type && ($stmt_else_type = $statements_analyzer->node_data->getType($stmt->else))) {
|
2022-01-20 23:51:55 +01:00
|
|
|
if ($stmt_cond_type !== null && $stmt_cond_type->isAlwaysFalsy()) {
|
|
|
|
$statements_analyzer->node_data->setType($stmt, $stmt_else_type);
|
|
|
|
} elseif ($stmt_cond_type !== null && $stmt_cond_type->isAlwaysTruthy()) {
|
|
|
|
$statements_analyzer->node_data->setType($stmt, $lhs_type);
|
|
|
|
} else {
|
|
|
|
$statements_analyzer->node_data->setType($stmt, Type::combineUnionTypes($lhs_type, $stmt_else_type));
|
|
|
|
}
|
2018-01-14 18:09:40 +01:00
|
|
|
} else {
|
2019-11-25 17:44:54 +01:00
|
|
|
$statements_analyzer->node_data->setType($stmt, Type::getMixed());
|
2018-01-14 18:09:40 +01:00
|
|
|
}
|
|
|
|
|
2020-05-18 21:13:27 +02:00
|
|
|
return true;
|
2018-01-14 18:09:40 +01:00
|
|
|
}
|
|
|
|
}
|