Code Duplication    Length = 10-10 lines in 2 locations

src/Eloquent/Model.php 2 locations

@@ 89-98 (lines=10) @@
86
    /**
87
     * {@inheritdoc}
88
     */
89
    public function hasOne($related, $foreignKey = null, $localKey = null)
90
    {
91
        $instance = $this->newRelatedInstance($related);
92
93
        $foreignKey = $foreignKey ?: $this->getForeignKey();
94
95
        $localKey = $localKey ?: $this->getKeyName();
96
97
        return $this->newHasOne($instance->newQuery(), $this, $foreignKey, $localKey);
98
    }
99
100
    /**
101
     * {@inheritdoc}
@@ 103-112 (lines=10) @@
100
    /**
101
     * {@inheritdoc}
102
     */
103
    public function hasMany($related, $foreignKey = null, $localKey = null)
104
    {
105
        $instance = $this->newRelatedInstance($related);
106
107
        $foreignKey = $foreignKey ?: $this->getForeignKey();
108
109
        $localKey = $localKey ?: $this->getKeyName();
110
111
        return $this->newHasMany($instance->newQuery(), $this, $foreignKey, $localKey);
112
    }
113
114
    /**
115
     * {@inheritdoc}