thomas-claireau/PHP-P6-Openclassrooms

View on GitHub
src/DataFixtures/FiguresFixtures.php

Summary

Maintainability
A
50 mins
Test Coverage

Method load has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

    public function load(ObjectManager $manager)
    {
        $faker = Factory::create('fr_FR');

        $categories = ['Grabs', 'Rotations', 'Flips', 'Slides'];
Severity: Major
Found in src/DataFixtures/FiguresFixtures.php - About 2 hrs to fix

    Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function __construct(CategoryRepository $categoryRepository, PictureRepository $pictureRepository, VideoRepository $videoRepository, CommentRepository $commentRepository, FiguresRepository $figuresRepository, UserRepository $userRepository, UserPasswordEncoderInterface $encoder)
    Severity: Major
    Found in src/DataFixtures/FiguresFixtures.php - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status