Completed
Pull Request — master (#648)
by
unknown
32:38 queued 12:41
created
src/Column/ColumnStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Column/ColumnLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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(' ');
Please login to merge, or discard this patch.
src/Column/MultiAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Filter/FilterMultiSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ColumnsSummary.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -45,6 +45,7 @@
 block discarded – undo
45 45
 	/**
46 46
 	 * @param DataGrid $datagrid
47 47
 	 * @param array    $columns
48
+	 * @param callable|null $rowCallback
48 49
 	 */
49 50
 	public function __construct(DataGrid $datagrid, array $columns, $rowCallback)
50 51
 	{
Please login to merge, or discard this patch.
src/Filter/SubmitButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 		$el->class = $this->getClass();
58 58
 
59 59
 		if ($this->getIcon()) {
60
-			$el->addHtml(Html::el('span')->class(DataGrid::$icon_prefix . $this->getIcon()));
60
+			$el->addHtml(Html::el('span')->class(DataGrid::$icon_prefix.$this->getIcon()));
61 61
 
62 62
 			if (strlen($this->getText())) {
63 63
 				$el->addHtml(' ');
Please login to merge, or discard this patch.
src/DataSource/ArrayDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 					);
98 98
 					$this->setData($data);
99 99
 				} else {
100
-					$data = array_filter($this->data, function ($row) use ($filter) {
100
+					$data = array_filter($this->data, function($row) use ($filter) {
101 101
 						return $this->applyFilter($row, $filter);
102 102
 					});
103 103
 					$this->setData($data);
Please login to merge, or discard this patch.
src/DataSource/DibiFluentPostgreDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
 		foreach ($condition as $column => $value) {
29 29
 
30
-			$column = '[' . $column . ']';
30
+			$column = '['.$column.']';
31 31
 
32 32
 			if ($filter->isExactSearch()) {
33 33
 				$this->data_source->where("$column = %s", $value);
Please login to merge, or discard this patch.
src/DataGrid.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1532,7 +1532,6 @@  discard block
 block discarded – undo
1532 1532
 	/**
1533 1533
 	 * If we want to sent some initial filter
1534 1534
 	 *
1535
-	 * @param array $filter
1536 1535
 	 * @param bool  $use_on_reset
1537 1536
 	 * @return static
1538 1537
 	 */
@@ -2766,7 +2765,7 @@  discard block
 block discarded – undo
2766 2765
 /**
2767 2766
  * Set options of select "items_per_page"
2768 2767
  *
2769
- * @param array $items_per_page_list
2768
+ * @param integer[] $items_per_page_list
2770 2769
  * @return static
2771 2770
  */
2772 2771
 	public function setItemsPerPageList(array $items_per_page_list, $include_all = true)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
 	 */
674 674
 	public function getOriginalTemplateFile(): string
675 675
 	{
676
-		return __DIR__ . '/templates/datagrid.latte';
676
+		return __DIR__.'/templates/datagrid.latte';
677 677
 	}
678 678
 
679 679
 
@@ -929,7 +929,7 @@  discard block
 block discarded – undo
929 929
 		 * Set tree view template file
930 930
 		 */
931 931
 		if (!$this->template_file) {
932
-			$this->setTemplateFile(__DIR__ . '/templates/datagrid_tree.latte');
932
+			$this->setTemplateFile(__DIR__.'/templates/datagrid_tree.latte');
933 933
 		}
934 934
 
935 935
 		return $this;
@@ -3006,7 +3006,7 @@  discard block
 block discarded – undo
3006 3006
  */
3007 3007
 	public function getSessionSectionName(): string
3008 3008
 	{
3009
-		return $this->getPresenter()->getName() . ':' . $this->getUniqueId();
3009
+		return $this->getPresenter()->getName().':'.$this->getUniqueId();
3010 3010
 	}
3011 3011
 
3012 3012
 
@@ -3596,7 +3596,7 @@  discard block
 block discarded – undo
3596 3596
 
3597 3597
 		if (!($parent instanceof PresenterComponent)) {
3598 3598
 			throw new DataGridHasToBeAttachedToPresenterComponentException(
3599
-				"DataGrid is attached to: '" . get_class($parent) . "', but instance of PresenterComponent is needed."
3599
+				"DataGrid is attached to: '".get_class($parent)."', but instance of PresenterComponent is needed."
3600 3600
 			);
3601 3601
 		}
3602 3602
 
Please login to merge, or discard this patch.