This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
15
16
17
/**
18
* Décrit le nom de la table
19
* que classe fait référence
20
*/
21
protected $table = 'users';
22
23
24
25
/**
26
* Retourne tous les films
27
*/
28
public function getAllMovies(){
29
30
// retourne le resultat de ma requete SELECT * FROM movies
31
return DB::table('users')->get();
32
33
}
34
35
36
/**
37
* Retourne la catégorie à laquelle appartient un objet film
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.