@@ -2,37 +2,37 @@ |
||
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | - <title><?=$this->pageTitle;?></title> |
|
6 | - <style><?=$this->pageStyle;?></style> |
|
5 | + <title><?=$this->pageTitle; ?></title> |
|
6 | + <style><?=$this->pageStyle; ?></style> |
|
7 | 7 | </head> |
8 | 8 | <body> |
9 | 9 | <section class="wrapper"> |
10 | - <h1><?=$this->message;?></h1> |
|
10 | + <h1><?=$this->message; ?></h1> |
|
11 | 11 | <p> |
12 | - <span class="file"><?=$this->description['file'];?></span> |
|
13 | - <span class="line"><?=$this->description['line'];?></span> throws |
|
14 | - <span class="class"><?=$this->description['class'];?></span> |
|
12 | + <span class="file"><?=$this->description['file']; ?></span> |
|
13 | + <span class="line"><?=$this->description['line']; ?></span> throws |
|
14 | + <span class="class"><?=$this->description['class']; ?></span> |
|
15 | 15 | </p> |
16 | 16 | |
17 | 17 | <section class="trace"> |
18 | 18 | <h2>/* Stack trace */</h2> |
19 | 19 | <ol><?php foreach ($this->trace as $key => $v): ?> |
20 | 20 | <li title="check args"> |
21 | - <span class="file"><?=$v['file'];?></span> |
|
22 | - <span class="line"><?=$v['line'];?></span> |
|
23 | - <span class="class"><?=$v['class'];?></span> |
|
24 | - <span class="type"><?=$v['type'];?></span> |
|
25 | - <span class="function"><?=$v['function'];?></span> |
|
26 | - <pre><?=$v['args'];?></pre> |
|
21 | + <span class="file"><?=$v['file']; ?></span> |
|
22 | + <span class="line"><?=$v['line']; ?></span> |
|
23 | + <span class="class"><?=$v['class']; ?></span> |
|
24 | + <span class="type"><?=$v['type']; ?></span> |
|
25 | + <span class="function"><?=$v['function']; ?></span> |
|
26 | + <pre><?=$v['args']; ?></pre> |
|
27 | 27 | </li> |
28 | - <?php endforeach;?> |
|
28 | + <?php endforeach; ?> |
|
29 | 29 | </ol> |
30 | 30 | </section> |
31 | 31 | </section> |
32 | 32 | <footer class="footer"> |
33 | - <span><?=VER_NAME;?></span> |
|
34 | - <span>© <?=date('Y');?> <?=NAME;?></span> |
|
33 | + <span><?=VER_NAME; ?></span> |
|
34 | + <span>© <?=date('Y'); ?> <?=NAME; ?></span> |
|
35 | 35 | </footer> |
36 | - <script><?=$this->pageScript;?></script> |
|
36 | + <script><?=$this->pageScript; ?></script> |
|
37 | 37 | </body> |
38 | 38 | </html> |
@@ -11,7 +11,7 @@ |
||
11 | 11 | $tables = $this->pdo->query('SHOW TABLES'); |
12 | 12 | |
13 | 13 | foreach ($tables as $table) { |
14 | - $this->pdo->exec('DROP TABLE IF EXISTS ' . $table[0]); |
|
14 | + $this->pdo->exec('DROP TABLE IF EXISTS '.$table[0]); |
|
15 | 15 | } |
16 | 16 | } |
17 | 17 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | if ($queries) { |
43 | 43 | AlertsCollection::add(new Alert( |
44 | 44 | 'success', |
45 | - 'Poprawnie zaimportowano ' . $file['name'].'! Wykonano '.$queries.' zapytań.' |
|
45 | + 'Poprawnie zaimportowano '.$file['name'].'! Wykonano '.$queries.' zapytań.' |
|
46 | 46 | )); |
47 | 47 | $this->redirectTo(DIR.'/admin/tools/db-import'); |
48 | 48 | } else { |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | */ |
295 | 295 | public function setRootID($id) |
296 | 296 | { |
297 | - $this->rootID = (int)$id; |
|
297 | + $this->rootID = (int) $id; |
|
298 | 298 | } |
299 | 299 | |
300 | 300 | /** |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | { |
307 | 307 | usort( |
308 | 308 | $items, |
309 | - function ($a, $b) { |
|
309 | + function($a, $b) { |
|
310 | 310 | /** @var MenuItem $a */ |
311 | 311 | /** @var MenuItem $b */ |
312 | 312 | return $a->getPosition() > $b->getPosition(); |
@@ -1,4 +1,4 @@ |
||
1 | -<?php return array ( |
|
1 | +<?php return array( |
|
2 | 2 | 'Albums' => 1, |
3 | 3 | 'Appearance' => 1, |
4 | 4 | 'Articles' => 1, |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | if (!empty($modules)) { |
40 | 40 | foreach ($modules as $key => $value) { |
41 | - $file = MODULES_ROOT . '/' . $value->getName() . '/menu.php'; |
|
41 | + $file = MODULES_ROOT.'/'.$value->getName().'/menu.php'; |
|
42 | 42 | |
43 | 43 | if (is_file($file)) { |
44 | 44 | include $file; |
@@ -51,9 +51,9 @@ discard block |
||
51 | 51 | |
52 | 52 | public function flushCache($tableName = '') |
53 | 53 | { |
54 | - if (!empty($tableName)) $table = $this->prefix . $tableName; |
|
55 | - else $table = $this->prefix . '*'; |
|
54 | + if (!empty($tableName)) $table = $this->prefix.$tableName; |
|
55 | + else $table = $this->prefix.'*'; |
|
56 | 56 | |
57 | - array_map('unlink', glob(TEMP_ROOT . '/' . self::$config['engine'] . '/' . $table . '*')); |
|
57 | + array_map('unlink', glob(TEMP_ROOT.'/'.self::$config['engine'].'/'.$table.'*')); |
|
58 | 58 | } |
59 | 59 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | 'Podane hasła nie są identyczne!' |
23 | 23 | ) |
24 | 24 | ); |
25 | - $this->redirect(DIR . '/admin/users/add'); |
|
25 | + $this->redirect(DIR.'/admin/users/add'); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | $addModel = new AddModel(); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | ) |
37 | 37 | ); |
38 | 38 | $addModel->flushCache('users'); |
39 | - $this->redirect(DIR . '/admin/users/edit/' . $id); |
|
39 | + $this->redirect(DIR.'/admin/users/edit/'.$id); |
|
40 | 40 | } |
41 | 41 | AlertsCollection::add( |
42 | 42 | new Alert( |
@@ -27,7 +27,7 @@ |
||
27 | 27 | if ($form->isValid()) { |
28 | 28 | $form->delete(); |
29 | 29 | $delModel->flushCache('albums'); |
30 | - $this->redirect(DIR . '/admin/albums'); |
|
30 | + $this->redirect(DIR.'/admin/albums'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | $form->displayAlerts(); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | if ($form->isValid() and $form->update()) { |
33 | 33 | $editModel->flushCache('albums'); |
34 | - $this->redirect(DIR . '/admin/albums/edit/' . $id); |
|
34 | + $this->redirect(DIR.'/admin/albums/edit/'.$id); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | $form->displayAlerts(); |