@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | $this->key = $key; |
50 | 50 | |
51 | - $this->setTemplate(__DIR__ . '/../templates/column_status.latte'); |
|
51 | + $this->setTemplate(__DIR__.'/../templates/column_status.latte'); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 |
@@ -219,7 +219,7 @@ |
||
219 | 219 | /** |
220 | 220 | * @param string $key |
221 | 221 | * @param Column\Column $column |
222 | - * @return void |
|
222 | + * @return Column\Column |
|
223 | 223 | */ |
224 | 224 | public function applyColumnCallback($key, Column\Column $column) |
225 | 225 | { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | $element = $a; |
109 | 109 | |
110 | 110 | if ($this->icon) { |
111 | - $a->addHtml(Html::el('span')->class(DataGrid::$icon_prefix . $this->icon)); |
|
111 | + $a->addHtml(Html::el('span')->class(DataGrid::$icon_prefix.$this->icon)); |
|
112 | 112 | |
113 | 113 | if (strlen($value)) { |
114 | 114 | $a->addHtml(' '); |
@@ -469,7 +469,7 @@ |
||
469 | 469 | |
470 | 470 | |
471 | 471 | /** |
472 | - * @return bool |
|
472 | + * @return boolean|null |
|
473 | 473 | */ |
474 | 474 | public function hasSortNext() |
475 | 475 | { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use Ublaboo; |
13 | 13 | use Ublaboo\DataGrid\DataGrid; |
14 | 14 | use Ublaboo\DataGrid\Exception\DataGridColumnRendererException; |
15 | -use Ublaboo\DataGrid\Exception\DataGridException; |
|
16 | 15 | use Ublaboo\DataGrid\Row; |
17 | 16 | use Ublaboo\DataGrid\Traits; |
18 | 17 |
@@ -92,7 +92,7 @@ |
||
92 | 92 | |
93 | 93 | /** |
94 | 94 | * Get filter key |
95 | - * @return mixed |
|
95 | + * @return string |
|
96 | 96 | */ |
97 | 97 | public function getKey() |
98 | 98 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $this->grid = $grid; |
49 | 49 | $this->name = $name; |
50 | 50 | |
51 | - $this->setTemplate(__DIR__ . '/../templates/column_multi_action.latte'); |
|
51 | + $this->setTemplate(__DIR__.'/../templates/column_multi_action.latte'); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | if ($this->getClass()) { |
82 | - $button->class($this->getClass() . ' dropdown-toggle'); |
|
82 | + $button->class($this->getClass().' dropdown-toggle'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | return $button; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | parent::__construct($grid, $key, $name, $options, $column); |
41 | 41 | |
42 | - $this->addAttribute('data-selected-icon-check', DataGrid::$icon_prefix . 'check'); |
|
42 | + $this->addAttribute('data-selected-icon-check', DataGrid::$icon_prefix.'check'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | |
38 | 38 | /** |
39 | - * @param DibiFluent $data_source |
|
39 | + * @param Dibi\Fluent $data_source |
|
40 | 40 | * @param string $primary_key |
41 | 41 | */ |
42 | 42 | public function __construct(DibiFluent $data_source, $primary_key) |
@@ -335,7 +335,7 @@ |
||
335 | 335 | |
336 | 336 | /** |
337 | 337 | * Get unique int value for each instance class (self) |
338 | - * @return int |
|
338 | + * @return string |
|
339 | 339 | */ |
340 | 340 | public function getPlaceholder() |
341 | 341 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $this->root_alias = current($this->root_alias); |
86 | 86 | } |
87 | 87 | |
88 | - return $this->root_alias . '.' . $column; |
|
88 | + return $this->root_alias.'.'.$column; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | $p = $this->getPlaceholder(); |
280 | 280 | |
281 | 281 | $values = $filter->getCondition()[$filter->getColumn()]; |
282 | - $expr = $this->data_source->expr()->in($c, ':' . $p); |
|
282 | + $expr = $this->data_source->expr()->in($c, ':'.$p); |
|
283 | 283 | |
284 | 284 | $this->data_source->andWhere($expr)->setParameter($p, $values); |
285 | 285 | } |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | */ |
359 | 359 | public function getPlaceholder() |
360 | 360 | { |
361 | - return 'param' . ($this->placeholder++); |
|
361 | + return 'param'.($this->placeholder++); |
|
362 | 362 | } |
363 | 363 | |
364 | 364 |