Skip to content

Commit 35b3213

Browse files
committed
čistenie po Martinovi
1 parent d044285 commit 35b3213

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

app/Modules/Fof/ArchiveModule/ErasmusPresenter.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,22 @@
1010

1111

1212
class ErasmusPresenter extends BasePresenter
13-
{
14-
13+
{
1514
/**
1615
* @throws BadRequestException
1716
* @throws \Throwable
1817
*/
1918

20-
public function startup(): void
19+
public function startUp(): void
2120
{
22-
parent::startup();
21+
parent::startUp();
2322

2423
// Check if it is the correct event year, otherwise throw 404
2524
if ($this->eventYear !== '2022') {
2625
throw new BadRequestException('Event not found', IResponse::S404_NOT_FOUND);
2726
}
2827
}
29-
28+
3029
protected function createComponentGallery(): ImageGalleryControl
3130
{
3231
return new ImageGalleryControl($this->context);

app/Modules/Fof/ArchiveModule/SchedulePresenter.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,21 @@
77
use Nette\Application\BadRequestException;
88
use Nette\Http\IResponse;
99

10-
11-
12-
use Fykosak\NetteFKSDBDownloader\ORM\Services\ServiceEventDetail;
13-
1410
class SchedulePresenter extends BasePresenter
15-
{
16-
11+
{
12+
1713
/**
1814
* @throws BadRequestException
1915
* @throws \Throwable
2016
*/
2117

22-
public function startup(): void
18+
public function startUp(): void
2319
{
24-
parent::startup();
20+
parent::startUp();
2521

2622
// Check if it is the correct event year, otherwise throw 404
2723
if ($this->eventYear !== '2023') {
2824
throw new BadRequestException('Event not found', IResponse::S404_NOT_FOUND);
2925
}
3026
}
31-
3227
}

tests/Bootstrap.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,5 @@ public static function boot(string $moduleName): Configurator
5454
/* @phpstan-ignore-next-line */
5555
$configurator = Bootstrap::boot(MODULE_NAME);
5656
$container = $configurator->createContainer();
57-
58-
/* Always acquire locks in the order as below! */
59-
const LOCK_DB = __DIR__ . '/tmp/database.lock';
60-
const LOCK_UPLOAD = __DIR__ . '/tmp/upload.lock';
6157
return $container;
6258
// phpcs:enable

0 commit comments

Comments
 (0)