Skip to content

Commit e2dedcd

Browse files
committed
missing docblocks
1 parent 5f4b818 commit e2dedcd

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

app/base/tools/Utils/SiteData.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ public function getDefaultLocale()
114114
return null;
115115
}
116116

117+
/**
118+
* gets preferred language by browser configuration
119+
*
120+
* @return string
121+
*/
117122
public function getBrowserPreferredLanguage()
118123
{
119124
$langs = [];

app/base/traits/PageTrait.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ protected function getTokenData()
9595
return false;
9696
}
9797

98+
/**
99+
* checks if current is homepage
100+
*
101+
* @return boolean
102+
*/
98103
public function isHomePage()
99104
{
100105
if ($this instanceof Page) {

app/site/models/News.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public function getRewritePrefix()
4141
return 'news';
4242
}
4343

44+
/**
45+
* gets formatted Date
46+
*
47+
* @return string
48+
*/
4449
public function getDate()
4550
{
4651
return (new \DateTime($this->date))->format('Y-m-d');

app/site/models/Website.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@
2323
*/
2424
class Website extends Model
2525
{
26+
/**
27+
* {@inheritdocs}
28+
*
29+
* @return self
30+
*/
2631
public function prePersist()
2732
{
2833
$this->aliases = implode(",", array_filter(array_map('trim', explode(",", $this->aliases))));
34+
35+
return parent::prePersist();
2936
}
3037
}

0 commit comments

Comments
 (0)