@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | private $model; |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * @param $model |
|
| 16 | + * @param AddModel $model |
|
| 17 | 17 | */ |
| 18 | 18 | public function setModel($model) |
| 19 | 19 | { |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * @return int |
|
| 24 | + * @return false|string |
|
| 25 | 25 | * @throws \Exception |
| 26 | 26 | */ |
| 27 | 27 | public function save() |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | - * @return int |
|
| 25 | + * @return string|false |
|
| 26 | 26 | * @throws \Exception |
| 27 | 27 | */ |
| 28 | 28 | public function save() |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * @return int |
|
| 22 | + * @return boolean |
|
| 23 | 23 | * @throws \Exception |
| 24 | 24 | */ |
| 25 | 25 | public function update() |
@@ -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() |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * @return int |
|
| 22 | + * @return boolean |
|
| 23 | 23 | * @throws \Exception |
| 24 | 24 | */ |
| 25 | 25 | public function update() |
@@ -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 { |