@@ -17,6 +17,7 @@ discard block |
||
| 17 | 17 | } |
| 18 | 18 | /** |
| 19 | 19 | * |
| 20 | + * @param integer $num |
|
| 20 | 21 | */ |
| 21 | 22 | public static function getColumnLetter($num) { |
| 22 | 23 | return chr ( 65 + $num ); |
@@ -38,6 +39,8 @@ discard block |
||
| 38 | 39 | ExcelExport::downloadExcel ( $objPHPExcel, $dataSetName . '.xlsx' ); |
| 39 | 40 | } |
| 40 | 41 | /** |
| 42 | + * @param string $cells |
|
| 43 | + * @param string $color |
|
| 41 | 44 | */ |
| 42 | 45 | static function cellColor($objPHPExcel, $cells, $color) { |
| 43 | 46 | $objPHPExcel->getActiveSheet ()->getStyle ( $cells )->getFill ()->applyFromArray ( array ( |
@@ -69,7 +72,8 @@ discard block |
||
| 69 | 72 | } |
| 70 | 73 | /** |
| 71 | 74 | * |
| 72 | - * @param unknown $objPHPExcel |
|
| 75 | + * @param \PHPExcel $objPHPExcel |
|
| 76 | + * @param string $filename |
|
| 73 | 77 | */ |
| 74 | 78 | private static function downloadExcel($objPHPExcel, $filename) { |
| 75 | 79 | ob_end_clean (); |
@@ -89,7 +93,8 @@ discard block |
||
| 89 | 93 | } |
| 90 | 94 | /** |
| 91 | 95 | * remove special chars and words from string |
| 92 | - * @param unknown $string |
|
| 96 | + * @param unknown $string |
|
| 97 | + * @param string[] $removeWords |
|
| 93 | 98 | */ |
| 94 | 99 | private static function clearName($string, $removeWords) { |
| 95 | 100 | $string = str_replace ( ' ', '-', $string ); |
@@ -102,7 +107,7 @@ discard block |
||
| 102 | 107 | } |
| 103 | 108 | /** |
| 104 | 109 | * @param unknown $objPHPExcel |
| 105 | - * @param unknown $title |
|
| 110 | + * @param string $title |
|
| 106 | 111 | */ |
| 107 | 112 | static function printTitle($objPHPExcel, $title) { |
| 108 | 113 | $objPHPExcel->getActiveSheet ()->setTitle ( ExcelExport::clearName ( $title, array('ddzia') ), true ); |
@@ -38,12 +38,17 @@ |
||
| 38 | 38 | } |
| 39 | 39 | return $row; |
| 40 | 40 | } |
| 41 | + |
|
| 42 | + /** |
|
| 43 | + * @param string $title |
|
| 44 | + */ |
|
| 41 | 45 | private static function printTitle($objPHPExcel, $title) { |
| 42 | 46 | $objPHPExcel->getActiveSheet ()->setCellValueByColumnAndRow ( 0, 1, $title ); |
| 43 | 47 | } |
| 44 | 48 | /** |
| 45 | 49 | * |
| 46 | - * @param PHPExcel $objPHPExcel |
|
| 50 | + * @param PHPExcel $objPHPExcel |
|
| 51 | + * @param integer $row |
|
| 47 | 52 | */ |
| 48 | 53 | private static function printFooter($objPHPExcel, $cols, $row) { |
| 49 | 54 | $objPHPExcel->getActiveSheet ()->getStyle ( 'A' . $row . ':AA' . ($row + 1) )->getFont ()->setBold ( true ); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * |
| 22 | 22 | * @param unknown $objPHPExcel |
| 23 | - * @param unknown $cols |
|
| 23 | + * @param string[] $cols |
|
| 24 | 24 | */ |
| 25 | 25 | private static function printHeaders($objPHPExcel, $cols) { |
| 26 | 26 | $count = 1; |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | private static $fnames; |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * @return \Hospitalplugin\Entities\Patient |
|
| 52 | + * @return string |
|
| 53 | 53 | */ |
| 54 | 54 | public static function getRandomPerson() |
| 55 | 55 | { |
@@ -70,8 +70,8 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | - * @param unknown $haystack |
|
| 74 | - * @param unknown $needle |
|
| 73 | + * @param string $haystack |
|
| 74 | + * @param string $needle |
|
| 75 | 75 | * @return boolean |
| 76 | 76 | */ |
| 77 | 77 | static function endsWith($haystack, $needle) |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @param $date1 $date1 string parsable date strtotime(date) |
| 46 | 46 | * @param $date2 $date2 string parsable date strtotime(date) |
| 47 | - * @return number |
|
| 47 | + * @return double |
|
| 48 | 48 | */ |
| 49 | 49 | public static function diffDates($date1, $date2) |
| 50 | 50 | { |
@@ -73,6 +73,7 @@ discard block |
||
| 73 | 73 | * |
| 74 | 74 | * @param $month int month 1-12 |
| 75 | 75 | * @param $day int day 1-31 |
| 76 | + * @param string $date |
|
| 76 | 77 | * @return string Y-m-d |
| 77 | 78 | */ |
| 78 | 79 | public static function getNextDayDate($date) |
@@ -84,7 +85,7 @@ discard block |
||
| 84 | 85 | /** |
| 85 | 86 | * precious day in Y-m-d format |
| 86 | 87 | * |
| 87 | - * @param $date sttring Y-m-d |
|
| 88 | + * @param string $date sttring Y-m-d |
|
| 88 | 89 | * @return string Y-m-d |
| 89 | 90 | */ |
| 90 | 91 | public static function getPreviousDay($date) |
@@ -118,8 +119,8 @@ discard block |
||
| 118 | 119 | * @return string date |
| 119 | 120 | * |
| 120 | 121 | * |
| 121 | - * @param $month int default null |
|
| 122 | - * @param $day int default null |
|
| 122 | + * @param integer $month int default null |
|
| 123 | + * @param integer $day int default null |
|
| 123 | 124 | */ |
| 124 | 125 | public static function getStartDate($month = null, $day = null) |
| 125 | 126 | { |
@@ -140,8 +141,8 @@ discard block |
||
| 140 | 141 | /** |
| 141 | 142 | * getEndDate |
| 142 | 143 | * |
| 143 | - * @param $month int default null |
|
| 144 | - * @param $day int default null |
|
| 144 | + * @param integer $month int default null |
|
| 145 | + * @param integer $day int default null |
|
| 145 | 146 | */ |
| 146 | 147 | public static function getEndDate($month = null, $day = null) |
| 147 | 148 | { |
@@ -216,7 +217,7 @@ discard block |
||
| 216 | 217 | /** |
| 217 | 218 | * read file to array |
| 218 | 219 | * |
| 219 | - * @param $url file url |
|
| 220 | + * @param string $url file url |
|
| 220 | 221 | * @param $delm default ; |
| 221 | 222 | * @param $encl default \ |
| 222 | 223 | * @param $head default false |
@@ -338,8 +339,9 @@ discard block |
||
| 338 | 339 | /** |
| 339 | 340 | * Class casting |
| 340 | 341 | * |
| 341 | - * @param string|object $destination |
|
| 342 | + * @param string $destination |
|
| 342 | 343 | * @param object $sourceObject |
| 344 | + * @param integer $arguments |
|
| 343 | 345 | * @return object |
| 344 | 346 | */ |
| 345 | 347 | static function cast($destination, $sourceObject, $arguments = NULL) |
@@ -89,6 +89,7 @@ |
||
| 89 | 89 | * hospitalRegisterScript |
| 90 | 90 | * @param unknown $file |
| 91 | 91 | * @param unknown $required |
| 92 | + * @param string $hook |
|
| 92 | 93 | */ |
| 93 | 94 | public function hospitalRegisterScript($file, $required = null, $hook = null) |
| 94 | 95 | { |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | 80 | * |
| 81 | - * @return entityManager EntityManager |
|
| 81 | + * @return EntityManager EntityManager |
|
| 82 | 82 | */ |
| 83 | 83 | private static function _getInstance() { |
| 84 | 84 | $isDevMode = true; |