@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php namespace Distilleries\Expendable\Datatables; |
| 2 | 2 | |
| 3 | -use Distilleries\DatatableBuilder\EloquentDatatable; |
|
| 4 | -use Distilleries\Expendable\Models\Language; |
|
| 3 | +use Distilleries\DatatableBuilder\EloquentDatatable; |
|
| 4 | +use Distilleries\Expendable\Models\Language; |
|
| 5 | 5 | use Distilleries\Expendable\Models\Translation; |
| 6 | 6 | |
| 7 | 7 | abstract class BaseDatatable extends EloquentDatatable {
|
@@ -96,6 +96,10 @@ |
||
| 96 | 96 | ]; |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | + /** |
|
| 100 | + * @param string $key |
|
| 101 | + * @param null|integer $default_value |
|
| 102 | + */ |
|
| 99 | 103 | protected function getParams(Request $request, $key, $default_value) |
| 100 | 104 | { |
| 101 | 105 | $element = $request->get($key); |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Distilleries\Expendable\Exporter\CsvExporter; |
| 4 | 4 | use Distilleries\Expendable\Exporter\ExcelExporter; |
| 5 | -use Distilleries\Expendable\Exporter\PdfExporter; |
|
| 6 | 5 | use Distilleries\Expendable\Importer\CsvImporter; |
| 7 | 6 | use Distilleries\Expendable\Importer\XlsImporter; |
| 8 | 7 | use Distilleries\Expendable\Layouts\LayoutManager; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Distilleries\Expendable\Contracts\LockableContract; |
| 4 | 4 | use Distilleries\Expendable\Helpers\UserUtils; |
| 5 | -use Distilleries\Expendable\Models\User; |
|
| 6 | 5 | |
| 7 | 6 | class UserListener extends BaseListener |
| 8 | 7 | { |
@@ -301,6 +301,10 @@ discard block |
||
| 301 | 301 | * @param boolean $is_image TRUE if this is an image |
| 302 | 302 | * @return string The string with the evil attributes removed |
| 303 | 303 | */ |
| 304 | + |
|
| 305 | + /** |
|
| 306 | + * @param boolean $evilAttribute |
|
| 307 | + */ |
|
| 304 | 308 | protected function _remove_evil_attributes($str, $is_image, $evilAttribute) |
| 305 | 309 | { |
| 306 | 310 | // All javascript event handlers (e.g. onload, onclick, onmouseover), style, and xmlns |
@@ -429,7 +433,7 @@ discard block |
||
| 429 | 433 | * things like j a v a s c r i p t |
| 430 | 434 | * |
| 431 | 435 | * @param type |
| 432 | - * @return type |
|
| 436 | + * @return string |
|
| 433 | 437 | */ |
| 434 | 438 | protected function _compact_exploded_words($matches) |
| 435 | 439 | { |