Skip to content

Commit 13a9e0e

Browse files
Документация и исправления ошибок
1 parent 3882b83 commit 13a9e0e

8 files changed

Lines changed: 590 additions & 34 deletions

File tree

Command/Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ private function stand($comm)
4646
break;
4747
case "make:model":
4848
(new MakeModel($comm[2] ?? null));
49+
break;
4950
case "info":
5051
$this->info();
5152
break;

DataBase/DB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function execute(): bool
110110
private function conn()
111111
{
112112
try {
113-
$this->DB = new PDO("{$this->db_type}:host={$this->db_host}:{$this->db_port};dbname={$this->db_name}", $this->db_user, $this->db_password);
113+
$this->DB = new PDO("{$this->db_type}:host={$this->db_host};port={$this->db_port};dbname={$this->db_name}", $this->db_user, $this->db_password);
114114
} catch (\PDOException $e) {
115115
throw new AppException($e->errorInfo[2], $e->errorInfo[1]);
116116
}

DataBase/Select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function max(string $field = 'id')
239239

240240
private function conditions($str, $conds): void
241241
{
242-
if ($this->SUB = "WHERE") {
242+
if ($this->SUB == "WHERE") {
243243
$this->strWhere .= " $conds $str";
244244
}
245245
}

0 commit comments

Comments
 (0)