Skip to content

Commit

Permalink
OXDEV-7845 Add phpcs and phpstan to ci run
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Apr 25, 2024
1 parent a1b8a69 commit 09e64cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/oxid-esales/module-medialibrary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ runscript: &runscript
[
"medialibrary:tests-unit",
"medialibrary:tests-integration",
"medialibrary:phpstan",
"medialibrary:phpcs",
]
medialibrary:
path: 'vendor/{{ $org}}/{{ $name }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push_module_71x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'b-7.1.x**'

jobs:
erp_php82_mysql80:
php82_mysql80:
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yml@v4
with:
testplan: '~/defaults/7.1.x.yml,~/defaults/php8.2_mysql8.0_only.yml,~/module-medialibrary.yml,~/_custom.yml'
Expand Down
3 changes: 1 addition & 2 deletions src/Application/Controller/Admin/MediaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public function upload(): void
$responseService = $this->getService(ResponseInterface::class);

$sId = null;
$sFileName = '';
$sThumb = '';

try {
Expand Down Expand Up @@ -121,7 +120,7 @@ public function upload(): void
$responseService->responseAsJson([
'success' => true,
'id' => $sId,
'file' => $sFileName,
'file' => $sFileName ?? '',
'filetype' => $sFileType ?? '',
'filesize' => $sFileSize ?? '',
'imagesize' => $sImageSize ?? '',
Expand Down

0 comments on commit 09e64cb

Please sign in to comment.