Add PHPStan and other quality checks

Similar to FreshRSS core
Contributes to https://github.com/FreshRSS/Extensions/issues/184
This commit is contained in:
Alexandre Alapetite 2023-11-23 22:41:09 +01:00
parent a86467db48
commit b49596818c
No known key found for this signature in database
GPG key ID: A24378C38E812B23
59 changed files with 1173 additions and 404 deletions

View file

@ -9,4 +9,4 @@ The css code used to wrap long titles was originally [proposed](https://github.c
## Changelog
- 0.1 initial version
- 0.1 initial version

View file

@ -3,7 +3,7 @@
declare(strict_types=1);
class TitleWrapExtension extends Minz_Extension {
public function init() {
Minz_View::appendStyle($this->getFileUrl('title_wrap.css', 'css'));
public function init(): void {
Minz_View::appendStyle($this->getFileUrl('title_wrap.css', 'css'));
}
}

View file

@ -1,21 +1,26 @@
.horizontal-list {
display: flex;
display: flex;
}
.horizontal-list.bottom {
display: table;
display: table;
}
.flux .item {
flex-shrink: 0;
line-height: normal;
padding: .3em 0;
flex-shrink: 0;
line-height: normal;
padding: .3em 0;
}
.flux .item > a {
white-space: normal;
white-space: normal;
}
.flux:not(.current):hover .item.title {
position: relative;
max-width: inherit;
position: relative;
max-width: inherit;
}
.flux_header .title {
flex: auto;
}
flex: auto;
}

View file

@ -0,0 +1,26 @@
.horizontal-list {
display: flex;
}
.horizontal-list.bottom {
display: table;
}
.flux .item {
flex-shrink: 0;
line-height: normal;
padding: .3em 0;
}
.flux .item > a {
white-space: normal;
}
.flux:not(.current):hover .item.title {
position: relative;
max-width: inherit;
}
.flux_header .title {
flex: auto;
}