Code Duplication    Length = 15-15 lines in 2 locations

src/ResourceAggregator.php 2 locations

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