Code Duplication    Length = 16-16 lines in 6 locations

src/View/Helper/AssetsHelper.php 6 locations

@@ 68-83 (lines=16) @@
65
     *
66
     * @return $this
67
     */
68
    public function bootstrap()
69
    {
70
        $this->jquery();
71
72
        $this->Html->script('libs/bootstrap.min.js', $this->_setOptions([
73
            'weight' => 2,
74
            'alias'  => __FUNCTION__,
75
        ]));
76
77
        $this->Html->css('libs/bootstrap.min.css', $this->_setOptions([
78
            'weight' => 1,
79
            'alias'  => __FUNCTION__,
80
        ]));
81
82
        return $this;
83
    }
84
85
    /**
86
     * Include fancybox.
@@ 90-105 (lines=16) @@
87
     *
88
     * @return $this
89
     */
90
    public function fancyBox()
91
    {
92
        $this->jquery();
93
94
        $this->Html->script('libs/fancybox.min.js', $this->_setOptions([
95
            'weight' => 2,
96
            'alias'  => __FUNCTION__,
97
        ]));
98
99
        $this->Html->css('libs/fancybox.min.css', $this->_setOptions([
100
            'weight' => 1,
101
            'alias'  => __FUNCTION__,
102
        ]));
103
104
        return $this;
105
    }
106
107
    /**
108
     * Include font awesome.
@@ 142-157 (lines=16) @@
139
     *
140
     * @return $this
141
     */
142
    public function jqueryFactory()
143
    {
144
        $this->jquery();
145
146
        $this->Html->script('libs/utils.min.js', $this->_setOptions([
147
            'weight' => 2,
148
            'alias'  => 'jquery-utils',
149
        ]));
150
151
        $this->Html->script('libs/jquery-factory.min.js', $this->_setOptions([
152
            'weight' => 2,
153
            'alias'  => 'jquery-factory',
154
        ]));
155
156
        return $this;
157
    }
158
159
    /**
160
     * Include materialize design.
@@ 164-179 (lines=16) @@
161
     *
162
     * @return $this
163
     */
164
    public function materialize()
165
    {
166
        $this->jquery();
167
168
        $this->Html->script('libs/materialize.min.js', $this->_setOptions([
169
            'weight' => 2,
170
            'alias'  => __FUNCTION__,
171
        ]));
172
173
        $this->Html->css('libs/materialize.min.css', $this->_setOptions([
174
            'weight' => 1,
175
            'alias'  => __FUNCTION__,
176
        ]));
177
178
        return $this;
179
    }
180
181
    /**
182
     * Include sweet alert.
@@ 186-201 (lines=16) @@
183
     *
184
     * @return $this
185
     */
186
    public function sweetAlert()
187
    {
188
        $this->jquery();
189
190
        $this->Html->script('libs/sweetalert.min.js', $this->_setOptions([
191
            'weight' => 2,
192
            'alias'  => __FUNCTION__,
193
        ]));
194
195
        $this->Html->css('libs/sweetalert.min.css', $this->_setOptions([
196
            'weight' => 1,
197
            'alias'  => __FUNCTION__,
198
        ]));
199
200
        return $this;
201
    }
202
203
    /**
204
     * Include jquery table check all.
@@ 225-240 (lines=16) @@
222
     *
223
     * @return $this
224
     */
225
    public function uikit()
226
    {
227
        $this->jquery();
228
229
        $this->Html->script('libs/uikit.min.js', $this->_setOptions([
230
            'weight' => 2,
231
            'alias'  => __FUNCTION__,
232
        ]));
233
234
        $this->Html->css('libs/uikit.min.css', $this->_setOptions([
235
            'weight' => 1,
236
            'alias'  => __FUNCTION__,
237
        ]));
238
239
        return $this;
240
    }
241
242
    /**
243
     * Autoload plugin assets.