Completed
Pull Request — master (#271)
by Martin
13:50
created
src/ZfcDatagrid/Column/AbstractColumn.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     protected $formatters = [];
62 62
 
63 63
     /**
64
-     * @param $name
64
+     * @param string $name
65 65
      */
66 66
     public function setLabel($name)
67 67
     {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     }
80 80
 
81 81
     /**
82
-     * @param $id
82
+     * @param string $id
83 83
      */
84 84
     public function setUniqueId($id)
85 85
     {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     }
88 88
 
89 89
     /**
90
-     * @return mixed
90
+     * @return string|null
91 91
      */
92 92
     public function getUniqueId()
93 93
     {
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     }
429 429
 
430 430
     /**
431
-     * @param mixed $value
431
+     * @param string $value
432 432
      */
433 433
     public function setFilterActive($value = '')
434 434
     {
Please login to merge, or discard this patch.
src/ZfcDatagrid/DataSource/DataSourceInterface.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@  discard block
 block discarded – undo
15 15
      * - ...
16 16
      *
17 17
      * @param mixed $data
18
+     * @return void
18 19
      */
19 20
     public function __construct($data);
20 21
 
@@ -35,7 +36,8 @@  discard block
 block discarded – undo
35 36
     /**
36 37
      * Set the columns.
37 38
      *
38
-     * @param array $columns
39
+     * @param Column\AbstractColumn[] $columns
40
+     * @return void
39 41
      */
40 42
     public function setColumns(array $columns);
41 43
 
@@ -44,11 +46,13 @@  discard block
 block discarded – undo
44 46
      *
45 47
      * @param Column\AbstractColumn $column
46 48
      * @param string                $sortDirection
49
+     * @return void
47 50
      */
48 51
     public function addSortCondition(Column\AbstractColumn $column, $sortDirection = 'ASC');
49 52
 
50 53
     /**
51
-     * @param Filter $filters
54
+     * @param Filter $filter
55
+     * @return void
52 56
      */
53 57
     public function addFilter(Filter $filter);
54 58
 
Please login to merge, or discard this patch.
src/ZfcDatagrid/DataSource/Doctrine2.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     /**
19 19
      * Data source.
20 20
      *
21
-     * @param mixed $data
21
+     * @param ORM\QueryBuilder $data
22 22
      */
23 23
     public function __construct($data)
24 24
     {
Please login to merge, or discard this patch.
src/ZfcDatagrid/DataSource/Doctrine2Collection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /**
24 24
      * Data source.
25 25
      *
26
-     * @param mixed $data
26
+     * @param Collection $data
27 27
      */
28 28
     public function __construct($data)
29 29
     {
Please login to merge, or discard this patch.
src/ZfcDatagrid/PrepareData.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     /**
38 38
      * @param array $data
39
-     * @param array $columns
39
+     * @param Column\AbstractColumn[] $columns
40 40
      */
41 41
     public function __construct(array $data, array $columns)
42 42
     {
Please login to merge, or discard this patch.
src/ZfcDatagrid/Renderer/Csv/Renderer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     }
28 28
 
29 29
     /**
30
-     * @return \Zend\View\Model\ViewModel
30
+     * @return ResponseStream
31 31
      */
32 32
     public function execute()
33 33
     {
Please login to merge, or discard this patch.
src/ZfcDatagrid/Renderer/TCPDF/Renderer.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     /**
184 184
      * Calculates the column width, based on the papersize and orientation.
185 185
      *
186
-     * @param array $cols
186
+     * @param \ZfcDatagrid\Column\AbstractColumn[] $cols
187 187
      */
188 188
     protected function calculateColumnWidth(array $cols)
189 189
     {
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
      * @param number $maxWidth
414 414
      * @param number $maxHeight
415 415
      *
416
-     * @return array
416
+     * @return double[]
417 417
      */
418 418
     protected function calcImageSize($imageData, $maxWidth, $maxHeight)
419 419
     {
Please login to merge, or discard this patch.
src/ZfcDatagrid/Service/DatagridManagerFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      *
16 16
      * @param ServiceLocatorInterface $serviceLocator
17 17
      *
18
-     * @return FormElementManager
18
+     * @return \Zend\ServiceManager\AbstractPluginManager
19 19
      */
20 20
     public function createService(ServiceLocatorInterface $serviceLocator)
21 21
     {
Please login to merge, or discard this patch.