Code Duplication    Length = 10-10 lines in 2 locations

src/NilaiServiceProvider.php 2 locations

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