Code Duplication    Length = 10-13 lines in 3 locations

src/PlaygroundGame/Entity/PlayerForm.php 1 location

@@ 186-195 (lines=10) @@
183
        throw new \Exception("Not used");
184
    }
185
186
    public function getInputFilter()
187
    {
188
        if (!$this->inputFilter) {
189
            $inputFilter = new InputFilter();
190
            $inputFilter = parent::getInputFilter();
191
            $this->inputFilter = $inputFilter;
192
        }
193
194
        return $this->inputFilter;
195
    }
196
}
197

src/PlaygroundGame/Entity/PostVoteForm.php 1 location

@@ 202-212 (lines=11) @@
199
        throw new \Exception("Not used");
200
    }
201
202
    public function getInputFilter()
203
    {
204
        if (!$this->inputFilter) {
205
            $inputFilter = new InputFilter();
206
            $inputFilter = parent::getInputFilter();
207
208
            $this->inputFilter = $inputFilter;
209
        }
210
211
        return $this->inputFilter;
212
    }
213
214
    public function setTranslatableLocale($locale)
215
    {

src/PlaygroundGame/Entity/TradingCard.php 1 location

@@ 147-159 (lines=13) @@
144
        throw new \Exception("Not used");
145
    }
146
147
    public function getInputFilter()
148
    {
149
        if (!$this->inputFilter) {
150
            $inputFilter = new InputFilter();
151
            $factory = new InputFactory();
152
153
            $inputFilter = parent::getInputFilter();
154
155
            $this->inputFilter = $inputFilter;
156
        }
157
158
        return $this->inputFilter;
159
    }
160
}
161