Code Duplication    Length = 10-10 lines in 2 locations

src/ProgramKeahlianServiceProvider.php 2 locations

@@ 104-113 (lines=10) @@
101
     *
102
     * @return void
103
     */
104
    protected function langHandle($publish = '')
105
    {
106
        $packageTranslationsPath = __DIR__.'/resources/lang';
107
108
        $this->loadTranslationsFrom($packageTranslationsPath, 'program-keahlian');
109
110
        $this->publishes([
111
            $packageTranslationsPath => resource_path('lang/vendor/program-keahlian'),
112
        ], $publish ? $publish : 'program-keahlian-lang');
113
    }
114
115
    /**
116
     * Loading and publishing package's views
@@ 120-129 (lines=10) @@
117
     *
118
     * @return void
119
     */
120
    protected function viewHandle($publish = '')
121
    {
122
        $packageViewsPath = __DIR__.'/resources/views';
123
124
        $this->loadViewsFrom($packageViewsPath, 'program-keahlian');
125
126
        $this->publishes([
127
            $packageViewsPath => resource_path('views/vendor/program-keahlian'),
128
        ], $publish ? $publish : 'program-keahlian-views');
129
    }
130
131
    /**
132
     * Publishing package's assets (JavaScript, CSS, images...)