| Conditions | 1 |
| Paths | 1 |
| Total Lines | 226 |
| Code Lines | 130 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php |
||
| 45 | public function getDefaultAssets(): array |
||
| 46 | { |
||
| 47 | return [ |
||
| 48 | [ |
||
| 49 | 'name' => 'Datatables', |
||
| 50 | 'active' => true, |
||
| 51 | 'files' => [ |
||
| 52 | [ |
||
| 53 | 'type' => 'css', |
||
| 54 | 'active' => true, |
||
| 55 | 'location' => 'adminetic/assets/css/vendors/datatables.css', |
||
| 56 | ], |
||
| 57 | [ |
||
| 58 | 'type' => 'js', |
||
| 59 | 'active' => true, |
||
| 60 | 'location' => 'adminetic/assets/js/datatable/datatables/jquery.dataTables.min.js', |
||
| 61 | ], |
||
| 62 | [ |
||
| 63 | 'type' => 'js', |
||
| 64 | 'active' => true, |
||
| 65 | 'location' => 'adminetic/assets/js/datatable/datatable-extension/dataTables.buttons.min.js', |
||
| 66 | ], |
||
| 67 | [ |
||
| 68 | 'type' => 'js', |
||
| 69 | 'active' => true, |
||
| 70 | 'location' => 'adminetic/assets/js/datatable/datatable-extension/buttons.flash.min.js', |
||
| 71 | ], |
||
| 72 | [ |
||
| 73 | 'type' => 'js', |
||
| 74 | 'active' => true, |
||
| 75 | 'location' => 'adminetic/assets/js/datatable/datatable-extension/jszip.min.js', |
||
| 76 | ], |
||
| 77 | [ |
||
| 78 | 'type' => 'js', |
||
| 79 | 'active' => true, |
||
| 80 | 'location' => 'adminetic/assets/js/datatable/datatable-extension/pdfmake.min.js', |
||
| 81 | ], |
||
| 82 | [ |
||
| 83 | 'type' => 'js', |
||
| 84 | 'active' => true, |
||
| 85 | 'location' => 'adminetic/assets/js/datatable/datatable-extension/vfs_fonts.js', |
||
| 86 | ], |
||
| 87 | [ |
||
| 88 | 'type' => 'js', |
||
| 89 | 'active' => true, |
||
| 90 | 'location' => 'adminetic/assets/js/datatable/datatable-extension/buttons.html5.min.js', |
||
| 91 | ], |
||
| 92 | [ |
||
| 93 | 'type' => 'js', |
||
| 94 | 'active' => true, |
||
| 95 | 'location' => 'adminetic/assets/js/datatable/datatable-extension/buttons.print.min.js', |
||
| 96 | ], |
||
| 97 | ], |
||
| 98 | ], |
||
| 99 | [ |
||
| 100 | 'name' => 'Icons', |
||
| 101 | 'active' => true, |
||
| 102 | 'files' => [ |
||
| 103 | [ |
||
| 104 | 'type' => 'css', |
||
| 105 | 'active' => true, |
||
| 106 | 'location' => 'adminetic/assets/css/font-awesome.css', |
||
| 107 | ], |
||
| 108 | [ |
||
| 109 | 'type' => 'css', |
||
| 110 | 'active' => true, |
||
| 111 | 'location' => 'adminetic/assets/css/vendors/icofont.css', |
||
| 112 | ], |
||
| 113 | [ |
||
| 114 | 'type' => 'css', |
||
| 115 | 'active' => true, |
||
| 116 | 'location' => 'adminetic/assets/css/vendors/themify.css', |
||
| 117 | ], |
||
| 118 | [ |
||
| 119 | 'type' => 'css', |
||
| 120 | 'active' => true, |
||
| 121 | 'location' => 'adminetic/assets/css/vendors/flag-icon.css', |
||
| 122 | ], |
||
| 123 | [ |
||
| 124 | 'type' => 'css', |
||
| 125 | 'active' => true, |
||
| 126 | 'location' => 'adminetic/assets/css/vendors/feather-icon.css', |
||
| 127 | ], |
||
| 128 | ], |
||
| 129 | ], |
||
| 130 | [ |
||
| 131 | 'name' => 'Scrollbar', |
||
| 132 | 'active' => true, |
||
| 133 | 'files' => [ |
||
| 134 | [ |
||
| 135 | 'type' => 'css', |
||
| 136 | 'active' => true, |
||
| 137 | 'location' => 'adminetic/assets/css/vendors/scrollbar.css', |
||
| 138 | ], |
||
| 139 | [ |
||
| 140 | 'type' => 'js', |
||
| 141 | 'active' => true, |
||
| 142 | 'location' => 'adminetic/assets/js/scrollbar/simplebar.js', |
||
| 143 | ], |
||
| 144 | [ |
||
| 145 | 'type' => 'js', |
||
| 146 | 'active' => true, |
||
| 147 | 'location' => 'adminetic/assets/js/scrollbar/custom.js', |
||
| 148 | ], |
||
| 149 | ], |
||
| 150 | ], |
||
| 151 | [ |
||
| 152 | 'name' => 'Touchspin', |
||
| 153 | 'active' => true, |
||
| 154 | 'files' => [ |
||
| 155 | [ |
||
| 156 | 'type' => 'js', |
||
| 157 | 'active' => true, |
||
| 158 | 'location' => 'adminetic/assets/js/touchspin/touchspin.js', |
||
| 159 | ], |
||
| 160 | [ |
||
| 161 | 'type' => 'js', |
||
| 162 | 'active' => true, |
||
| 163 | 'location' => 'adminetic/assets/js/touchspin/input-groups.min.js', |
||
| 164 | ], |
||
| 165 | ], |
||
| 166 | ], |
||
| 167 | [ |
||
| 168 | 'name' => 'Datepicker', |
||
| 169 | 'active' => true, |
||
| 170 | 'files' => [ |
||
| 171 | [ |
||
| 172 | 'type' => 'css', |
||
| 173 | 'active' => true, |
||
| 174 | 'location' => 'adminetic/assets/css/vendors/date-picker.css', |
||
| 175 | ], |
||
| 176 | [ |
||
| 177 | 'type' => 'js', |
||
| 178 | 'active' => true, |
||
| 179 | 'location' => 'adminetic/assets/js/datepicker/date-picker/datepicker.js', |
||
| 180 | ], |
||
| 181 | [ |
||
| 182 | 'type' => 'js', |
||
| 183 | 'active' => true, |
||
| 184 | 'location' => 'adminetic/assets/js/datepicker/date-picker/datepicker.en.js', |
||
| 185 | ], |
||
| 186 | ], |
||
| 187 | ], |
||
| 188 | [ |
||
| 189 | 'name' => 'CKEditor', |
||
| 190 | 'active' => true, |
||
| 191 | 'files' => [ |
||
| 192 | [ |
||
| 193 | 'type' => 'js', |
||
| 194 | 'active' => true, |
||
| 195 | 'location' => 'adminetic/assets/js/editor/ckeditor/ckeditor.js', |
||
| 196 | ], |
||
| 197 | [ |
||
| 198 | 'type' => 'js', |
||
| 199 | 'active' => true, |
||
| 200 | 'location' => 'adminetic/assets/js/editor/ckeditor/styles.js', |
||
| 201 | ], |
||
| 202 | ], |
||
| 203 | ], |
||
| 204 | [ |
||
| 205 | 'name' => 'Summernote', |
||
| 206 | 'active' => true, |
||
| 207 | 'files' => [ |
||
| 208 | [ |
||
| 209 | 'type' => 'css', |
||
| 210 | 'active' => true, |
||
| 211 | 'location' => 'adminetic/assets/css/vendors/summernote.css', |
||
| 212 | ], |
||
| 213 | [ |
||
| 214 | 'type' => 'js', |
||
| 215 | 'active' => true, |
||
| 216 | 'location' => 'adminetic/assets/js/editor/summernote/summernote.js', |
||
| 217 | ], |
||
| 218 | ], |
||
| 219 | ], |
||
| 220 | [ |
||
| 221 | 'name' => 'Select2', |
||
| 222 | 'active' => true, |
||
| 223 | 'files' => [ |
||
| 224 | [ |
||
| 225 | 'type' => 'css', |
||
| 226 | 'active' => true, |
||
| 227 | 'location' => 'adminetic/assets/css/vendors/select2.css', |
||
| 228 | ], |
||
| 229 | [ |
||
| 230 | 'type' => 'js', |
||
| 231 | 'active' => true, |
||
| 232 | 'location' => 'adminetic/assets/js/select2/select2.full.min.js', |
||
| 233 | ], |
||
| 234 | ], |
||
| 235 | ], |
||
| 236 | [ |
||
| 237 | 'name' => 'ACE Editor', |
||
| 238 | 'active' => false, |
||
| 239 | 'files' => [ |
||
| 240 | [ |
||
| 241 | 'type' => 'js', |
||
| 242 | 'active' => true, |
||
| 243 | 'location' => 'adminetic/assets/js/editor/ace-editor/ace.js', |
||
| 244 | ], |
||
| 245 | [ |
||
| 246 | 'type' => 'js', |
||
| 247 | 'active' => true, |
||
| 248 | 'location' => 'adminetic/assets/js/editor/ace-editor/mode-html.js', |
||
| 249 | ], |
||
| 250 | ], |
||
| 251 | ], |
||
| 252 | [ |
||
| 253 | 'name' => 'Notify', |
||
| 254 | 'active' => true, |
||
| 255 | 'files' => [ |
||
| 256 | [ |
||
| 257 | 'type' => 'js', |
||
| 258 | 'active' => true, |
||
| 259 | 'location' => 'adminetic/assets/js/notify/bootstrap-notify.min.js', |
||
| 260 | ], |
||
| 261 | ], |
||
| 262 | ], |
||
| 263 | [ |
||
| 264 | 'name' => 'Card', |
||
| 265 | 'active' => true, |
||
| 266 | 'files' => [ |
||
| 267 | [ |
||
| 268 | 'type' => 'js', |
||
| 269 | 'active' => true, |
||
| 270 | 'location' => 'adminetic/assets/js/custom-card/custom-card.js', |
||
| 271 | ], |
||
| 491 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths