Completed
Pull Request — master (#102)
by Litera
10:11 queued 01:46
created
app/models/MealModel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 	/**
65 65
 	 * @param  integer $visitorId
66 66
 	 * @param  array   $data
67
-	 * @return ActiveRow
67
+	 * @return integer|null
68 68
 	 */
69 69
 	public function update($visitorId, array $data)
70 70
 	{
Please login to merge, or discard this patch.
app/presenters/BasePresenter.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,6 +211,8 @@  discard block
 block discarded – undo
211 211
 	 * @param	string	name
212 212
 	 * @param	mixed	value
213 213
 	 * @param	var		variable that match with value
214
+	 * @param string $name
215
+	 * @param integer $value
214 216
 	 * @return	string	html of chceck box
215 217
 	 */
216 218
 	protected function renderHtmlCheckBox($name, $value, $checked_variable)
@@ -266,7 +268,7 @@  discard block
 block discarded – undo
266 268
 	}
267 269
 
268 270
 	/**
269
-	 * @return Container
271
+	 * @return Nette\DI\Container
270 272
 	 */
271 273
 	protected function getContainer()
272 274
 	{
@@ -405,6 +407,10 @@  discard block
 block discarded – undo
405 407
 		return $this->getModel()->updateBy('guid', $guid, $data);
406 408
 	}
407 409
 
410
+	/**
411
+	 * @param string $key
412
+	 * @param integer $minutes
413
+	 */
408 414
 	public function remember($key, $minutes, \Closure $callback)
409 415
 	{
410 416
 		// If the item exists in the cache we will just return this immediately
@@ -447,7 +453,7 @@  discard block
 block discarded – undo
447 453
 	}
448 454
 
449 455
 	/**
450
-	 * @return string
456
+	 * @return boolean
451 457
 	 */
452 458
 	protected function getDebugMode()
453 459
 	{
Please login to merge, or discard this patch.
app/presenters/BlockPresenter.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -300,6 +300,8 @@
 block discarded – undo
300 300
 	 * @param	array	content of slect box
301 301
 	 * @param	var		variable that match selected option
302 302
 	 * @param	string	inline styling
303
+	 * @param string $name
304
+	 * @param string $inline_style
303 305
 	 * @return	string	html of select box
304 306
 	 */
305 307
 	private function renderHtmlSelectBox($name, $select_content, $selected_option, $inline_style = NULL)
Please login to merge, or discard this patch.
app/presenters/VisitorPresenter.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 	}
197 197
 
198 198
 	/**
199
-	 * @param  integer|string $ids
199
+	 * @param  integer|string $id
200 200
 	 * @return void
201 201
 	 */
202 202
 	public function actionPay($id)
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 	}
219 219
 
220 220
 	/**
221
-	 * @param  string|interger $ids
221
+	 * @param  string|interger $id
222 222
 	 * @return void
223 223
 	 */
224 224
 	public function actionAdvance($id)
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 	}
362 362
 
363 363
 	/**
364
-	 * @return Latte
364
+	 * @return \Nette\Application\UI\ITemplate
365 365
 	 */
366 366
 	protected function createMailTemplate()
367 367
 	{
Please login to merge, or discard this patch.
app/services/BaseService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	/**
69 69
 	 * Save value to local storage
70 70
 	 *
71
-	 * @param   mixed  $id
71
+	 * @param   string  $id
72 72
 	 * @param   mixed  $val
73 73
 	 * @return  mixed
74 74
 	 */
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	/**
85 85
 	 * Get object from local storage
86 86
 	 *
87
-	 * @param   string|int   $id
87
+	 * @param   string   $id
88 88
 	 * @return  mixed|FALSE
89 89
 	 */
90 90
 	protected function load($id)
Please login to merge, or discard this patch.
app/components/Forms/RegistrationForm.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,6 @@  discard block
 block discarded – undo
62 62
 	protected $userService;
63 63
 
64 64
 	/**
65
-	 * @param ProvinceModel $model
66 65
 	 */
67 66
 	public function __construct(
68 67
 		ProvinceModel $province,
@@ -303,7 +302,7 @@  discard block
 block discarded – undo
303 302
 
304 303
 	/**
305 304
 	 * @param  ProvinceModel $model
306
-	 * @return RegistrationFormFactory
305
+	 * @return RegistrationForm
307 306
 	 */
308 307
 	protected function setProvinceModel(ProvinceModel $model): RegistrationForm
309 308
 	{
@@ -322,7 +321,7 @@  discard block
 block discarded – undo
322 321
 
323 322
 	/**
324 323
 	 * @param  ProgramModel $model
325
-	 * @return RegistrationFormFactory
324
+	 * @return RegistrationForm
326 325
 	 */
327 326
 	protected function setProgramModel(ProgramModel $model): RegistrationForm
328 327
 	{
Please login to merge, or discard this patch.
app/models/BlockModel.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -98,6 +98,7 @@
 block discarded – undo
98 98
 	 * Return blocks that contents programs
99 99
 	 *
100 100
 	 * @param	int		meeting ID
101
+	 * @param integer $meetingId
101 102
 	 * @return	array	result and number of affected rows
102 103
 	 */
103 104
 	public function getProgramBlocks($meetingId)
Please login to merge, or discard this patch.
app/models/ExportModel.php 1 patch
Doc Comments   +14 added lines, -13 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 	 * Return data for meal tickets
58 58
 	 *
59 59
 	 * @param	void
60
-	 * @return	array
60
+	 * @return	\Nette\Database\IRow[]
61 61
 	 */
62 62
 	public function mealTicket()
63 63
 	{
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 * Print Attendance into PDF file
102 102
 	 *
103 103
 	 * @param	void
104
-	 * @return	file	PDF file
104
+	 * @return	\Nette\Database\IRow[]	PDF file
105 105
 	 */
106 106
 	public function attendance()
107 107
 	{
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	 * Return data for name list
129 129
 	 *
130 130
 	 * @param	void
131
-	 * @return	array    data
131
+	 * @return	\Nette\Database\IRow[]    data
132 132
 	 */
133 133
 	public function nameList()
134 134
 	{
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
 	/**
155 155
 	 * Return data for evidence
156 156
 	 *
157
-	 * @param	int		$visitroId		ID of visitor
158
-	 * @return	array	data from database
157
+	 * @param	int		$visitorId		ID of visitor
158
+	 * @return	\Nette\Database\IRow[]	data from database
159 159
 	 */
160 160
 	public function evidence($visitorId = null)
161 161
 	{
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 	 * Return data for program cards
231 231
 	 *
232 232
 	 * @param	void
233
-	 * @return	array	data
233
+	 * @return	\Nette\Database\IRow[]	data
234 234
 	 */
235 235
 	public function programCards()
236 236
 	{
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 	 * Return data for program badges
333 333
 	 *
334 334
 	 * @param	void
335
-	 * @return	array	data
335
+	 * @return	\Nette\Database\IRow[]	data
336 336
 	 */
337 337
 	public function programBadges()
338 338
 	{
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 	 * Return data for name badges
348 348
 	 *
349 349
 	 * @param	void
350
-	 * @return	array	data
350
+	 * @return	\Nette\Database\IRow[]	data
351 351
 	 */
352 352
 	public function nameBadges()
353 353
 	{
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 	}
362 362
 
363 363
 	/**
364
-	 * @return ActiveRow
364
+	 * @return \Nette\Database\IRow[]
365 365
 	 */
366 366
 	public function graph()
367 367
 	{
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 	}
397 397
 
398 398
 	/**
399
-	 * @return ActiveRow
399
+	 * @return \Nette\Database\IRow[]
400 400
 	 */
401 401
 	public function materials()
402 402
 	{
@@ -449,6 +449,7 @@  discard block
 block discarded – undo
449 449
 	 * Get count of meals
450 450
 	 *
451 451
 	 * @param	string	name of meal
452
+	 * @param string $meal
452 453
 	 * @return	array	meal name => count
453 454
 	 */
454 455
 	public function getMealCount($meal)
@@ -469,7 +470,7 @@  discard block
 block discarded – undo
469 470
 	 * Return data for visitors's program
470 471
 	 *
471 472
 	 * @param	int		program id
472
-	 * @return	file	PDF file
473
+	 * @return	\Nette\Database\IRow[]	PDF file
473 474
 	 */
474 475
 	public function programVisitors($programId)
475 476
 	{
@@ -488,7 +489,7 @@  discard block
 block discarded – undo
488 489
 	 * Return data for details of program
489 490
 	 *
490 491
 	 * @param	void
491
-	 * @return	array	data
492
+	 * @return	\Nette\Database\IRow[]	data
492 493
 	 */
493 494
 	public function programDetails()
494 495
 	{
@@ -508,7 +509,7 @@  discard block
 block discarded – undo
508 509
 	 * Return data for visitor excel
509 510
 	 *
510 511
 	 * @param   void
511
-	 * @return	array	data
512
+	 * @return	\Nette\Database\IRow[]	data
512 513
 	 */
513 514
 	public function visitorsExcel()
514 515
 	{
Please login to merge, or discard this patch.
app/models/MeetingModel.php 1 patch
Doc Comments   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 * Create a new record
99 99
 	 *
100 100
 	 * @param	mixed	array of data
101
-	 * @return	boolean
101
+	 * @return	\Nette\Database\ResultSet
102 102
 	 */
103 103
 	public function create(array $data)
104 104
 	{
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
 	 * Modify record
113 113
 	 *
114 114
 	 * @param	int		$id			ID of record
115
-	 * @param	array	$db_data	array of data
116
-	 * @return	bool
115
+	 * @param	array	$data	array of data
116
+	 * @return	integer|null
117 117
 	 */
118 118
 	public function update($id, array $data)
119 119
 	{
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 * Delete one or multiple record/s
127 127
 	 *
128 128
 	 * @param	int		ID/s of record
129
-	 * @return	boolean
129
+	 * @return	integer|null
130 130
 	 */
131 131
 	public function delete($ids)
132 132
 	{
@@ -233,6 +233,9 @@  discard block
 block discarded – undo
233 233
 		return $html;
234 234
 	}
235 235
 
236
+	/**
237
+	 * @param integer $meetingId
238
+	 */
236 239
 	public function renderPublicProgramOverview($meetingId)
237 240
 	{
238 241
 		$days = array("pátek", "sobota", "neděle");
@@ -493,7 +496,7 @@  discard block
 block discarded – undo
493 496
 	}
494 497
 
495 498
 	/**
496
-	 * @return ActiveRow
499
+	 * @return \Nette\Database\IRow[]
497 500
 	 */
498 501
 	public function getMenuItems()
499 502
 	{
Please login to merge, or discard this patch.