Skip to content

#43 Refactoring Codacy Issue

Codacy Production / Codacy Static Code Analysis required action Dec 29, 2023 in 0s

17 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 3
- Added 17
           

Complexity increasing per file
==============================
- src/EduFramework/Core/Controller/Error/HttpErrorDefaultController.php  1
- src/EduFramework/Core/View/StudooDebugExtension.php  1
- app/Controller/DataBaseTestController.php  1
         

See the complete overview on Codacy

Annotations

Check notice on line 32 in app/Controller/DataBaseTestController.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Controller/DataBaseTestController.php#L32

Space before opening parenthesis of function call prohibited

Check notice on line 36 in app/Controller/DataBaseTestController.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Controller/DataBaseTestController.php#L36

Array key not aligned correctly; expected 13 spaces but found 16

Check notice on line 37 in app/Controller/DataBaseTestController.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Controller/DataBaseTestController.php#L37

Array key not aligned correctly; expected 13 spaces but found 16

Check notice on line 30 in src/EduFramework/Core/Service/DatabaseMariadb.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/Service/DatabaseMariadb.php#L30

Array key not aligned correctly; expected 13 spaces but found 16

Check notice on line 30 in src/EduFramework/Core/Service/DatabaseMysql.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/Service/DatabaseMysql.php#L30

Array key not aligned correctly; expected 13 spaces but found 16

Check notice on line 31 in src/EduFramework/Core/Service/DatabaseMysql.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/Service/DatabaseMysql.php#L31

Array key not aligned correctly; expected 13 spaces but found 16

Check notice on line 29 in src/EduFramework/Core/View/StudooDebugExtension.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/StudooDebugExtension.php#L29

Array value not aligned correctly; expected 16 spaces but found 12

Check notice on line 30 in src/EduFramework/Core/View/StudooDebugExtension.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/StudooDebugExtension.php#L30

Closing parenthesis not aligned correctly; expected 15 space(s) but found 8

Check notice on line 35 in src/EduFramework/Core/View/StudooDebugExtension.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/StudooDebugExtension.php#L35

Missing parameter comment

Check notice on line 38 in src/EduFramework/Core/View/StudooDebugExtension.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/StudooDebugExtension.php#L38

Avoid using short method names like StudooDebugExtension::dd(). The configured minimum method name length is 3.

Check warning on line 41 in src/EduFramework/Core/View/StudooDebugExtension.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/StudooDebugExtension.php#L41

The use of function var_dump() is discouraged

Check failure on line 44 in src/EduFramework/Core/View/StudooDebugExtension.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/StudooDebugExtension.php#L44

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<div style=\"background-color: grey; color: white; padding: 10px; margin: 10px 0;\">
'.

Check failure on line 44 in src/EduFramework/Core/View/StudooDebugExtension.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/StudooDebugExtension.php#L44

Use of echo language construct is discouraged.

Check notice on line 38 in src/EduFramework/Core/View/TwigCore.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/TwigCore.php#L38

Opening parenthesis of a multi-line function call must be the last content on the line

Check notice on line 39 in src/EduFramework/Core/View/TwigCore.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/TwigCore.php#L39

Array key not aligned correctly; expected 48 spaces but found 12

Check notice on line 40 in src/EduFramework/Core/View/TwigCore.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/TwigCore.php#L40

Array key not aligned correctly; expected 48 spaces but found 12

Check notice on line 41 in src/EduFramework/Core/View/TwigCore.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/EduFramework/Core/View/TwigCore.php#L41

Closing parenthesis not aligned correctly; expected 47 space(s) but found 12