@@ -95,7 +95,7 @@ |
||
95 | 95 | /** |
96 | 96 | * Get filter key |
97 | 97 | * |
98 | - * @return mixed |
|
98 | + * @return string |
|
99 | 99 | */ |
100 | 100 | public function getKey() |
101 | 101 | { |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Ublaboo\DataGrid\Filter; |
4 | 4 |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | /** |
644 | 644 | * Get DataGrid template file |
645 | 645 | * |
646 | - * @return static |
|
646 | + * @return string |
|
647 | 647 | */ |
648 | 648 | public function getTemplateFile(): string |
649 | 649 | { |
@@ -823,6 +823,7 @@ discard block |
||
823 | 823 | |
824 | 824 | /** |
825 | 825 | * @param array $sort |
826 | + * @param callable $sort_callback |
|
826 | 827 | */ |
827 | 828 | protected function createSorting(array $sort, ?callable $sort_callback = null): Sorting |
828 | 829 | { |
@@ -1411,7 +1412,6 @@ discard block |
||
1411 | 1412 | /** |
1412 | 1413 | * If we want to sent some initial filter |
1413 | 1414 | * |
1414 | - * @param array $filter |
|
1415 | 1415 | * @return static |
1416 | 1416 | */ |
1417 | 1417 | public function setDefaultFilter(array $default_filter, bool $use_on_reset = true) |
@@ -2530,7 +2530,7 @@ discard block |
||
2530 | 2530 | /** |
2531 | 2531 | * Set options of select "items_per_page" |
2532 | 2532 | * |
2533 | - * @param array $items_per_page_list |
|
2533 | + * @param integer[] $items_per_page_list |
|
2534 | 2534 | * @return static |
2535 | 2535 | */ |
2536 | 2536 | public function setItemsPerPageList(array $items_per_page_list, $include_all = true) |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use DateTime; |
6 | 6 | use Dibi\Fluent; |
7 | -use DibiFluent; |
|
8 | 7 | use Doctrine\ORM\QueryBuilder; |
9 | 8 | use InvalidArgumentException; |
10 | 9 | use Iterator; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Ublaboo\DataGrid; |
4 | 4 | |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | */ |
657 | 657 | public function getOriginalTemplateFile(): string |
658 | 658 | { |
659 | - return __DIR__ . '/templates/datagrid.latte'; |
|
659 | + return __DIR__.'/templates/datagrid.latte'; |
|
660 | 660 | } |
661 | 661 | |
662 | 662 | |
@@ -891,7 +891,7 @@ discard block |
||
891 | 891 | * Set tree view template file |
892 | 892 | */ |
893 | 893 | if (!$this->template_file) { |
894 | - $this->setTemplateFile(__DIR__ . '/templates/datagrid_tree.latte'); |
|
894 | + $this->setTemplateFile(__DIR__.'/templates/datagrid_tree.latte'); |
|
895 | 895 | } |
896 | 896 | |
897 | 897 | return $this; |
@@ -2754,7 +2754,7 @@ discard block |
||
2754 | 2754 | */ |
2755 | 2755 | public function getSessionSectionName(): string |
2756 | 2756 | { |
2757 | - return $this->getPresenter()->getName() . ':' . $this->getUniqueId(); |
|
2757 | + return $this->getPresenter()->getName().':'.$this->getUniqueId(); |
|
2758 | 2758 | } |
2759 | 2759 | |
2760 | 2760 | |
@@ -3265,7 +3265,7 @@ discard block |
||
3265 | 3265 | |
3266 | 3266 | if (!($parent instanceof PresenterComponent)) { |
3267 | 3267 | throw new DataGridHasToBeAttachedToPresenterComponentException( |
3268 | - "DataGrid is attached to: '" . get_class($parent) . "', but instance of PresenterComponent is needed." |
|
3268 | + "DataGrid is attached to: '".get_class($parent)."', but instance of PresenterComponent is needed." |
|
3269 | 3269 | ); |
3270 | 3270 | } |
3271 | 3271 |
@@ -23,6 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * Try to render item with custom renderer |
25 | 25 | * |
26 | + * @param Row $row |
|
26 | 27 | * @return mixed |
27 | 28 | * @throws DataGridColumnRendererException |
28 | 29 | */ |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Ublaboo\DataGrid\Traits; |
4 | 4 |
@@ -69,6 +69,9 @@ |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $href |
|
74 | + */ |
|
72 | 75 | private function throwHierarchyLookupException(DataGrid $grid, $href, $params): void |
73 | 76 | { |
74 | 77 | $desiredHandler = get_class($grid->getParent()) . '::handle' . ucfirst($href) . '()'; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Ublaboo\DataGrid\Traits; |
4 | 4 | |
@@ -71,14 +71,14 @@ discard block |
||
71 | 71 | |
72 | 72 | private function throwHierarchyLookupException(DataGrid $grid, $href, $params): void |
73 | 73 | { |
74 | - $desiredHandler = get_class($grid->getParent()) . '::handle' . ucfirst($href) . '()'; |
|
74 | + $desiredHandler = get_class($grid->getParent()).'::handle'.ucfirst($href).'()'; |
|
75 | 75 | |
76 | 76 | throw new DataGridLinkCreationException( |
77 | 77 | 'DataGrid could not create link "' |
78 | - . $href . '" - did not find any signal handler in componenet hierarchy from ' |
|
79 | - . get_class($grid->getParent()) . ' up to the ' |
|
80 | - . get_class($grid->getPresenter()) . '. ' |
|
81 | - . 'Try adding handler ' . $desiredHandler |
|
78 | + . $href.'" - did not find any signal handler in componenet hierarchy from ' |
|
79 | + . get_class($grid->getParent()).' up to the ' |
|
80 | + . get_class($grid->getPresenter()).'. ' |
|
81 | + . 'Try adding handler '.$desiredHandler |
|
82 | 82 | ); |
83 | 83 | } |
84 | 84 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Ublaboo\DataGrid\Column; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Ublaboo\DataGrid\Column; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Ublaboo\DataGrid\Column; |
4 | 4 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | protected $number_format = [ |
19 | 19 | 0, // Decimals |
20 | 20 | '.', // Decimal point |
21 | - ' ', // Thousands separator |
|
21 | + ' ', // Thousands separator |
|
22 | 22 | ]; |
23 | 23 | |
24 | 24 | /** |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Ublaboo\DataGrid\Column; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Ublaboo\DataGrid\Column; |
4 | 4 |