Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
37 changes: 37 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Folders
/.ddev export-ignore
/.github export-ignore
/.vscode export-ignore
/.Build export-ignore
/Build/ export-ignore
/Tests/ export-ignore

# Files
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.php-cs-fixer.dist.php export-ignore
.phplint.yml export-ignore
.stylelintrc export-ignore
docker-compose.yaml export-ignore

# Enforce checkout with linux lf consistent over all plattforms
*.xml text eol=lf
*.html text eol=lf
*.css text eol=lf
*.scss text eol=lf
*.svg text eol=lf
*.tmpl text eol=lf
*.js text eol=lf
*.json text eol=lf
*.php text eol=lf
*.rst text eol=lf
*.md text eol=lf
*.yml text eol=lf
*.ts text eol=lf
*.xlf text eol=lf
*.sql text eol=lf
*.t3s text eol=lf
*.txt text eol=lf
*.typoscript text eol=lf
*.tsconfig text eol=lf
117 changes: 109 additions & 8 deletions Build/phpstan/phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,20 +1,121 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#2 \\$to of function copy expects string, string\\|null given\\.$#"
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 1
path: ../../Classes/Converter/AbstractFileConverter.php
path: ../../Classes/Backend/TCA/UpdateStatus.php

-
message: "#^Parameter \\#1 \\$filename of function mime_content_type expects resource\\|string, string\\|null given\\.$#"
message: "#^PHPDoc tag @var has invalid value \\(\\$class WizardProcessInterface\\)\\: Unexpected token \"\\$class\", expected type at offset 36$#"
count: 1
path: ../../Tests/Functional/Event/ConvertFileToCorrectMimeTypeTest.php
path: ../../Classes/Backend/TCA/UpdateStatus.php

-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 4
path: ../../Classes/CreateProcess.php

-
message: "#^Method SUDHAUS7\\\\Sudhaus7Wizard\\\\CreateProcess\\:\\:addToFormConfig\\(\\) is unused\\.$#"
count: 1
path: ../../Classes/CreateProcess.php

-
message: "#^Result of && is always false\\.$#"
count: 2
path: ../../Classes/CreateProcess.php

-
message: "#^Undefined variable\\: \\$columnconfig$#"
count: 4
path: ../../Classes/CreateProcess.php

-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 2
path: ../../Classes/CreateProcess.php

-
message: "#^Variable \\$columnconfig in isset\\(\\) is never defined\\.$#"
count: 2
path: ../../Classes/CreateProcess.php

-
message: "#^Method SUDHAUS7\\\\Sudhaus7Wizard\\\\Domain\\\\Model\\\\Creator\\:\\:getCruserId\\(\\) should return string but returns int\\.$#"
count: 1
path: ../../Classes/Domain/Model/Creator.php

-
message: "#^Offset 'email' on array\\{uid\\: int, cruser_id\\: int, sourcepid\\: string, base\\: string, projektname\\: string, longname\\: string, shortname\\: string, domainname\\: string, \\.\\.\\.\\} on left side of \\?\\? always exists and is not nullable\\.$#"
count: 1
path: ../../Classes/Domain/Model/Creator.php

-
message: "#^Offset 'pid' does not exist on array\\{uid\\: int, cruser_id\\: int, sourcepid\\: string, base\\: string, projektname\\: string, longname\\: string, shortname\\: string, domainname\\: string, \\.\\.\\.\\}\\.$#"
count: 1
path: ../../Classes/Domain/Model/Creator.php

-
message: "#^Parameter \\#14 \\$status of class SUDHAUS7\\\\Sudhaus7Wizard\\\\Domain\\\\Model\\\\Creator constructor expects int, string given\\.$#"
count: 1
path: ../../Classes/Domain/Model/Creator.php

-
message: "#^Property SUDHAUS7\\\\Sudhaus7Wizard\\\\Service\\\\DataHandlingService\\:\\:\\$data is never read, only written\\.$#"
count: 1
path: ../../Classes/Service/DataHandlingService.php

-
message: "#^Property SUDHAUS7\\\\Sudhaus7Wizard\\\\Service\\\\DataHandlingService\\:\\:\\$oldIdToNewIdentifierMap is never read, only written\\.$#"
count: 1
path: ../../Classes/Service/DataHandlingService.php

-
message: "#^Method SUDHAUS7\\\\Sudhaus7Wizard\\\\Sources\\\\Couchdb\\:\\:filterorig\\(\\) is unused\\.$#"
count: 1
path: ../../Classes/Sources/Couchdb.php

-
message: "#^Offset 'views' does not exist on array\\{\\}\\.$#"
count: 1
path: ../../Classes/Sources/Couchdb.php

-
message: "#^Property SUDHAUS7\\\\Sudhaus7Wizard\\\\Sources\\\\Couchdb\\:\\:\\$views is never read, only written\\.$#"
count: 1
path: ../../Classes/Sources/Couchdb.php

-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: ../../Classes/Sources/Couchdb.php

-
message: "#^Variable \\$map might not be defined\\.$#"
count: 1
path: ../../Classes/Sources/Couchdb.php

-
message: "#^Variable \\$pidfilter in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
path: ../../Classes/Sources/Couchdb.php

-
message: "#^Parameter \\#2 \\$replace of function str_replace expects array\\|string, int given\\.$#"
count: 2
path: ../../Classes/Sources/LocalDatabase.php

-
message: "#^Variable \\$ret on left side of \\?\\? always exists and is not nullable\\.$#"
count: 1
path: ../../Classes/Sources/LocalDatabase.php

-
message: "#^Parameter \\#2 \\$destination_file of function copy expects string, string\\|null given\\.$#"
message: "#^Property SUDHAUS7\\\\Sudhaus7Wizard\\\\Sources\\\\RestWizardServerSource\\:\\:\\$tree is never read, only written\\.$#"
count: 1
path: ../../Classes/Converter/AbstractFileConverter.php
path: ../../Classes/Sources/RestWizardServerSource.php

-
message: "#^Parameter \\#1 \\$filename_or_stream of function mime_content_type expects resource\\|string, string\\|null given\\.$#"
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: ../../Tests/Functional/Event/ConvertFileToCorrectMimeTypeTest.php
path: ../../Classes/Sources/RestWizardServerSource.php
2 changes: 1 addition & 1 deletion Build/phpstan/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parameters:
# Use local .cache dir instead of /tmp
tmpDir: ../../.cache/phpstan

level: 8
level: 5

paths:
- ../../Classes
Expand Down
2 changes: 1 addition & 1 deletion Classes/Backend/TCA/UpdateStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace SUDHAUS7\Sudhaus7Wizard\Backend\TCA;

use SUDHAUS7\Sudhaus7Wizard\Interfaces\WizardProcessInterface;
use SUDHAUS7\Sudhaus7Wizard\WizardProcess\WizardProcessInterface;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Utility\GeneralUtility;
Expand Down
Loading