AJenbo/agcms

View on GitHub
Create .scrutinizer.yml #447
Anders Jenbo authored 558644e7
complete00:00:32
Your first build completed successfully!

Congratulations

Your first build completed successfully!

See the Results

1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.json.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
W, [2024-10-13T02:56:36.980310 #1]  WARN -- : Skipping application/inc/DTO/InvoiceFilter.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:36.980344 #1]  WARN -- : Response status: 422
W, [2024-10-13T02:56:36.982059 #1]  WARN -- : Skipping application/inc/DTO/EmailConfig.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:36.982088 #1]  WARN -- : Response status: 422
W, [2024-10-13T02:56:36.983683 #1]  WARN -- : Skipping application/inc/DTO/InvoiceItem.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:36.983709 #1]  WARN -- : Response status: 422
W, [2024-10-13T02:56:36.985673 #1]  WARN -- : Skipping application/inc/DTO/TableColumn.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:36.985702 #1]  WARN -- : Response status: 422
W, [2024-10-13T02:56:37.145545 #1]  WARN -- : Skipping application/inc/Services/FileService.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:37.145580 #1]  WARN -- : Response status: 422
W, [2024-10-13T02:56:38.099124 #1]  WARN -- : Skipping application/inc/Enums/InvoiceStatus.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:38.099151 #1]  WARN -- : Response status: 422
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
W, [2024-10-13T02:56:42.998584 #1]  WARN -- : Skipping ./application/inc/DTO/InvoiceFilter.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:42.998695 #1]  WARN -- : Response status: 422
W, [2024-10-13T02:56:42.998658 #1]  WARN -- : Skipping ./application/inc/DTO/EmailConfig.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:42.998789 #1]  WARN -- : Response status: 422
W, [2024-10-13T02:56:43.000510 #1]  WARN -- : Skipping ./application/inc/DTO/InvoiceItem.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:43.000534 #1]  WARN -- : Response status: 422
W, [2024-10-13T02:56:43.001692 #1]  WARN -- : Skipping ./application/inc/DTO/TableColumn.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:43.001728 #1]  WARN -- : Response status: 422
W, [2024-10-13T02:56:43.204645 #1]  WARN -- : Skipping ./application/inc/Services/FileService.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:43.204876 #1]  WARN -- : Response status: 422
W, [2024-10-13T02:56:44.438650 #1]  WARN -- : Skipping ./application/inc/Enums/InvoiceStatus.php due to CC::Parser::Client::HTTPError
W, [2024-10-13T02:56:44.438681 #1]  WARN -- : Response status: 422
7
csslint
csslint engine documentation
8
eslint
eslint engine documentation
View output
No rules are configured. Make sure you have added a config file with rules enabled.
See our documentation at https://docs.codeclimate.com/docs/eslint for more information.
(node:8) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:8) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
9
phpcodesniffer
phpcodesniffer engine documentation
10
phpmd
phpmd engine documentation
11
sonar-php
sonar-php engine documentation
View output
INFO: Java 1.8.0_322 Amazon.com Inc. (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/application/theme/default/images/cart_add.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/intet-foto.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/ok.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/loading.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/folder_go.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/file-audio.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/database_gear.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/film.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/email_edit.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/page_error.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/cross.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/shape_flip_vertical.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/email.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/page_add.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/+.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/email_open.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/page_edit.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/accept.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/shape_rotate_clockwise.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/package.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/bin.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/file-video.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/door_in.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/vcard_edit.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/link_break.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/creditcards.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/headerbar.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/folder_image.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/cut.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/prev_year.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/tick.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/database_error.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/folder_page_white.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/file-image.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/link.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/find.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/prev_mon.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/textfield_rename.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/group_edit.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/-.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/book_go.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/folder_delete.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/pictures.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/ruler.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/page.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/email_add.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/printer.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/table_goback.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/shade_bl.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/error.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/application_edit.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/picture_edit.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/pixel.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/shade_tr.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/shade_br.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/folder.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/book_open.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/page_white_find.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/file-zip.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/shade_mr.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/shade_bm.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/shape_flip_horizontal.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/file-pdf.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/table_save.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/page_white_key.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/magnifier.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/money.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/building.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/disk.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/next_year.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/file-bin.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/eye.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/file-text.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/picture.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/table_add.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/page_white_medal.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/email_go.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/calendar_edit.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/group_add.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/shape_rotate_anticlockwise.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/calendar_view_month.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/folder_add.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/table.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/table_multiple.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/shape_align_left.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/next_mon.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/lock.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/book_addresses.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/table_go.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/admin/add.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/error.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/default/images/cart.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/locale/da_DK/LC_MESSAGES/app.mo' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/arms-gallery.dk/images/advarsel.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/arms-gallery.dk/images/button.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/arms-gallery.dk/images/logo.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/arms-gallery.dk/images/bg.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/arms-gallery.dk/images/bar.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/arms-gallery.dk/images/spar.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/arms-gallery.dk/images/bar2.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/arms-gallery.dk/images/info.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/arms-gallery.dk/images/søg.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/arms-gallery.dk/images/bar-space.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/style/gillsan0.eot' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/link-a.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/dod.gif' at line 2 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/link.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/close-h.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/mainfade-l.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/open.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/nocolors.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/mainfade-r.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/dod-h.gif' at line 2 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/logo-hover.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/close.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/www.jagtogfiskerimagasinet.dk/images/logo.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/huntershouse.dk/images/intet-foto.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/application/theme/huntershouse.dk/images/logo.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 366 files indexed
INFO: 83 source files to be analyzed
ERROR: Unable to parse file: /code/application/inc/Route.php
ERROR: Parse error at line 9 column 13:

 1: <?php
 2: 
 3: namespace App;
 4: 
 5: use App\Http\Controllers\AbstractController;
 6: 
 7: class Route
 8: {
 9:     private string $uri;
                ^
10:     /** @var class-string<AbstractController> */
11:     private string $controller;
12:     private string $action;
13: 
14:     /**
15:      * @param class-string<AbstractController> $controller
16:      */
17:     public function __construct(string $uri, string $controller, string $action)
18:     {
19:         $this->uri = $uri;

ERROR: Unable to parse file: /code/application/inc/DTO/InvoiceFilter.php
ERROR: Parse error at line 8 column 9:

 1: <?php
 2: 
 3: namespace App\DTO;
 4: 
 5: class InvoiceFilter
 6: {
 7:     public function __construct(
 8:         public readonly ?int $id,
            ^
 9:         public readonly int $year,
10:         public readonly int $month,
11:         public readonly string $department,
12:         public readonly string $status,
13:         public readonly string $name,
14:         public readonly string $tlf,
15:         public readonly string $email,
16:         public readonly ?string $momssats,
17:         public readonly string $clerk,
18:     ) {

ERROR: Unable to parse file: /code/application/inc/DTO/EmailConfig.php
ERROR: Parse error at line 8 column 9:

 1: <?php
 2: 
 3: namespace App\DTO;
 4: 
 5: class EmailConfig
 6: {
 7:     public function __construct(
 8:         public readonly string $address,
            ^
 9:         public readonly string $password,
10:         public readonly string $sentBox,
11:         public readonly string $imapHost,
12:         public readonly int $imapPort,
13:         public readonly string $smtpHost,
14:         public readonly int $smtpPort,
15:         public readonly bool $smtpAuth,
16:     ) {
17:     }
18: }

ERROR: Unable to parse file: /code/application/inc/DTO/InvoiceItem.php
ERROR: Parse error at line 8 column 9:

 1: <?php
 2: 
 3: namespace App\DTO;
 4: 
 5: class InvoiceItem
 6: {
 7:     public function __construct(
 8:         public readonly int $quantity,
            ^
 9:         public readonly string $title,
10:         public readonly float $value,
11:     ) {
12:     }
13: }
14: 

ERROR: Unable to parse file: /code/application/inc/DTO/TableColumn.php
ERROR: Parse error at line 13 column 9:

 3: namespace App\DTO;
 4: 
 5: use App\Enums\ColumnType;
 6: 
 7: class TableColumn
 8: {
 9:     /**
10:      * @param array<int, string> $options
11:      */
12:     public function __construct(
13:         public readonly string $title,
            ^
14:         public readonly ColumnType $type,
15:         public readonly int $sorting,
16:         public readonly array $options,
17:     ) {
18:     }
19: 
20:     public function isText(): bool
21:     {
22:         return $this->type === ColumnType::String;
23:     }

ERROR: Unable to parse file: /code/application/inc/Services/EpaymentService.php
ERROR: Parse error at line 18 column 13:

 8: 
 9: /**
10:  * A helper class for communication with ePay.
11:  *
12:  * See http://www.betalingsterminal.no/Netthandel-forside/Teknisk-veiledning/API/ for
13:  * a description of the returned objects
14:  */
15: class EpaymentService
16: {
17:     /** @var string Shops merchant id. */
18:     private string $merchantId;
                ^
19: 
20:     /** @var string Service password. */
21:     private string $password;
22: 
23:     /** @var ?SoapClient Service connection. */
24:     private ?SoapClient $soapClient = null;
25: 
26:     /** @var array<int, string> */
27:     private const PAYMENT_TYPES = [
28:         1  => 'Dankort/Visa-Dankort',

ERROR: Unable to parse file: /code/application/inc/Services/UploadHandler.php
ERROR: Parse error at line 19 column 13:

 9: use getID3;
10: use Symfony\Component\HttpFoundation\File\File as FileHandeler;
11: use Symfony\Component\HttpFoundation\File\UploadedFile;
12: 
13: class UploadHandler
14: {
15:     /** A well compressed JPEG */
16:     private const MAX_BYTE_PER_PIXEL = 0.7;
17: 
18:     /** @var string Foler where the current upload will be saved. */
19:     private string $targetDir = '';
                ^
20:     /** @var string File name with out extension. */
21:     private string $baseName = '';
22:     /** @var string File extension. */
23:     private string $extension = '';
24:     private FileService $fileService;
25:     private FileHandeler $file;
26: 
27:     /**
28:      * Initialize the service.
29:      */

ERROR: Unable to parse file: /code/application/inc/Services/ConfigService.php
ERROR: Parse error at line 11 column 20:

 1: <?php
 2: 
 3: namespace App\Services;
 4: 
 5: use App\DTO\EmailConfig;
 6: use Exception;
 7: 
 8: class ConfigService
 9: {
10:     /** @var array<string, mixed> Store the configurations. */
11:     private static array $config = [];
                       ^
12: 
13:     /**
14:      * Load the site configurations.
15:      *
16:      * Will fallback to config_sample.php if config.php does not exist.
17:      */
18:     public static function load(string $basePath): void
19:     {
20:         $config = @include $basePath . '/inc/config.php';
21:         if ($config === false) {

ERROR: Unable to parse file: /code/application/inc/Services/InvoicePdfService.php
ERROR: Parse error at line 20 column 13:

10: use TCPDF;
11: 
12: class InvoicePdfService
13: {
14:     private const CELL_WIDTH_QUANTITY = 24;
15:     private const CELL_WIDTH_TITLE = 106;
16:     private const CELL_WIDTH_PRICE = 29;
17:     private const CELL_WIDTH_TOTAL = 34;
18:     private const MAX_PRODCUTS = 20;
19: 
20:     private TCPDF $pdf;
                ^
21:     private Invoice $invoice;
22: 
23:     /**
24:      * Create the service.
25:      *
26:      * @throws InvalidInput
27:      */
28:     public function __construct(Invoice $invoice)
29:     {
30:         if (InvoiceStatus::New === $invoice->getStatus()) {

ERROR: Unable to parse file: /code/application/inc/Services/DbService.php
ERROR: Parse error at line 12 column 13:

 2: 
 3: namespace App\Services;
 4: 
 5: use App\Exceptions\Exception;
 6: use PDO;
 7: use PDOException;
 8: use PDOStatement;
 9: 
10: class DbService
11: {
12:     private ?int $timeOffset = null;
                ^
13:     private ?PDO $connection = null;
14:     private string $driver = 'mysql';
15:     /** @var bool[] */
16:     private array $loadedTables = [];
17:     private string $dsn = '';
18:     private string $user = '';
19:     private string $password = '';
20: 
21:     /**
22:      * Connect the database and set session to UTF-8 Danish.

ERROR: Unable to parse file: /code/application/inc/Services/RenderService.php
ERROR: Parse error at line 11 column 13:

 1: <?php
 2: 
 3: namespace App\Services;
 4: 
 5: use App\TwigExtensions;
 6: use Twig\Environment;
 7: use Twig\Loader\FilesystemLoader;
 8: 
 9: class RenderService
10: {
11:     private Environment $twig;
                ^
12: 
13:     public function __construct()
14:     {
15:         $app = app();
16:         $templatePath = $app->basePath('/theme');
17:         $loader = new FilesystemLoader('default/', $templatePath);
18:         $langPath = 'default/' . ConfigService::getString('locale', 'C') . '/';
19:         if (file_exists($templatePath . '/' . $langPath)) {
20:             $loader->prependPath($langPath);
21:         }

ERROR: Unable to parse file: /code/application/inc/Services/FileService.php
ERROR: Parse error at line 29 column 45:

19:     public function createFolder(string $path): void
20:     {
21:         $this->checkPermittedTargetPath($path);
22: 
23:         $app = app();
24: 
25:         if (file_exists($app->basePath($path))) {
26:             throw new InvalidInput(_('A file or folder with the same name already exists.'));
27:         }
28: 
29:         if (!@mkdir($app->basePath($path), 0o771)) {
                                                ^
30:             throw new Exception(
31:                 _('Could not create folder. You may not have sufficient rights to this folder.')
32:             );
33:         }
34:     }
35: 
36:     /**
37:      * Delete folder.
38:      *
39:      * @throws InvalidInput

ERROR: Unable to parse file: /code/application/inc/Services/OrmService.php
ERROR: Parse error at line 11 column 13:

 1: <?php
 2: 
 3: namespace App\Services;
 4: 
 5: use App\Exceptions\Exception;
 6: use App\Models\AbstractEntity;
 7: 
 8: class OrmService
 9: {
10:     /** @var array<string, array<int, ?AbstractEntity>> Cache entity by id. */
11:     private array $byId = [];
                ^
12: 
13:     /** @var array<string, array<string, array<int, AbstractEntity>>> Cache multiple entity by query. */
14:     private array $bySql = [];
15: 
16:     /** @var array<string, array<string, ?AbstractEntity>> Cache entity by query. */
17:     private array $oneBySql = [];
18: 
19:     /**
20:      * Get a single entitly by id.
21:      *

ERROR: Unable to parse file: /code/application/inc/Services/EmailService.php
ERROR: Parse error at line 16 column 13:

 6: use App\DTO\EmailConfig;
 7: use App\Exceptions\Exception;
 8: use App\Exceptions\SendEmail;
 9: use App\Models\Contact;
10: use App\Models\Email;
11: use PHPMailer\PHPMailer\PHPMailer;
12: 
13: class EmailService
14: {
15:     /** @var array<string, bool> */
16:     private array $ceche = [];
                ^
17: 
18:     /**
19:      * Checks if email an address looks valid and that an mx server is responding.
20:      */
21:     public function valideMail(string $email): bool
22:     {
23:         $user = preg_replace('/@.+$/u', '', $email);
24:         if (null === $user) {
25:             throw new Exception('preg_replace failed');
26:         }

ERROR: Unable to parse file: /code/application/inc/Services/ImageService.php
ERROR: Parse error at line 9 column 13:

 1: <?php
 2: 
 3: namespace App\Services;
 4: 
 5: use AJenbo\Image;
 6: 
 7: class ImageService
 8: {
 9:     private Image $image;
                ^
10:     private int $cropX = 0;
11:     private int $cropY = 0;
12:     private int $cropW;
13:     private int $cropH;
14:     private bool $autoCrop = false;
15:     private int $maxW;
16:     private int $maxH;
17:     private int $flip = 0;
18:     private int $rotate = 0;
19: 

ERROR: Unable to parse file: /code/application/inc/Http/Request.php
ERROR: Parse error at line 18 column 13:

 8: use App\Services\OrmService;
 9: use Exception;
10: use Symfony\Component\HttpFoundation\InputBag;
11: use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
12: use Symfony\Component\HttpFoundation\Session\Session;
13: use Symfony\Component\HttpFoundation\Session\SessionInterface;
14: use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
15: 
16: class Request extends SymfonyRequest
17: {
18:     private ?User $user = null;
                ^
19: 
20:     /**
21:      * @param array<mixed>    $query      The GET parameters
22:      * @param array<mixed>    $request    The POST parameters
23:      * @param array<mixed>    $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
24:      * @param array<mixed>    $cookies    The COOKIE parameters
25:      * @param array<mixed>    $files      The FILES parameters
26:      * @param array<mixed>    $server     The SERVER parameters
27:      * @param resource|string $content    The raw body data
28:      */

ERROR: Unable to parse file: /code/application/inc/Http/Controllers/Admin/InvoiceController.php
ERROR: Parse error at line 45 column 9:

35:             $request->query->getInt('id') ?: null,
36:             $request->query->getInt('y'),
37:             $request->query->getInt('m'),
38:             strval($request->get('department') ?? ''),
39:             strval($request->get('status', 'activ')),
40:             strval($request->get('name') ?? ''),
41:             strval($request->get('tlf') ?? ''),
42:             strval($request->get('email') ?? ''),
43:             $momssats,
44:             strval($request->get('clerk') ?? ''),
45:         );
            ^
46: 
47:         $user = $request->user();
48:         if (!$user) {
49:             throw new Exception('You need to be logged in to access invoices.');
50:         }
51: 
52:         $where = $this->generateFilterInvoiceBySelection($selected, $user);
53: 
54:         $db = app(DbService::class);
55: 

ERROR: Unable to parse file: /code/application/inc/Http/Controllers/Admin/ExplorerController.php
ERROR: Parse error at line 31 column 13:

21: use App\Services\UploadHandler;
22: use Symfony\Component\HttpFoundation\BinaryFileResponse;
23: use Symfony\Component\HttpFoundation\File\UploadedFile;
24: use Symfony\Component\HttpFoundation\JsonResponse;
25: use Symfony\Component\HttpFoundation\ParameterBag;
26: use Symfony\Component\HttpFoundation\Response;
27: use Symfony\Component\HttpFoundation\ResponseHeaderBag;
28: 
29: class ExplorerController extends AbstractAdminController
30: {
31:     private FileService $fileService;
                ^
32: 
33:     public function __construct()
34:     {
35:         $this->fileService = new FileService();
36:     }
37: 
38:     /**
39:      * Show the file manager.
40:      */
41:     public function index(Request $request): Response

ERROR: Unable to parse file: /code/application/inc/Http/Controllers/Admin/ExportController.php
ERROR: Parse error at line 19 column 13:

 9: use App\Services\ConfigService;
10: use App\Services\DbService;
11: use App\Services\OrmService;
12: use Exception;
13: use GuzzleHttp\Psr7\Uri;
14: use Symfony\Component\HttpFoundation\Response;
15: 
16: class ExportController extends AbstractAdminController
17: {
18:     /** @var array<int, string> */
19:     private array $header = [
                ^
20:         'ID',
21:         'Type',
22:         'SKU',
23:         'Name',
24:         'Published',
25:         'Is featured?',
26:         'Visibility in catalog',
27:         'Short description',
28:         'Description',
29:         'Date sale price starts',

ERROR: Unable to parse file: /code/application/inc/Http/Controllers/Payment.php
ERROR: Parse error at line 27 column 13:

17: use App\Services\EpaymentService;
18: use App\Services\InvoiceService;
19: use App\Services\OrmService;
20: use App\Services\RenderService;
21: use Symfony\Component\HttpFoundation\RedirectResponse;
22: use Symfony\Component\HttpFoundation\Response;
23: use Throwable;
24: 
25: class Payment extends Base
26: {
27:     private InvoiceService $invoiceService;
                ^
28: 
29:     /**
30:      * Initialize needed services.
31:      */
32:     public function __construct()
33:     {
34:         $this->invoiceService = new InvoiceService();
35:     }
36: 
37:     /**

ERROR: Unable to parse file: /code/application/inc/Http/Controllers/Shopping.php
ERROR: Parse error at line 20 column 13:

10: use App\Models\VolatilePage;
11: use App\Services\ConfigService;
12: use App\Services\EmailService;
13: use App\Services\InvoiceService;
14: use App\Services\RenderService;
15: use Symfony\Component\HttpFoundation\Response;
16: use Throwable;
17: 
18: class Shopping extends Base
19: {
20:     private InvoiceService $invoiceService;
                ^
21: 
22:     /**
23:      * Initialize needed services.
24:      */
25:     public function __construct()
26:     {
27:         $this->invoiceService = new InvoiceService();
28:     }
29: 
30:     /**

ERROR: Unable to parse file: /code/application/inc/Http/Controllers/AbstractController.php
ERROR: Parse error at line 39 column 22:

29: 
30:     /**
31:      * Add the needed headeres for a 304 cache response based on the loaded data.
32:      */
33:     protected function cachedResponse(?Response $response = null, ?int $timestamp = null, int $maxAge = 0): Response
34:     {
35:         if (!$response) {
36:             $response = new Response();
37:         }
38: 
39:         $timestamp ??= $this->getUpdateTime();
                         ^
40:         $lastModified = DateTime::createFromFormat('U', (string)$timestamp, new DateTimeZone('GMT'));
41:         if (!$lastModified) {
42:             return $response;
43:         }
44: 
45:         $response->setPublic();
46:         $response->headers->addCacheControlDirective('must-revalidate');
47:         $response->setLastModified($lastModified);
48:         $response->setMaxAge($maxAge);
49: 

ERROR: Unable to parse file: /code/application/inc/Exceptions/Handler.php
ERROR: Parse error at line 14 column 13:

 4: 
 5: use App\Http\Request;
 6: use App\Services\ConfigService;
 7: use Sentry\State\Scope;
 8: use Symfony\Component\HttpFoundation\JsonResponse;
 9: use Symfony\Component\HttpFoundation\Response;
10: use Throwable;
11: 
12: class Handler
13: {
14:     private ?string $lastLogId;
                ^
15: 
16:     /** @var array<int, string> */
17:     private array $dontReport = [
18:         InvalidInput::class,
19:     ];
20: 
21:     /**
22:      * Set error loggin.
23:      */
24:     public function __construct()

ERROR: Unable to parse file: /code/application/inc/helpers.php
ERROR: Parse error at line 94 column 39:

 84: 
 85: /**
 86:  * Natsort an array.
 87:  *
 88:  * @param array<array<mixed>> $rows      Array to sort
 89:  * @param int|string          $orderBy   Key to sort by
 90:  * @param string              $direction desc for revers sorting
 91:  *
 92:  * @return array<array<mixed>>
 93:  */
 94: function arrayNatsort(array $rows, int|string $orderBy, string $direction = 'asc'): array
                                           ^
 95: {
 96:     $tempArray = [];
 97:     foreach ($rows as $rowKey => $row) {
 98:         $tempArray[$rowKey] = $row[$orderBy];
 99:     }
100: 
101:     natcasesort($tempArray);
102: 
103:     if (in_array($direction, ['desc', '-'], true)) {
104:         arsort($tempArray);

ERROR: Unable to parse file: /code/application/inc/Models/Page.php
ERROR: Parse error at line 19 column 13:

 9: class Page extends AbstractRenderable implements InterfaceRichText
10: {
11:     use HasIcon;
12: 
13:     /** Table name in database. */
14:     public const TABLE_NAME = 'sider';
15: 
16:     // Backed by DB
17: 
18:     /** @var string Stock keeping unit. */
19:     private string $sku = '';
                ^
20: 
21:     /** @var int Latest save time. */
22:     private int $timeStamp;
23: 
24:     /** @var string Page keywords, coma seporated. */
25:     private string $keywords = '';
26: 
27:     /** @var string HTML body. */
28:     private string $html = '';
29: 

ERROR: Unable to parse file: /code/application/inc/Models/Epayment.php
ERROR: Parse error at line 11 column 13:

 1: <?php
 2: 
 3: namespace App\Models;
 4: 
 5: use App\Services\EpaymentService;
 6: use stdClass;
 7: 
 8: class Epayment
 9: {
10:     /** The manager for handeling service communication. */
11:     private EpaymentService $service;
                ^
12: 
13:     /** Id of transaction. */
14:     private int $transactionId = 0;
15: 
16:     /** Transaction ammount. */
17:     private int $amount = 0;
18: 
19:     /** Amount that was transfered to the shop. */
20:     private int $amountCaptured = 0;
21: 

ERROR: Unable to parse file: /code/application/inc/Models/File.php
ERROR: Parse error at line 19 column 13:

 9: use Symfony\Component\Mime\MimeTypes;
10: 
11: class File extends AbstractEntity
12: {
13:     /** Table name in database. */
14:     public const TABLE_NAME = 'files';
15: 
16:     // Backed by DB
17: 
18:     /** @var string File path. */
19:     private string $path;
                ^
20: 
21:     /** @var string File mime. */
22:     private string $mime;
23: 
24:     /** @var int File byte size. */
25:     private int $size;
26: 
27:     /** @var string Text description of file. */
28:     private string $description = '';
29: 

ERROR: Unable to parse file: /code/application/inc/Models/Invoice.php
ERROR: Parse error at line 19 column 13:

 9: use App\Services\EmailService;
10: 
11: class Invoice extends AbstractEntity
12: {
13:     /** Table name in database. */
14:     public const TABLE_NAME = 'fakturas';
15: 
16:     // Backed by DB
17: 
18:     /** @var int createTime */
19:     private int $timeStamp = 0;
                ^
20: 
21:     /** @var ?int Finalized time */
22:     private ?int $timeStampPay;
23: 
24:     /** @var float Full amount */
25:     private float $amount = 0.00;
26: 
27:     /** @var string Billing name */
28:     private string $name = '';
29: 

ERROR: Unable to parse file: /code/application/inc/Models/AbstractRenderable.php
ERROR: Parse error at line 10 column 15:

 1: <?php
 2: 
 3: namespace App\Models;
 4: 
 5: use App\Contracts\Renderable;
 6: 
 7: abstract class AbstractRenderable extends AbstractEntity implements Renderable
 8: {
 9:     /** @var string The title. */
10:     protected string $title = '';
                  ^
11: 
12:     /**
13:      * Set the title.
14:      *
15:      * @return $this
16:      */
17:     public function setTitle(string $title): self
18:     {
19:         $this->title = $title;
20: 

ERROR: Unable to parse file: /code/application/inc/Models/Contact.php
ERROR: Parse error at line 16 column 13:

 6: use App\Services\EmailService;
 7: 
 8: class Contact extends AbstractEntity
 9: {
10:     /**  Table name in database. */
11:     public const TABLE_NAME = 'email';
12: 
13:     // Backed by DB
14: 
15:     /** @var string Name */
16:     private string $name = '';
                ^
17: 
18:     /** @var string Email */
19:     private string $email = '';
20: 
21:     /** @var string Address */
22:     private string $address = '';
23: 
24:     /** @var string Country */
25:     private string $country = '';
26: 

ERROR: Unable to parse file: /code/application/inc/Models/Category.php
ERROR: Parse error at line 25 column 13:

15:     public const TABLE_NAME = 'kat';
16:     /** Do not show category. */
17:     public const HIDDEN = 0;
18:     /** Gallery rendering of pages. */
19:     public const GALLERY = 1;
20:     /** List rendering of pages. */
21:     public const LIST = 2;
22: 
23:     // Backed by DB
24: 
25:     private ?int $parentId;
                ^
26: 
27:     /** @var int Render mode for page list. */
28:     private int $renderMode = 1;
29:     /** @var string Contact email. */
30:     private string $email = '';
31:     /** @var bool Are children to be fetched by weight. */
32:     private bool $weightedChildren = false;
33:     /** @var int Sorting weight. */
34:     private int $weight = 0;
35: 

ERROR: Unable to parse file: /code/application/inc/Models/Table.php
ERROR: Parse error at line 19 column 13:

 9: use App\Services\OrmService;
10: 
11: class Table extends AbstractEntity
12: {
13:     /** Table name in database. */
14:     public const TABLE_NAME = 'lists';
15: 
16:     // Backed by DB
17: 
18:     /** @var int Parent page id. */
19:     private int $pageId;
                ^
20: 
21:     /** @var string Table caption. */
22:     private string $title = '';
23: 
24:     /** @var int The default column to order by, starting from 0. */
25:     private int $orderBy = 0;
26: 
27:     /** @var bool If rows can be linked to pages. */
28:     private bool $hasLinks = false;
29: 

ERROR: Unable to parse file: /code/application/inc/Models/CustomSorting.php
ERROR: Parse error at line 15 column 13:

 5: use App\Services\DbService;
 6: 
 7: class CustomSorting extends AbstractEntity
 8: {
 9:     /**  Table name in database. */
10:     public const TABLE_NAME = 'tablesort';
11: 
12:     // Backed by DB
13: 
14:     /** @var string Title */
15:     private string $title = '';
                ^
16: 
17:     /** @var string[] Ordered list of values. */
18:     private array $items = [];
19: 
20:     public function __construct(array $data = [])
21:     {
22:         $items = $data['items'] ?? null;
23:         if (!is_array($items)) {
24:             $items = [];
25:         }

ERROR: Unable to parse file: /code/application/inc/Models/Newsletter.php
ERROR: Parse error at line 22 column 13:

12: use Throwable;
13: 
14: class Newsletter extends AbstractEntity implements InterfaceRichText
15: {
16:     /**  Table name in database. */
17:     public const TABLE_NAME = 'newsmails';
18: 
19:     // Backed by DB
20: 
21:     /** @var string Sender email address */
22:     private string $from = '';
                ^
23: 
24:     /** @var string Email subject */
25:     private string $subject = '';
26: 
27:     /** @var string Body */
28:     private string $html = '';
29: 
30:     /** @var bool Has it been sent. */
31:     private bool $sent = false;
32: 

ERROR: Unable to parse file: /code/application/inc/Models/CustomPage.php
ERROR: Parse error at line 15 column 13:

 5: use App\Services\DbService;
 6: 
 7: class CustomPage extends AbstractEntity implements InterfaceRichText
 8: {
 9:     /** Table name in database. */
10:     public const TABLE_NAME = 'special';
11: 
12:     // Backed by DB
13: 
14:     /** @var string The title. */
15:     private string $title = '';
                ^
16: 
17:     /** @var int The time of last save. */
18:     private int $timeStamp;
19: 
20:     /** @var string HTML body. */
21:     private string $html = '';
22: 
23:     public function __construct(array $data = [])
24:     {
25:         $this->setTimeStamp(intval($data['timestamp']))

ERROR: Unable to parse file: /code/application/inc/Models/VolatilePage.php
ERROR: Parse error at line 10 column 13:

 1: <?php
 2: 
 3: namespace App\Models;
 4: 
 5: use App\Contracts\Renderable;
 6: 
 7: class VolatilePage implements Renderable
 8: {
 9:     /** @var string Page title */
10:     private string $title;
                ^
11: 
12:     /** @var string Page link */
13:     private string $link;
14: 
15:     /** @var Renderable[] Content list */
16:     private array $list;
17: 
18:     /**
19:      * Set varables.
20:      *

ERROR: Unable to parse file: /code/application/inc/Models/HasIcon.php
ERROR: Parse error at line 10 column 13:

 1: <?php
 2: 
 3: namespace App\Models;
 4: 
 5: use App\Services\OrmService;
 6: 
 7: trait HasIcon
 8: {
 9:     /** @var ?int File id. */
10:     private ?int $iconId;
                ^
11: 
12:     /**
13:      * @return $this
14:      */
15:     public function setIcon(?File $icon): self
16:     {
17:         $this->iconId = $icon ? $icon->getId() : null;
18: 
19:         return $this;
20:     }

ERROR: Unable to parse file: /code/application/inc/Models/User.php
ERROR: Parse error at line 30 column 13:

20:     /** Full access user */
21:     public const ADMINISTRATOR = 1;
22: 
23:     /** Can't edit other users */
24:     public const MANAGER = 3;
25: 
26:     /** Can only handle orders */
27:     public const CLERK = 4;
28: 
29:     /** @var string User's full name. */
30:     private string $fullName = '';
                ^
31: 
32:     /** @var string User's nick name. */
33:     private string $nickname = '';
34: 
35:     /** @var string User's Password hash. */
36:     private string $passwordHash = '';
37: 
38:     /** @var int User's access level. */
39:     private int $accessLevel = 0;
40: 

ERROR: Unable to parse file: /code/application/inc/Models/Requirement.php
ERROR: Parse error at line 15 column 13:

 5: use App\Services\DbService;
 6: 
 7: class Requirement extends AbstractRenderable implements InterfaceRichText
 8: {
 9:     /** Table name in database. */
10:     public const TABLE_NAME = 'krav';
11: 
12:     // Backed by DB
13: 
14:     /** @var string The body HTML. */
15:     private string $html = '';
                ^
16: 
17:     public function __construct(array $data = [])
18:     {
19:         $this->setHtml(strval($data['html']))
20:             ->setTitle(strval($data['title']))
21:             ->setId(intOrNull($data['id'] ?? null));
22:     }
23: 
24:     public static function mapFromDB(array $data): array
25:     {

ERROR: Unable to parse file: /code/application/inc/Models/Email.php
ERROR: Parse error at line 14 column 13:

 4: 
 5: use App\Exceptions\InvalidInput;
 6: use App\Services\DbService;
 7: use App\Services\EmailService;
 8: 
 9: class Email extends AbstractEntity
10: {
11:     /**  Table name in database. */
12:     public const TABLE_NAME = 'emails';
13: 
14:     private EmailService $emailService;
                ^
15: 
16:     // Backed by DB
17: 
18:     /** @var string Subject */
19:     private string $subject = '';
20: 
21:     /** @var string HTML body */
22:     private string $body = '';
23: 
24:     /** @var string Semder name */

ERROR: Unable to parse file: /code/application/inc/Models/Brand.php
ERROR: Parse error at line 18 column 13:

 8: class Brand extends AbstractRenderable
 9: {
10:     use HasIcon;
11: 
12:     /** Table name in database. */
13:     public const TABLE_NAME = 'maerke';
14: 
15:     // Backed by DB
16: 
17:     /** @var string The external link for this brand. */
18:     private string $link = '';
                ^
19: 
20:     public function __construct(array $data = [])
21:     {
22:         $this->iconId = intOrNull($data['icon_id']);
23:         $this->setLink(strval($data['link']))
24:             ->setTitle(strval($data['title']))
25:             ->setId(intOrNull($data['id'] ?? null));
26:     }
27: 
28:     public static function mapFromDB(array $data): array

ERROR: Unable to parse file: /code/application/inc/config_sample.php
ERROR: Parse error at line 33 column 9:

23:     'emails' => [
24:         'mail@example.com' => new EmailConfig(
25:             'mail@example.com',
26:             'password',
27:             'INBOX.Sent',
28:             'imap.example.dk',
29:             143,
30:             'smtp.example.com',
31:             25,
32:             true,
33:         ),
            ^
34:     ],
35: 
36:     'interests' => [
37:         'Stuff',
38:     ],
39: 
40:     // Payment gateway
41:     'pbsid'       => '',
42:     'pbspassword' => '',
43:     'pbsfix'      => '',

ERROR: Unable to parse file: /code/application/inc/Enums/ColumnType.php
ERROR: Parse error at line 5 column 6:

 1: <?php
 2: 
 3: namespace App\Enums;
 4: 
 5: enum ColumnType: int
         ^
 6: {
 7:     case String = 0;
 8:     case Int = 1;
 9:     case Price = 2;
10:     case SalesPrice = 3;
11:     case PreviousPrice = 4;
12: }
13: 

ERROR: Unable to parse file: /code/application/inc/Enums/InvoiceStatus.php
ERROR: Parse error at line 5 column 6:

 1: <?php
 2: 
 3: namespace App\Enums;
 4: 
 5: enum InvoiceStatus: string
         ^
 6: {
 7:     case New = 'new';
 8:     case Locked = 'locked';
 9:     case Accepted = 'accepted';
10:     case Cash = 'cash';
11:     case Giro = 'giro';
12:     case PbsOk = 'pbsok';
13:     case Rejected = 'rejected';
14:     case Canceled = 'canceled';
15: }

ERROR: Unable to parse file: /code/application/inc/Enums/InvoiceAction.php
ERROR: Parse error at line 5 column 6:

 1: <?php
 2: 
 3: namespace App\Enums;
 4: 
 5: enum InvoiceAction: string
         ^
 6: {
 7:     case Save = 'save';
 8:     case Lock = 'lock';
 9:     case Email = 'email';
10:     case Giro = 'giro';
11:     case Cash = 'cash';
12:     case Cancel = 'cancel';
13: }
14: 

ERROR: Unable to parse file: /code/application/inc/Application.php
ERROR: Parse error at line 20 column 13:

10: use App\Services\ConfigService;
11: use Symfony\Component\HttpFoundation\RedirectResponse;
12: use Symfony\Component\HttpFoundation\Response;
13: use Throwable;
14: 
15: class Application
16: {
17:     /** @var ?self */
18:     private static $instance;
19: 
20:     private string $basePath;
                ^
21: 
22:     /**
23:      * All of the global middleware for the application.
24:      *
25:      * @var array<class-string<Middleware>>
26:      */
27:     protected array $middleware = [];
28: 
29:     /** @var array<string, array<int, Route>> */
30:     private array $routes = [];

INFO: 83/83 source files have been analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1.408s
INFO: Final Memory: 7M/155M
INFO: ------------------------------------------------------------------------
12
stylelint
stylelint engine documentation
View output
•• Timing: .engineConfig: 0.034s
Error: No configuration provided. Make sure you have added a config file with rules enabled.
See our documentation at https://docs.codeclimate.com/docs/stylelint for more information.