Code Duplication    Length = 13-13 lines in 2 locations

handlers/Validator.php 2 locations

@@ 61-73 (lines=13) @@
58
     * Validates module author name
59
     * @return boolean
60
     */
61
    protected function validateModuleAuthorSkeleton()
62
    {
63
        $value = $this->getSubmitted('module.author');
64
65
        if (empty($value)) {
66
            $vars = array('@field' => $this->language->text('Author'));
67
            $error = $this->language->text('@field is required', $vars);
68
            $this->setError('module.author', $error);
69
            return false;
70
        }
71
72
        return true;
73
    }
74
75
    /**
76
     * Validates a module ID
@@ 102-114 (lines=13) @@
99
    /**
100
     * Validates a module version
101
     */
102
    protected function validateModuleVersionSkeleton()
103
    {
104
        $value = $this->getSubmitted('module.version');
105
106
        if (empty($value)) {
107
            $vars = array('@field' => $this->language->text('Version'));
108
            $error = $this->language->text('@field is required', $vars);
109
            $this->setError('module.version', $error);
110
            return false;
111
        }
112
113
        return true;
114
    }
115
116
    /**
117
     * Validates a module core compatibility