Skip to content

fixing phpcs

fixing phpcs #21

GitHub Actions / Qodana for PHP completed Nov 30, 2023 in 0s

69 new problems found by Qodana for PHP

Qodana for PHP

69 new problems were found

Inspection name Severity Problems
Element is not available in configured PHP version 🔴 Failure 1
Type mismatch in property assignment 🔶 Warning 2
Parameter type 🔶 Warning 2
Duplicated code fragment ◽️ Notice 35
Condition always evaluates to 'true/false' ◽️ Notice 8
PHPDoc comment matches function/method signature ◽️ Notice 4
PHPDoc comment signature is not complete ◽️ Notice 4
Missing parameter's type declaration ◽️ Notice 4
Extension is missing in composer.json ◽️ Notice 2
Duplicate branch in switch statement ◽️ Notice 2
Condition inside logical expression checked by subsequent condition ◽️ Notice 1
Deprecated ◽️ Notice 1
Type doesn't match property's declared type ◽️ Notice 1
Missing @throws tag(s) ◽️ Notice 1
Type tag without variable name ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

Details

This result was published with Qodana GitHub Action

Annotations

Check notice on line 44 in src/Statements/Let/ExportSymbol.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 46 in src/Operators/Other/ShortTernaryOperator.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 42 in src/Optimizers/FunctionCall/BasenameOptimizer.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 110 in src/Detectors/WriteDetector.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 53 in src/Optimizers/FunctionCall/CreateInstanceOptimizer.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 38 in src/Operators/Arithmetical/DivOperator.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 139 in src/Operators/Other/FetchOperator.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 324 in src/Detectors/WriteDetector.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 595 in src/Operators/Arithmetical/DivOperator.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 184 in src/CompilerFile.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 42 in src/Optimizers/FunctionCall/BasenameOptimizer.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 176 in src/Expression/NativeArrayAccess.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 42 in src/Optimizers/FunctionCall/Crc32Optimizer.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 116 in src/Expression/Closure.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 352 in src/Detectors/WriteDetector.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 69 in src/Statements/Let/ObjectPropertyAppend.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 770 in src/MethodCall.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 380 in src/Detectors/WriteDetector.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 42 in src/Optimizers/FunctionCall/Md5Optimizer.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 595 in src/Operators/Arithmetical/DivOperator.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 83 in src/Cache/MethodCache.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 42 in src/Optimizers/FunctionCall/FilePutContentsOptimizer.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 47 in src/Optimizers/FunctionCall/VarDumpOptimizer.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 283 in src/Statements/Let/ObjectProperty.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code

Check notice on line 50 in src/Optimizers/FunctionCall/CamelizeOptimizer.php

See this annotation in the file changed.

@github-actions github-actions / Qodana for PHP

Duplicated code fragment

Duplicated code