-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsalm.baseline.xml
112 lines (112 loc) · 3.6 KB
/
psalm.baseline.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="3.14.2@3538fe1955d47f6ee926c0769d71af6db08aa488">
<file src="/Users/tobias/Workspace/PHPStorm/analyze-api/vendor/doctrine/doctrine-bundle/Repository/ServiceEntityRepository.php">
<ArgumentTypeCoercion occurrences="2">
<code>$manager</code>
<code>$manager->getClassMetadata($entityClass)</code>
</ArgumentTypeCoercion>
</file>
<file src="src/DependencyInjection/HappyrNormalDistributionExtension.php">
<MissingReturnType occurrences="1">
<code>load</code>
</MissingReturnType>
</file>
<file src="src/Entity/Fragment.php">
<MissingReturnType occurrences="5">
<code>getId</code>
<code>setSummary</code>
<code>setValue</code>
<code>setCumulativeFrequency</code>
<code>setFrequency</code>
</MissingReturnType>
<PropertyNotSetInConstructor occurrences="1">
<code>$id</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Entity/Summary.php">
<MissingReturnType occurrences="2">
<code>setName</code>
<code>setPopulation</code>
</MissingReturnType>
<PropertyNotSetInConstructor occurrences="1">
<code>$id</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Repository/FragmentRepository.php">
<MixedReturnTypeCoercion occurrences="2">
<code>$this->findBy(['summary' => $summaryId])</code>
<code>Fragment[]</code>
</MixedReturnTypeCoercion>
</file>
<file src="src/Repository/SummaryRepository.php">
<LessSpecificReturnStatement occurrences="1">
<code>$this->findOneBy(['name' => $name])</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType occurrences="1">
<code>?Summary</code>
</MoreSpecificReturnType>
</file>
<file src="src/Service/Calculator.php">
<MixedArgument occurrences="4">
<code>$populationCount</code>
<code>$meanValue - $v</code>
<code>$sum / ($populationCount - ($sample ? 1 : 0))</code>
<code>$mean - $v</code>
</MixedArgument>
<MixedAssignment occurrences="4">
<code>$v</code>
<code>$zValues[]</code>
<code>$v</code>
<code>$v</code>
</MixedAssignment>
<MixedOperand occurrences="4">
<code>$v</code>
<code>$meanValue</code>
<code>$populationCount</code>
<code>$v</code>
</MixedOperand>
</file>
<file src="src/Service/DistributionManager.php">
<MixedArgument occurrences="2">
<code>100 * $x / $population</code>
<code>$population</code>
</MixedArgument>
<MixedArrayAccess occurrences="4">
<code>$result[0]</code>
<code>$result['population']</code>
<code>$result[0]</code>
<code>$result['population']</code>
</MixedArrayAccess>
<MixedAssignment occurrences="13">
<code>$x0</code>
<code>$y0</code>
<code>$x1</code>
<code>$y1</code>
<code>$x</code>
<code>$result</code>
<code>$lowerFragment</code>
<code>$population</code>
<code>$result</code>
<code>$upperFragment</code>
<code>$population</code>
<code>$frequency</code>
<code>$v</code>
</MixedAssignment>
<MixedMethodCall occurrences="4">
<code>getCumulativeFrequency</code>
<code>getValue</code>
<code>getCumulativeFrequency</code>
<code>getValue</code>
</MixedMethodCall>
<MixedOperand occurrences="8">
<code>$x1</code>
<code>$y0</code>
<code>$y1</code>
<code>($x1 - $x0) * ($value - $y0)</code>
<code>$x0</code>
<code>$x</code>
<code>100 * $x</code>
<code>$frequency</code>
</MixedOperand>
</file>
</files>