@@ -21,7 +21,7 @@ |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * @return int |
|
| 24 | + * @return false|string |
|
| 25 | 25 | * @throws \Exception |
| 26 | 26 | */ |
| 27 | 27 | public function save() |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * @return int |
|
| 24 | + * @return false|string |
|
| 25 | 25 | * @throws \Exception |
| 26 | 26 | */ |
| 27 | 27 | public function add() |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * @return int |
|
| 24 | + * @return false|string |
|
| 25 | 25 | * @throws \Exception |
| 26 | 26 | */ |
| 27 | 27 | public function save() |
@@ -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 { |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * Set active elements slugs, use to mark current items. |
| 67 | 67 | * |
| 68 | - * @param array|string $currents |
|
| 68 | + * @param string $currents |
|
| 69 | 69 | */ |
| 70 | 70 | public function setCurrent($currents) |
| 71 | 71 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * Menu creator. |
| 87 | 87 | * @link http://pastebin.com/GAFvSew4 |
| 88 | 88 | * @author J. Bruni - original author |
| 89 | - * @return string|bool |
|
| 89 | + * @return false|string |
|
| 90 | 90 | */ |
| 91 | 91 | public function create() |
| 92 | 92 | { |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | /** |
| 301 | - * @param array $items |
|
| 301 | + * @param MenuItem[] $items |
|
| 302 | 302 | * |
| 303 | 303 | * @return MenuItem[] |
| 304 | 304 | */ |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | } |
| 461 | 461 | |
| 462 | 462 | /** |
| 463 | - * @return mixed |
|
| 463 | + * @return integer |
|
| 464 | 464 | */ |
| 465 | 465 | public function getNesting() |
| 466 | 466 | { |
@@ -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(); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * Menu creator. |
| 12 | 12 | * @link http://pastebin.com/GAFvSew4 |
| 13 | 13 | * @author J. Bruni - original author |
| 14 | - * @return string|bool |
|
| 14 | + * @return false|string |
|
| 15 | 15 | */ |
| 16 | 16 | public function create() |
| 17 | 17 | { |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | /** |
| 95 | 95 | * @param int $nesting |
| 96 | 96 | * @param array $classes |
| 97 | - * @return bool|string |
|
| 97 | + * @return false|string |
|
| 98 | 98 | */ |
| 99 | 99 | public function breadcrumb($nesting = 0, array $classes = []) |
| 100 | 100 | { |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php return array ( |
|
| 1 | +<?php return array( |
|
| 2 | 2 | 'Albums' => 1, |
| 3 | 3 | 'Appearance' => 1, |
| 4 | 4 | 'Articles' => 1, |