Code Duplication    Length = 15-15 lines in 2 locations

src/ResourceAggregator.php 2 locations

@@ 124-138 (lines=15) @@
121
        $this->message(' <info>[ OK ]</info>');
122
    }
123
124
    protected function installLocale()
125
    {
126
        $this->message('Installing locales...', static::FLAG_SPACE_PAD_CONTINUE);
127
        $localePath = $this->testRootDir . '/app/locale/';
128
        foreach ($this->packages as $packageFile => $package) {
129
            $path = $package['path'];
130
            if ($items = glob($path . '/phwoolcon-package/locale/*')) {
131
                foreach ($items as $source) {
132
                    $destination = $localePath . basename($source);
133
                    symlinkDirOverride($source, $destination);
134
                }
135
            }
136
        }
137
        $this->message(' <info>[ OK ]</info>');
138
    }
139
140
    protected function installMigrations()
141
    {
@@ 181-195 (lines=15) @@
178
        $this->message(' <info>[ OK ]</info>');
179
    }
180
181
    protected function installViews()
182
    {
183
        $this->message('Installing views...', static::FLAG_SPACE_PAD_CONTINUE);
184
        $viewPath = $this->testRootDir . '/app/views/';
185
        foreach ($this->packages as $packageFile => $package) {
186
            $path = $package['path'];
187
            if ($items = glob($path . '/phwoolcon-package/views/*')) {
188
                foreach ($items as $source) {
189
                    $destination = $viewPath . basename($source);
190
                    symlinkDirOverride($source, $destination);
191
                }
192
            }
193
        }
194
        $this->message(' <info>[ OK ]</info>');
195
    }
196
197
    protected function message($message, $flag = null)
198
    {