Code Duplication    Length = 16-16 lines in 4 locations

src/View/Helper/AssetsHelper.php 4 locations

@@ 88-103 (lines=16) @@
85
     *
86
     * @return  $this
87
     */
88
    public function fancyBox()
89
    {
90
        $this->jquery();
91
92
        $this->Html->script('libs/fancybox.min.js', $this->_setOptions([
93
            'alias'  => __FUNCTION__,
94
            'weight' => self::WEIGHT_LIB
95
        ]));
96
97
        $this->Html->css('libs/fancybox.min.css', $this->_setOptions([
98
            'alias'  => __FUNCTION__,
99
            'weight' => self::WEIGHT_CORE
100
        ]));
101
102
        return $this;
103
    }
104
105
    /**
106
     * Include font awesome.
@@ 168-183 (lines=16) @@
165
     *
166
     * @return  $this
167
     */
168
    public function jqueryFactory()
169
    {
170
        $this->jquery();
171
172
        $this->Html->script('libs/utils.min.js', $this->_setOptions([
173
            'alias'  => 'jquery-utils',
174
            'weight' => self::WEIGHT_LIB
175
        ]));
176
177
        $this->Html->script('libs/jquery-factory.min.js', $this->_setOptions([
178
            'weight' => self::WEIGHT_LIB,
179
            'alias'  => 'jquery-factory'
180
        ]));
181
182
        return $this;
183
    }
184
185
    /**
186
     * Autoload plugin assets.
@@ 215-230 (lines=16) @@
212
     *
213
     * @return  $this
214
     */
215
    public function materialize()
216
    {
217
        $this->jquery();
218
219
        $this->Html->script('libs/materialize.min.js', $this->_setOptions([
220
            'alias'  => __FUNCTION__,
221
            'weight' => self::WEIGHT_LIB
222
        ]));
223
224
        $this->Html->css('libs/materialize.min.css', $this->_setOptions([
225
            'alias'  => __FUNCTION__,
226
            'weight' => self::WEIGHT_CORE
227
        ]));
228
229
        return $this;
230
    }
231
232
    /**
233
     * Include jquery slugify plugin.
@@ 254-269 (lines=16) @@
251
     *
252
     * @return  $this
253
     */
254
    public function sweetAlert()
255
    {
256
        $this->jquery();
257
258
        $this->Html->script('libs/sweetalert.min.js', $this->_setOptions([
259
            'alias'  => __FUNCTION__,
260
            'weight' => self::WEIGHT_LIB
261
        ]));
262
263
        $this->Html->css('libs/sweetalert.min.css', $this->_setOptions([
264
            'alias'  => __FUNCTION__,
265
            'weight' => self::WEIGHT_CORE
266
        ]));
267
268
        return $this;
269
    }
270
271
    /**
272
     * Include jquery table check all.