Code Duplication    Length = 3-3 lines in 2 locations

src/Runtime/Runtime.php 2 locations

@@ 217-219 (lines=3) @@
214
     */
215
    public function getEnvOption($key, $default = null)
216
    {
217
        if (!array_key_exists('environments', $this->configuration) || !is_array($this->configuration['environments'])) {
218
            return $default;
219
        }
220
221
        if (!array_key_exists($this->environment, $this->configuration['environments'])) {
222
            return $default;
@@ 326-328 (lines=3) @@
323
     */
324
    public function getTasks()
325
    {
326
        if (!array_key_exists('environments', $this->configuration) || !is_array($this->configuration['environments'])) {
327
            return [];
328
        }
329
330
        if (!array_key_exists($this->environment, $this->configuration['environments'])) {
331
            return [];