Completed
Push — master ( 118c60...254398 )
by Litera
03:47
created
app/components/Forms/ProgramForm.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 	}
62 62
 
63 63
 	/**
64
-	 * @param  array $defaults
65
-	 * @return AnnotationForm
64
+	 * @param  ActiveRow $defaults
65
+	 * @return ProgramForm
66 66
 	 */
67 67
 	public function setDefaults(ActiveRow $defaults): ProgramForm
68 68
 	{
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 	}
190 190
 
191 191
 	/**
192
-	 * @param BlockRepository $blockRepository
192
+	 * @param BlockRepository $repository
193 193
 	 *
194 194
 	 * @return self
195 195
 	 */
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	}
210 210
 
211 211
 	/**
212
-	 * @param CategoryRepository $categoryRepository
212
+	 * @param CategoryRepository $repository
213 213
 	 *
214 214
 	 * @return self
215 215
 	 */
Please login to merge, or discard this patch.
app/components/ProgramVisitorsControl.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,6 @@
 block discarded – undo
23 23
 	}
24 24
 
25 25
 	/**
26
-	 * @param  string $mealColumn
27
-	 * @param  string $mealName
28 26
 	 * @return void
29 27
 	 */
30 28
 	public function render(int $programId)
Please login to merge, or discard this patch.
app/components/Forms/RegistrationForm.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 	protected $userService;
26 26
 
27 27
 	/**
28
-	 * @param ProvinceModel $model
29 28
 	 */
30 29
 	public function __construct(
31 30
 		ProvinceModel $province,
Please login to merge, or discard this patch.
app/components/Forms/VisitorForm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -459,7 +459,7 @@
 block discarded – undo
459 459
 
460 460
 	/**
461 461
 	 * @param  array  $programs
462
-	 * @return array
462
+	 * @return boolean
463 463
 	 */
464 464
 	protected function filterFilledCapacity(array $programs = []): array
465 465
 	{
Please login to merge, or discard this patch.
app/models/VisitorModel.php 1 patch
Doc Comments   +17 added lines, -15 removed lines patch added patch discarded remove patch
@@ -204,11 +204,9 @@  discard block
 block discarded – undo
204 204
 	/**
205 205
 	 * Modify a visitor
206 206
 	 *
207
-	 * @param	int		$visitor_id		ID of a visitor
208
-	 * @param	array	$db_data		Visitor's database data
209
-	 * @param	array	$meals_data		Data of meals
210
-	 * @param	array	$programs_data	Program's data
211
-	 * @return	mixed					TRUE or array of errors
207
+	 * @param	int		$visitorId		ID of a visitor
208
+	 * @param	array	$programs	Program's data
209
+	 * @return	integer					TRUE or array of errors
212 210
 	 */
213 211
 	public function modify(int $visitorId, array $visitor, array $meals, array $programs)
214 212
 	{
@@ -246,10 +244,8 @@  discard block
 block discarded – undo
246 244
 	/**
247 245
 	 * Modify a visitor
248 246
 	 *
249
-	 * @param	int		$visitor_id		ID of a visitor
250
-	 * @param	array	$db_data		Visitor's database data
251
-	 * @param	array	$meals_data		Data of meals
252
-	 * @param	array	$programs_data	Program's data
247
+	 * @param	int		$visitor		ID of a visitor
248
+	 * @param	array	$programs	Program's data
253 249
 	 * @return	mixed					TRUE or array of errors
254 250
 	 */
255 251
 	public function modifyByGuid($guid, $visitor, $meals, $programs)
@@ -320,7 +316,8 @@  discard block
 block discarded – undo
320 316
 	 * Delete one or multiple record/s
321 317
 	 *
322 318
 	 * @param	int		ID/s of record
323
-	 * @return	boolean
319
+	 * @param integer $id
320
+	 * @return	integer|null
324 321
 	 */
325 322
 	public function delete($id)
326 323
 	{
@@ -337,7 +334,9 @@  discard block
 block discarded – undo
337 334
 	 *
338 335
 	 * @param	int		ID/s of record
339 336
 	 * @param 	int 	0 | 1
340
-	 * @return	boolean
337
+	 * @param integer $id
338
+	 * @param string $value
339
+	 * @return	integer|null
341 340
 	 */
342 341
 	public function checked($id, $value)
343 342
 	{
@@ -407,7 +406,9 @@  discard block
 block discarded – undo
407 406
 	 *
408 407
 	 * @param	int	ID/s of visitor
409 408
 	 * @param	string	type of payment (pay | advance)
410
-	 * @return	string	error message or true
409
+	 * @param integer $ids
410
+	 * @param string $type
411
+	 * @return	integer|null	error message or true
411 412
 	 */
412 413
 	public function payCharge($ids, $type)
413 414
 	{
@@ -431,7 +432,8 @@  discard block
 block discarded – undo
431 432
 	 * Get recipients by ids
432 433
 	 *
433 434
 	 * @param	mixed	ID of visitor
434
-	 * @return	mixed	result
435
+	 * @param integer $ids
436
+	 * @return	\Nette\Database\IRow[]	result
435 437
 	 */
436 438
 	public function getRecipients($ids)
437 439
 	{
@@ -457,7 +459,7 @@  discard block
 block discarded – undo
457 459
 	}
458 460
 
459 461
 	/**
460
-	 * @return Row
462
+	 * @return \Nette\Database\IRow[]
461 463
 	 */
462 464
 	public function all()
463 465
 	{
@@ -523,7 +525,7 @@  discard block
 block discarded – undo
523 525
 
524 526
 	/**
525 527
 	 * @param	int		ID of visitor
526
-	 * @return	mixed	result
528
+	 * @return	\Nette\Database\IRow[]	result
527 529
 	 */
528 530
 	public function findVisitorPrograms(int $visitorId)
529 531
 	{
Please login to merge, or discard this patch.
app/presenters/ProgramPresenter.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	/**
119 119
 	 * Stores program into storage
120 120
 	 *
121
-	 * @param  Nette\Utils\ArrayHash  $program
121
+	 * @param  ArrayHash  $program
122 122
 	 * @return boolean
123 123
 	 */
124 124
 	public function actionCreate(ArrayHash $program)
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
 	 * Updates program in storage
151 151
 	 *
152 152
 	 * @param  int                    $id
153
-	 * @param  Nette\Utils\ArrayHash  $program
154
-	 * @return boolean
153
+	 * @param  ArrayHash  $program
154
+	 * @return integer|null
155 155
 	 */
156 156
 	public function actionUpdate(int $id, ArrayHash $program)
157 157
 	{
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 	}
326 326
 
327 327
 	/**
328
-	 * @return AProgramOverviewControl
328
+	 * @return IProgramOverviewControl
329 329
 	 */
330 330
 	protected function createComponentProgramOverview(): IProgramOverviewControl
331 331
 	{
@@ -425,7 +425,6 @@  discard block
 block discarded – undo
425 425
 	}
426 426
 
427 427
 	/**
428
-	 * @param  ProgramRepository $model
429 428
 	 * @return $this
430 429
 	 */
431 430
 	protected function setProgramRepository(ProgramRepository $repository):self
Please login to merge, or discard this patch.
app/presenters/RegistrationPresenter.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 	/**
146 146
 	 * Process data from form
147 147
 	 *
148
-	 * @return void
148
+	 * @return string
149 149
 	 */
150 150
 	public function actionCreate($visitor)
151 151
 	{
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
 	/**
172 172
 	 * @param  string  $guid
173
-	 * @return void
173
+	 * @return string
174 174
 	 */
175 175
 	public function actionUpdate($guid, $visitor)
176 176
 	{
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 	}
262 262
 
263 263
 	/**
264
-	 * @return RegistrationFormControl
264
+	 * @return RegistrationForm
265 265
 	 */
266 266
 	protected function createComponentRegistrationForm(): RegistrationForm
267 267
 	{
@@ -390,7 +390,6 @@  discard block
 block discarded – undo
390 390
 	}
391 391
 
392 392
 	/**
393
-	 * @param EventService $skautisEvent
394 393
 	 *
395 394
 	 * @return self
396 395
 	 */
Please login to merge, or discard this patch.
app/presenters/VisitorPresenter.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	/**
93 93
 	 * Process data from form
94 94
 	 *
95
-	 * @return void
95
+	 * @return boolean
96 96
 	 */
97 97
 	public function actionCreate($visitor)
98 98
 	{
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 * Process data from editing
115 115
 	 *
116 116
 	 * @param  integer 	$id
117
-	 * @return void
117
+	 * @return boolean
118 118
 	 */
119 119
 	public function actionUpdate($id, $visitor)
120 120
 	{
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 	}
190 190
 
191 191
 	/**
192
-	 * @param  integer|string $ids
192
+	 * @param  integer|string $id
193 193
 	 * @return void
194 194
 	 */
195 195
 	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(int $id = null)
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 	}
344 344
 
345 345
 	/**
346
-	 * @return VisitorFormControl
346
+	 * @return VisitorForm
347 347
 	 */
348 348
 	protected function createComponentVisitorForm(): VisitorForm
349 349
 	{
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 	}
374 374
 
375 375
 	/**
376
-	 * @return Latte
376
+	 * @return \Nette\Application\UI\ITemplate
377 377
 	 */
378 378
 	protected function createMailTemplate()
379 379
 	{
Please login to merge, or discard this patch.
app/repositories/ProgramRepository.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
 	/**
55 55
 	 * @param  int  $id
56
-	 * @return Nette\Database\Table\ActiveRow
56
+	 * @return ActiveRow
57 57
 	 */
58 58
 	public function find(int $id): ActiveRow
59 59
 	{
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
 	/**
82 82
 	 * @param  int    $programId
83
-	 * @return array
83
+	 * @return ActiveRow
84 84
 	 */
85 85
 	public function findTutor(int $programId): ActiveRow
86 86
 	{
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	}
98 98
 
99 99
 	/**
100
-	 * @param  Nette\Utils\ArrayHash $program
100
+	 * @param  ArrayHash $program
101 101
 	 * @return boolean
102 102
 	 */
103 103
 	public function create(ArrayHash $program)
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
 	}
109 109
 
110 110
 	/**
111
-	 * @param  Nette\Utils\ArrayHash $program
112
-	 * @return boolean
111
+	 * @param  ArrayHash $program
112
+	 * @return integer|null
113 113
 	 */
114 114
 	public function update(int $id, ArrayHash $program)
115 115
 	{
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
 	/**
122 122
 	 * @param  int    $id
123
-	 * @return boolean
123
+	 * @return integer|null
124 124
 	 */
125 125
 	public function delete(int $id)
126 126
 	{
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
 	}
158 158
 
159 159
 	/**
160
-	 * @param  Nette\Utils\ArrayHash $program
161
-	 * @return Nette\Utils\ArrayHash
160
+	 * @param  ArrayHash $program
161
+	 * @return ArrayHash
162 162
 	 */
163 163
 	protected function transformDisplayInRegValue(ArrayHash $program): ArrayHash
164 164
 	{
Please login to merge, or discard this patch.