Skip to content

Commit a83bd30

Browse files
committed
CI4-style curly braces
1 parent 9c0c00a commit a83bd30

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Libraries/Alerts.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class Alerts {
3838
protected $template;
3939

4040
// initiate library, check for existing session
41-
public function __construct($config = null, RendererInterface $view = null) {
41+
public function __construct($config = null, RendererInterface $view = null)
42+
{
4243

4344
// load optional configuration
4445
$config = $config ?? config('Alerts', false);
@@ -55,7 +56,8 @@ public function __construct($config = null, RendererInterface $view = null) {
5556
}
5657

5758
// add a new alert to the queue
58-
public function add($class, $text) {
59+
public function add($class, $text)
60+
{
5961
$session = session();
6062
$alert = [
6163
'class' => $class,
@@ -74,7 +76,8 @@ public function add($class, $text) {
7476
}
7577

7678
// clears the queue and returns template formatted alerts
77-
public function display() {
79+
public function display()
80+
{
7881
$session = session();
7982

8083
// get any alerts
@@ -94,7 +97,8 @@ public function display() {
9497

9598
// returns default CSS as inline style sheet
9699
// should be injected into <head>
97-
public function css() {
100+
public function css()
101+
{
98102
return $this->view->setVar('prefix', $this->prefix)
99103
->render("Tatter\css");
100104
}

0 commit comments

Comments
 (0)