Skip to content

Commit

Permalink
Fix: Run 'make static-code-analysis-baseline'
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Feb 17, 2024
1 parent 2c6e637 commit 51506d3
Showing 1 changed file with 143 additions and 1 deletion.
144 changes: 143 additions & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,144 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.21.1@8c473e2437be8b6a8fd8f630f0f11a16b114c494"/>
<files psalm-version="5.21.1@8c473e2437be8b6a8fd8f630f0f11a16b114c494">
<file src="src/News/Entry.php">
<InvalidOperand>
<code>$count</code>
</InvalidOperand>
<MissingParamType>
<code>$value</code>
</MissingParamType>
<MissingPropertyType>
<code>$categories</code>
<code>$conf_time</code>
<code>$content</code>
<code>$id</code>
<code>$image</code>
<code>$title</code>
</MissingPropertyType>
<MissingReturnType>
<code>ce</code>
</MissingReturnType>
<MixedArgument>
<code>$node</code>
<code><![CDATA[$this->categories]]></code>
<code><![CDATA[$this->categories]]></code>
<code><![CDATA[$this->conf_time]]></code>
<code><![CDATA[$this->image['link']]]></code>
<code><![CDATA[$this->image['path']]]></code>
<code><![CDATA[$this->image['title']]]></code>
<code>$v</code>
<code>$value</code>
</MixedArgument>
<MixedArgumentTypeCoercion>
<code>$k</code>
</MixedArgumentTypeCoercion>
<MixedArrayAccess>
<code><![CDATA[$this->image['link']]]></code>
<code><![CDATA[$this->image['link']]]></code>
<code><![CDATA[$this->image['path']]]></code>
<code><![CDATA[$this->image['path']]]></code>
<code><![CDATA[$this->image['title']]]></code>
</MixedArrayAccess>
<MixedArrayAssignment>
<code><![CDATA[$this->categories[]]]></code>
</MixedArrayAssignment>
<MixedArrayOffset>
<code>self::CATEGORIES[$cat]</code>
<code>self::CATEGORIES[$cat]</code>
</MixedArrayOffset>
<MixedAssignment>
<code>$cat</code>
<code>$cat</code>
<code>$content</code>
<code>$div</code>
<code>$link</code>
<code>$node</code>
<code>$v</code>
</MixedAssignment>
<MixedInferredReturnType>
<code>string</code>
</MixedInferredReturnType>
<MixedMethodCall>
<code>appendChild</code>
<code>appendChild</code>
<code>setAttribute</code>
<code>setAttribute</code>
<code>setAttribute</code>
</MixedMethodCall>
<MixedOperand>
<code><![CDATA[$this->id]]></code>
</MixedOperand>
<MixedPropertyAssignment>
<code>$content</code>
</MixedPropertyAssignment>
<MixedReturnStatement>
<code><![CDATA[$this->id]]></code>
</MixedReturnStatement>
<PossiblyNullIterator>
<code><![CDATA[$tdoc->firstChild->childNodes]]></code>
</PossiblyNullIterator>
<PossiblyNullPropertyFetch>
<code><![CDATA[$tdoc->firstChild->childNodes]]></code>
</PossiblyNullPropertyFetch>
<PossiblyUndefinedArrayOffset>
<code><![CDATA[$_SERVER["REQUEST_TIME"]]]></code>
<code><![CDATA[$_SERVER['REQUEST_TIME']]]></code>
</PossiblyUndefinedArrayOffset>
<RiskyTruthyFalsyComparison>
<code><![CDATA[$this->image['link'] ?? null]]></code>
<code><![CDATA[$this->image['path'] ?? '']]></code>
</RiskyTruthyFalsyComparison>
</file>
<file src="src/UserNotes/Sorter.php">
<InvalidOperand>
<code>1 - .3</code>
</InvalidOperand>
<MissingPropertyType>
<code>$ageFactor</code>
<code>$ageWeight</code>
<code>$maxAge</code>
<code>$maxVote</code>
<code>$minAge</code>
<code>$minVote</code>
<code>$ratingWeight</code>
<code>$voteFactor</code>
<code>$voteWeight</code>
</MissingPropertyType>
<MixedArrayOffset>
<code><![CDATA[$prio[$a->id]]]></code>
<code><![CDATA[$prio[$b->id]]]></code>
</MixedArrayOffset>
<MixedAssignment>
<code><![CDATA[$prio[$note->id]]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code>float</code>
</MixedInferredReturnType>
<MixedOperand>
<code><![CDATA[$note->ts - $this->minAge]]></code>
<code><![CDATA[$note->upvotes - $note->downvotes - $this->minVote]]></code>
<code><![CDATA[$this->ageWeight]]></code>
<code><![CDATA[$this->calcVotePriority($note) * $this->voteWeight]]></code>
<code><![CDATA[$this->maxAge]]></code>
<code><![CDATA[$this->maxAge]]></code>
<code><![CDATA[$this->maxAge - $this->minAge]]></code>
<code><![CDATA[$this->maxVote]]></code>
<code><![CDATA[$this->maxVote]]></code>
<code><![CDATA[$this->maxVote - $this->minVote]]></code>
<code><![CDATA[$this->minAge]]></code>
<code><![CDATA[$this->minVote]]></code>
<code><![CDATA[$this->ratingWeight]]></code>
<code><![CDATA[$this->voteWeight]]></code>
<code><![CDATA[($note->upvotes - $note->downvotes - $this->minVote) * $this->voteFactor]]></code>
<code><![CDATA[($this->calcVotePriority($note) * $this->voteWeight)
+ ($this->calcRatingPriority($note) * $this->ratingWeight)]]></code>
</MixedOperand>
<MixedPropertyFetch>
<code><![CDATA[$a->id]]></code>
<code><![CDATA[$b->id]]></code>
</MixedPropertyFetch>
<MixedReturnStatement>
<code><![CDATA[($note->upvotes - $note->downvotes - $this->minVote) * $this->voteFactor + .3]]></code>
</MixedReturnStatement>
</file>
</files>

0 comments on commit 51506d3

Please sign in to comment.