Code Duplication    Length = 7-8 lines in 3 locations

src/Analyse/Lexical.php 3 locations

@@ 183-189 (lines=7) @@
180
     *
181
     * @return  void
182
     */
183
    private function handleInvalidMandatoryColumn()
184
    {
185
        $errorMessage = $this->schemaColumn->name . " on row $this->rowNumber is missing.";
186
        $this->error->setError(self::ERROR_REQUIRED_FIELD_MISSING_DATA, $errorMessage);
187
        $this->statistics->setErrorRow($this->rowNumber);
188
        $this->valid = false;
189
    }
190
191
192
    /**
@@ 214-221 (lines=8) @@
211
     *
212
     * @return  void
213
     */
214
    private function handleInvalidFormat()
215
    {
216
        $errorMessage  = "The data in column " . $this->schemaColumn->name ." on row $this->rowNumber doesn't ";
217
        $errorMessage .= "match the required format of $this->format.";
218
        $this->error->setError(self::ERROR_INVALID_FORMAT, $errorMessage);
219
        $this->statistics->setErrorRow($this->rowNumber);
220
        $this->valid = false;
221
    }
222
223
224
    /**
@@ 261-268 (lines=8) @@
258
     *
259
     * @return  void
260
     */
261
    private function handleInvalidPattern()
262
    {
263
        $errorMessage  = "The data in column " . $this->schemaColumn->name . " on row $this->rowNumber doesn't ";
264
        $errorMessage .= "match the required pattern of $this->pattern.";
265
        $this->error->setError(self::ERROR_INVALID_PATTERN, $errorMessage);
266
        $this->statistics->setErrorRow($this->rowNumber);
267
        $this->valid = false;
268
    }
269
270
271
    /**