Code Duplication    Length = 8-8 lines in 2 locations

src/models/ActiveRecord.php 1 location

@@ 40-47 (lines=8) @@
37
     *
38
     * @return array
39
     */
40
    public function scenarios()
41
    {
42
        return [
43
            ModelInterface::SCENARIO_CREATE => $this->attributes(),
44
            ModelInterface::SCENARIO_UPDATE => $this->attributes(),
45
            self::SCENARIO_DEFAULT => $this->attributes(),
46
        ];
47
    }
48
}
49

src/models/MultilanguageValidateModel.php 1 location

@@ 55-62 (lines=8) @@
52
     *
53
     * @return array
54
     */
55
    public function scenarios(): array
56
    {
57
        return [
58
            ModelInterface::SCENARIO_CREATE => $this->attributes(),
59
            ModelInterface::SCENARIO_UPDATE => $this->attributes(),
60
            self::SCENARIO_DEFAULT => $this->attributes(),
61
        ];
62
    }
63
64
    /**
65
     * Labels of all fields.