Skip to content

Commit 1ab365a

Browse files
committed
Add 'personal skills' to the list of talk categories
1 parent 96dd5c3 commit 1ab365a

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

classes/Http/View/TalkHelper.php

+12-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public function __construct($categories, $levels, $types)
4242
$this->types = $types;
4343
}
4444

45+
/**
46+
* @return null|array|string[]
47+
*/
4548
public function getTalkCategories()
4649
{
4750
$categories = $this->categories;
@@ -56,6 +59,7 @@ public function getTalkCategories()
5659
'framework' => 'Framework',
5760
'ibmi' => 'IBMi',
5861
'javascript' => 'JavaScript',
62+
'personal' => 'Personal Skills',
5963
'security' => 'Security',
6064
'testing' => 'Testing',
6165
'uiux' => 'UI/UX',
@@ -80,7 +84,10 @@ public function getCategoryDisplayName($category)
8084
return $category;
8185
}
8286

83-
public function getTalkTypes()
87+
/**
88+
* @return null|array|string[]
89+
*/
90+
public function getTalkTypes(): ?array
8491
{
8592
$types = $this->types;
8693

@@ -108,7 +115,10 @@ public function getTypeDisplayName($type)
108115
return $type;
109116
}
110117

111-
public function getTalkLevels()
118+
/**
119+
* @return null|array|string[]
120+
*/
121+
public function getTalkLevels(): ?array
112122
{
113123
$levels = $this->levels;
114124

config/development.yml.dist

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ talk:
4545
framework: Framework
4646
ibmi: IBMi
4747
javascript: JavaScript
48+
personal: Personal Skills
4849
security: Security
4950
testing: Testing
5051
uiux: UI/UX

config/production.yml.dist

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ talk:
4545
framework: Framework
4646
ibmi: IBMi
4747
javascript: JavaScript
48+
personal: Personal Skills
4849
security: Security
4950
testing: Testing
5051
uiux: UI/UX

tests/Unit/Http/View/TalkHelperTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public function getTalkCategoriesReturnsDefaultCategoriesIfNoneHaveBeenInjected(
4141
'framework' => 'Framework',
4242
'ibmi' => 'IBMi',
4343
'javascript' => 'JavaScript',
44+
'personal' => 'Personal Skills',
4445
'security' => 'Security',
4546
'testing' => 'Testing',
4647
'uiux' => 'UI/UX',

0 commit comments

Comments
 (0)