Skip to content

Commit feef469

Browse files
committed
Composer install
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
1 parent d60cb43 commit feef469

214 files changed

Lines changed: 51116 additions & 19 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

brick/math/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013-present Benjamin Morel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

brick/math/SECURITY.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Only the latest release stream is supported.
6+
7+
| Version | Supported |
8+
| ------- | ------------------ |
9+
| 0.8.x | :white_check_mark: |
10+
| < 0.8 | :x: |
11+
12+
## Reporting a Vulnerability
13+
14+
To report a security vulnerability, please use the
15+
[Tidelift security contact](https://tidelift.com/security).
16+
Tidelift will coordinate the fix and disclosure.

brick/math/composer.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "brick/math",
3+
"description": "Arbitrary-precision arithmetic library",
4+
"type": "library",
5+
"keywords": [
6+
"Brick",
7+
"Math",
8+
"Arbitrary-precision",
9+
"Arithmetic",
10+
"BigInteger",
11+
"BigDecimal",
12+
"BigRational",
13+
"Bignum"
14+
],
15+
"license": "MIT",
16+
"require": {
17+
"php": "^7.1|^8.0",
18+
"ext-json": "*"
19+
},
20+
"require-dev": {
21+
"phpunit/phpunit": "^7.5.15|^8.5",
22+
"php-coveralls/php-coveralls": "^2.2",
23+
"vimeo/psalm": "^3.5"
24+
},
25+
"autoload": {
26+
"psr-4": {
27+
"Brick\\Math\\": "src/"
28+
}
29+
},
30+
"autoload-dev": {
31+
"psr-4": {
32+
"Brick\\Math\\Tests\\": "tests/"
33+
}
34+
}
35+
}

brick/math/psalm-baseline.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<files psalm-version="3.8.5@e6ec5fa22a7b9e61670a24d07b3119aff80dcd89">
3+
<file src="src/Internal/Calculator/BcMathCalculator.php">
4+
<InvalidNullableReturnType occurrences="3">
5+
<code>string</code>
6+
<code>string</code>
7+
<code>string</code>
8+
</InvalidNullableReturnType>
9+
<InvalidReturnStatement occurrences="1">
10+
<code>[$q, $r]</code>
11+
</InvalidReturnStatement>
12+
<InvalidReturnType occurrences="1">
13+
<code>array</code>
14+
</InvalidReturnType>
15+
<NullableReturnStatement occurrences="3">
16+
<code>\bcdiv($a, $b, 0)</code>
17+
<code>\bcmod($a, $b)</code>
18+
<code>\bcpowmod($base, $exp, $mod, 0)</code>
19+
</NullableReturnStatement>
20+
</file>
21+
<file src="src/Internal/Calculator/NativeCalculator.php">
22+
<InvalidOperand occurrences="6">
23+
<code>$a</code>
24+
<code>$a</code>
25+
<code>$a</code>
26+
<code>$b</code>
27+
<code>$blockA</code>
28+
<code>$blockA</code>
29+
</InvalidOperand>
30+
<LoopInvalidation occurrences="4">
31+
<code>$i</code>
32+
<code>$i</code>
33+
<code>$i</code>
34+
<code>$j</code>
35+
</LoopInvalidation>
36+
<PossiblyInvalidArgument occurrences="1">
37+
<code>$e / 2</code>
38+
</PossiblyInvalidArgument>
39+
</file>
40+
</files>

brick/math/psalm.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
totallyTyped="false"
4+
resolveFromConfigFile="true"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xmlns="https://getpsalm.org/schema/config"
7+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+
errorBaseline="psalm-baseline.xml"
9+
>
10+
<projectFiles>
11+
<directory name="src" />
12+
<ignoreFiles>
13+
<directory name="vendor" />
14+
</ignoreFiles>
15+
</projectFiles>
16+
17+
<issueHandlers>
18+
<LessSpecificReturnType errorLevel="info" />
19+
20+
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
21+
22+
<DeprecatedMethod errorLevel="info" />
23+
<DeprecatedProperty errorLevel="info" />
24+
<DeprecatedClass errorLevel="info" />
25+
<DeprecatedConstant errorLevel="info" />
26+
<DeprecatedFunction errorLevel="info" />
27+
<DeprecatedInterface errorLevel="info" />
28+
<DeprecatedTrait errorLevel="info" />
29+
30+
<InternalMethod errorLevel="info" />
31+
<InternalProperty errorLevel="info" />
32+
<InternalClass errorLevel="info" />
33+
34+
<MissingClosureReturnType errorLevel="info" />
35+
<MissingReturnType errorLevel="info" />
36+
<MissingPropertyType errorLevel="info" />
37+
<InvalidDocblock errorLevel="info" />
38+
<MisplacedRequiredParam errorLevel="info" />
39+
40+
<PropertyNotSetInConstructor errorLevel="info" />
41+
<MissingConstructor errorLevel="info" />
42+
<MissingClosureParamType errorLevel="info" />
43+
<MissingParamType errorLevel="info" />
44+
45+
<RedundantCondition errorLevel="info" />
46+
47+
<DocblockTypeContradiction errorLevel="info" />
48+
<RedundantConditionGivenDocblockType errorLevel="info" />
49+
50+
<UnresolvableInclude errorLevel="info" />
51+
52+
<RawObjectIteration errorLevel="info" />
53+
54+
<InvalidStringClass errorLevel="info" />
55+
</issueHandlers>
56+
</psalm>

0 commit comments

Comments
 (0)