Code Duplication    Length = 15-15 lines in 2 locations

src/ResourceAggregator.php 2 locations

@@ 133-147 (lines=15) @@
130
        $this->message(' <info>[ OK ]</info>');
131
    }
132
133
    protected function installLocale()
134
    {
135
        $this->message('Installing locales...', static::FLAG_SPACE_PAD_CONTINUE);
136
        $localePath = $this->testRootDir . '/app/locale/';
137
        foreach ($this->packages as $packageFile => $package) {
138
            $path = $package['path'];
139
            if ($items = glob($path . '/phwoolcon-package/locale/*')) {
140
                foreach ($items as $source) {
141
                    $destination = $localePath . basename($source);
142
                    symlinkDirOverride($source, $destination);
143
                }
144
            }
145
        }
146
        $this->message(' <info>[ OK ]</info>');
147
    }
148
149
    protected function installMigrations()
150
    {
@@ 190-204 (lines=15) @@
187
        $this->message(' <info>[ OK ]</info>');
188
    }
189
190
    protected function installViews()
191
    {
192
        $this->message('Installing views...', static::FLAG_SPACE_PAD_CONTINUE);
193
        $viewPath = $this->testRootDir . '/app/views/';
194
        foreach ($this->packages as $packageFile => $package) {
195
            $path = $package['path'];
196
            if ($items = glob($path . '/phwoolcon-package/views/*')) {
197
                foreach ($items as $source) {
198
                    $destination = $viewPath . basename($source);
199
                    symlinkDirOverride($source, $destination);
200
                }
201
            }
202
        }
203
        $this->message(' <info>[ OK ]</info>');
204
    }
205
206
    protected function message($message, $flag = null)
207
    {