Skip to content

Commit 65c828f

Browse files
committed
PHP style fixes
1 parent c6f2c48 commit 65c828f

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

config.php

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
11
<?php
22

33
/**
4-
* Used to store different static data.
4+
* Used to store website configuration information.
55
*
6-
* @var array
6+
* @var string
77
*/
8-
function config($key = '')
8+
function config($key = '')
99
{
10-
1110
$config = [
12-
11+
1312
'name' => 'Simple PHP Website',
14-
13+
1514
'nav_menu' => [
1615
'' => 'Home',
1716
'about-us' => 'About Us',
1817
'products' => 'Products',
1918
'contact' => 'Contact',
2019
],
21-
20+
2221
'template_path' => 'template',
23-
22+
2423
'content_path' => 'content',
25-
24+
2625
'pretty_uri' => true,
27-
26+
2827
'version' => 'v2.0',
2928
];
3029

3130
return $config[$key] ?: null;
32-
}
31+
}

functions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ function pageContent()
6262

6363
/**
6464
* Starts everything and displays the template.
65-
*
6665
*/
6766
function run()
6867
{

index.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<?php
1+
<?php
2+
23
require 'config.php';
34
require 'functions.php';
45

5-
run(); ?>
6+
run();

0 commit comments

Comments
 (0)