@@ -42,11 +42,11 @@ |
||
42 | 42 | * Default Memcache Server for all $cache = phpFastCache('memcache'); |
43 | 43 | */ |
44 | 44 | 'server' => [ |
45 | - ['127.0.0.1', 11211, 1], |
|
45 | + [ '127.0.0.1', 11211, 1 ], |
|
46 | 46 | ], |
47 | 47 | |
48 | 48 | 'memcache' => [ |
49 | - ['127.0.0.1', 11211, 1], |
|
49 | + [ '127.0.0.1', 11211, 1 ], |
|
50 | 50 | ], |
51 | 51 | |
52 | 52 | 'redis' => [ |
@@ -6,7 +6,7 @@ |
||
6 | 6 | --> |
7 | 7 | <html> |
8 | 8 | <?php |
9 | -$data = ['title' => 'StupidlySimple PHP | Service']; |
|
9 | +$data = [ 'title' => 'StupidlySimple PHP | Service' ]; |
|
10 | 10 | Core\Viewer::file('layouts/head', $data); |
11 | 11 | ?> |
12 | 12 | <body> |
@@ -6,7 +6,7 @@ |
||
6 | 6 | --> |
7 | 7 | <html> |
8 | 8 | <?php |
9 | -$data = ['title' => 'StupidlySimple PHP | Service']; |
|
9 | +$data = [ 'title' => 'StupidlySimple PHP | Service' ]; |
|
10 | 10 | Core\Viewer::file('layouts/head', $data); |
11 | 11 | ?> |
12 | 12 | <body> |
@@ -6,7 +6,7 @@ |
||
6 | 6 | --> |
7 | 7 | <html> |
8 | 8 | <?php |
9 | -$data = ['title' => 'StupidlySimple | Controller']; |
|
9 | +$data = [ 'title' => 'StupidlySimple | Controller' ]; |
|
10 | 10 | Core\Viewer::file('layouts/head', $data); ?> |
11 | 11 | <body> |
12 | 12 | <!-- Wrapper --> |
@@ -6,7 +6,7 @@ |
||
6 | 6 | --> |
7 | 7 | <html> |
8 | 8 | <?php |
9 | -$data = ['title' => 'StupidlySimple PHP | Service']; |
|
9 | +$data = [ 'title' => 'StupidlySimple PHP | Service' ]; |
|
10 | 10 | Core\Viewer::file('layouts/head', $data); ?> |
11 | 11 | <body> |
12 | 12 | <!-- Wrapper --> |
@@ -5,12 +5,12 @@ |
||
5 | 5 | Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) |
6 | 6 | --> |
7 | 7 | <html> |
8 | -<?php Core\Viewer::file('../layouts/head', $data = ['title' => 'StupidlySimple PHP | Home']); ?> |
|
8 | +<?php Core\Viewer::file('../layouts/head', $data = [ 'title' => 'StupidlySimple PHP | Home' ]); ?> |
|
9 | 9 | <body> |
10 | 10 | <!-- Wrapper --> |
11 | 11 | <div id="wrapper"> |
12 | 12 | |
13 | - <?php Viewer::file('layouts/top', $top_data = ['is_admin' => true]); ?> |
|
13 | + <?php Viewer::file('layouts/top', $top_data = [ 'is_admin' => true ]); ?> |
|
14 | 14 | |
15 | 15 | <?php Viewer::file('layouts/menu') ?> |
16 | 16 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | --> |
7 | 7 | <html> |
8 | 8 | <?php |
9 | -$data = ['title' => 'StupidlySimple PHP | Home']; |
|
9 | +$data = [ 'title' => 'StupidlySimple PHP | Home' ]; |
|
10 | 10 | Viewer::file('layouts/head', $data); |
11 | 11 | ?> |
12 | 12 | <body> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | | see what happen. |
39 | 39 | | |
40 | 40 | */ |
41 | -Router::group('Middleware\Hello@filter', function () { |
|
41 | +Router::group('Middleware\Hello@filter', function() { |
|
42 | 42 | Router::get('/hello', 'hello'); |
43 | 43 | Router::get('/hello/(:any)', 'Controller\Hello@greetWithName'); |
44 | 44 | Router::post('/hello', 'Controller\Hello@greetForm'); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | | middleware will intercept the HTTP request if the user is not logged in. |
55 | 55 | | |
56 | 56 | */ |
57 | -Router::group('Controller\Auth@check', function () { |
|
57 | +Router::group('Controller\Auth@check', function() { |
|
58 | 58 | Router::get('/admin', 'admin/home'); |
59 | 59 | Router::post('/updateuser', 'Controller\User@editUser'); |
60 | 60 | Router::get('/deleteuser', 'Controller\User@deleteUser'); |
@@ -75,6 +75,6 @@ discard block |
||
75 | 75 | | other route declarations. |
76 | 76 | | |
77 | 77 | */ |
78 | -Router::get('/(:any)', function ($match) { |
|
78 | +Router::get('/(:any)', function($match) { |
|
79 | 79 | Viewer::file($match); |
80 | 80 | }); |