Code Duplication    Length = 15-15 lines in 2 locations

src/Observers/AbstractObserver.php 1 location

@@ 412-426 (lines=15) @@
409
     *
410
     * @return boolean TRUE if the value is set, else FALSE
411
     */
412
    protected function hasValue($name)
413
    {
414
415
        // query whether or not the header is available
416
        if ($this->hasHeader($name)) {
417
            // load the key for the row
418
            $headerValue = $this->getHeader($name);
419
420
            // query whether the rows column has a vaild value
421
            return (isset($this->row[$headerValue]) && $this->row[$headerValue] != '');
422
        }
423
424
        // return FALSE if not
425
        return false;
426
    }
427
428
    /**
429
     * Set the value in the passed column name.

src/Subjects/AbstractSubject.php 1 location

@@ 349-363 (lines=15) @@
346
     *
347
     * @return boolean TRUE if the value is set, else FALSE
348
     */
349
    public function hasValue($name)
350
    {
351
352
        // query whether or not the header is available
353
        if ($this->hasHeader($name)) {
354
            // load the key for the row
355
            $headerValue = $this->getHeader($name);
356
357
            // query whether the rows column has a vaild value
358
            return (isset($this->row[$headerValue]) && $this->row[$headerValue] != '');
359
        }
360
361
        // return FALSE if not
362
        return false;
363
    }
364
365
    /**
366
     * Set the value in the passed column name.