Code Duplication    Length = 15-15 lines in 2 locations

src/Observers/AbstractObserver.php 1 location

@@ 386-400 (lines=15) @@
383
     *
384
     * @return boolean TRUE if the value is set, else FALSE
385
     */
386
    protected function hasValue($name)
387
    {
388
389
        // query whether or not the header is available
390
        if ($this->hasHeader($name)) {
391
            // load the key for the row
392
            $headerValue = $this->getHeader($name);
393
394
            // query whether the rows column has a vaild value
395
            return (isset($this->row[$headerValue]) && $this->row[$headerValue] != '');
396
        }
397
398
        // return FALSE if not
399
        return false;
400
    }
401
402
    /**
403
     * Set the value in the passed column name.

src/Subjects/AbstractSubject.php 1 location

@@ 340-354 (lines=15) @@
337
     *
338
     * @return boolean TRUE if the value is set, else FALSE
339
     */
340
    public function hasValue($name)
341
    {
342
343
        // query whether or not the header is available
344
        if ($this->hasHeader($name)) {
345
            // load the key for the row
346
            $headerValue = $this->getHeader($name);
347
348
            // query whether the rows column has a vaild value
349
            return (isset($this->row[$headerValue]) && $this->row[$headerValue] != '');
350
        }
351
352
        // return FALSE if not
353
        return false;
354
    }
355
356
    /**
357
     * Set the value in the passed column name.