Code Duplication    Length = 7-7 lines in 2 locations

src/Blind/Preparation.php 2 locations

@@ 99-105 (lines=7) @@
96
97
        $experiment->control([$control, $name]);
98
99
        foreach ($trials as $trial_name => $trial) {
100
            if (method_exists($trial, $name)) {
101
                $experiment->trial($trial_name, [$trial, $name]);
102
            } else {
103
                $experiment->trial($trial_name, $this->createMissingMethodCallable($trial, $name));
104
            }
105
        }
106
107
        $experiment->matcher($study->getMatcher());
108
        $experiment->chance($study->getChance());
@@ 122-128 (lines=7) @@
119
120
        $experiment->control($this->createPropertyCallable($control, $name));
121
122
        foreach ($trials as $trial_name => $trial) {
123
            if (property_exists($trial, $name)) {
124
                $experiment->trial($trial_name, $this->createPropertyCallable($trial, $name));
125
            } else {
126
                $experiment->trial($trial_name, $this->createMissingPropertyCallable($trial, $name));
127
            }
128
        }
129
130
        $experiment->matcher($study->getMatcher());
131
        $experiment->chance($study->getChance());