Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
01dafe6
Use error() and return() instead of \RuntimeException in UpdateCommand
mondrake Nov 30, 2019
3d77a28
1
mondrake Nov 30, 2019
b4ede4d
2
mondrake Nov 30, 2019
65588c4
3
mondrake Nov 30, 2019
44daf25
4
mondrake Nov 30, 2019
6bc99ad
5
mondrake Nov 30, 2019
06d203d
Merge branch 'master' of https://github.com/FileEye/MimeMap
mondrake Feb 9, 2020
397f12e
Merge branch 'master' of https://github.com/FileEye/MimeMap
mondrake Mar 6, 2020
477e22e
Merge branch 'master' of https://github.com/FileEye/MimeMap
mondrake May 16, 2020
99da449
Add .gitignore
mondrake May 16, 2020
34a56f6
Map update
mondrake Jan 1, 2021
9f1396a
Merge branch 'master' of https://github.com/mondrake/MimeMap
mondrake Feb 12, 2021
7fecace
Create php.yml
mondrake Feb 12, 2021
277b125
Merge branch 'master' of https://github.com/FileEye/MimeMap
mondrake Jun 12, 2021
3ad34a1
Merge branch 'master' of https://github.com/FileEye/MimeMap
mondrake Jun 12, 2021
fbd075a
sched
mondrake Jun 12, 2021
d350bc8
Merge branch 'FileEye:master' into master
mondrake Jul 21, 2021
b5383be
Merge branch 'FileEye:master' into master
mondrake Sep 21, 2021
77db098
Merge branch 'FileEye:master' into master
mondrake Dec 11, 2021
bd756cb
Merge branch 'FileEye:master' into master
mondrake Mar 13, 2022
c63a9db
Merge branch 'FileEye:master' into master
mondrake Apr 30, 2022
796c2c9
Merge branch 'FileEye:master' into master
mondrake Apr 30, 2022
f2e9d1c
Merge branch 'FileEye:master' into master
mondrake May 3, 2022
fc6fd56
Merge branch 'FileEye:master' into master
mondrake May 3, 2022
ea84636
Merge branch 'FileEye:master' into master
mondrake May 8, 2022
4e3b2af
Merge branch 'FileEye:master' into master
mondrake May 8, 2022
5050a49
Merge branch 'FileEye:master' into master
mondrake May 8, 2022
e3c7a5e
Update code-quality.yml
mondrake May 8, 2022
c01322e
Psalm
mondrake May 8, 2022
6af25fa
fix
mondrake May 8, 2022
00a1348
fix
mondrake May 8, 2022
2cc930a
fix
mondrake May 8, 2022
73797dd
fix
mondrake May 8, 2022
8fc2836
Merge branch 'FileEye:master' into dev-psalm
mondrake May 10, 2022
ebc58d0
Merge branch 'FileEye:master' into dev-psalm
mondrake May 14, 2022
01b1371
Map $instance to private
mondrake May 14, 2022
f607225
Revert "Map $instance to private"
mondrake May 14, 2022
f91bbbe
fix
mondrake May 14, 2022
4114022
fix
mondrake May 14, 2022
a494995
Add psalm baseline
mondrake May 14, 2022
3180655
fix
mondrake May 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ on:

jobs:

static-analysis-phpstan:
name: "Static Analysis with PHPStan"
static-analysis:
name: "Code quality checks"
runs-on: "ubuntu-20.04"

strategy:
matrix:
php-version:
- "8.0"
- "8.1"

steps:
- name: "Checkout code"
Expand All @@ -34,5 +34,8 @@ jobs:
- name: "Run static analysis with phpstan/phpstan"
run: "vendor/bin/phpstan"

- name: "Run static analysis with vimeo/psalm"
run: ./vendor/bin/psalm

- name: "Run code style check with squizlabs/php_codesniffer"
run: ./vendor/bin/phpcs --runtime-set ignore_warnings_on_exit 1
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"symfony/console": ">=5.4",
"symfony/var-dumper": ">=5.4",
"symfony/yaml": ">=5.4",
"phpstan/phpstan": "^1.2"
"phpstan/phpstan": "^1.2",
"vimeo/psalm": "^4.23"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 8 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.23.0@f1fe6ff483bf325c803df9f510d09a03fd796f88">
<file src="src/Command/UpdateCommand.php">
<ReservedWord occurrences="1">
<code>Yaml::parse($contents)</code>
</ReservedWord>
</file>
</files>
14 changes: 14 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<psalm
errorLevel="3"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" errorBaseline="psalm-baseline.xml">
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
</psalm>
2 changes: 1 addition & 1 deletion src/Map/BaseMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ abstract class BaseMap implements MapInterface
/**
* Singleton instance.
*
* @var BaseMap
* @var MapInterface
*/
protected static $instance;

Expand Down
2 changes: 1 addition & 1 deletion src/Map/DefaultMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class DefaultMap extends AbstractMap
{
/**
* @var DefaultMap
* @var MapInterface
*/
protected static $instance;

Expand Down
2 changes: 1 addition & 1 deletion src/Map/EmptyMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class EmptyMap extends AbstractMap
{
/**
* @var EmptyMap
* @var MapInterface
*/
protected static $instance;
}
2 changes: 1 addition & 1 deletion src/Map/MiniMap.php.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace FileEye\MimeMap\Map;
class MiniMap extends AbstractMap
{
/**
* @var MiniMap
* @var MapInterface
*/
protected static $instance;

Expand Down