Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ImportHelper::csvFromResource() method to import CSV from a resou… #21

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

nadar
Copy link
Contributor

@nadar nadar commented Feb 14, 2024

No description provided.

*/
public static function csv($filename, array $options = [])
public static function csvFromResource($resource, array $options = []): array
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function csvFromResource has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.

*/
public static function csv($filename, array $options = [])
public static function csvFromResource($resource, array $options = []): array
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method csvFromResource has 29 lines of code (exceeds 25 allowed). Consider refactoring.

Copy link

codeclimate bot commented Feb 14, 2024

Code Climate has analyzed commit 3bc941e and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2

The test coverage on the diff in this pull request is 81.8% (50% is the threshold).

This pull request will bring the total coverage in the repository to 74.1% (0.0% change).

View more on Code Climate.

@nadar nadar merged commit a32e153 into master Feb 14, 2024
22 of 23 checks passed
@nadar nadar deleted the csv-from-resource branch February 14, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant