@@ -21,11 +21,11 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | |
| 23 | 23 | if (!$this->isAlphaNum($table)) { |
| 24 | - throw new \Exception("Invalid table name " . $table); |
|
| 24 | + throw new \Exception("Invalid table name ".$table); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | if (!$this->isAlphaNum($columnName)) { |
| 28 | - throw new \Exception("Invalid Column name " . $columnName); |
|
| 28 | + throw new \Exception("Invalid Column name ".$columnName); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | $slugTbl = $this->getTablePrefix($table); |
@@ -49,15 +49,15 @@ discard block |
||
| 49 | 49 | public function getIdFromSlug(string $slug, string $table, string $columnName, string $idColumn): int |
| 50 | 50 | { |
| 51 | 51 | if (!$this->isAlphaNum($table)) { |
| 52 | - throw new \Exception("Invalid table name " . $table); |
|
| 52 | + throw new \Exception("Invalid table name ".$table); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | if (!$this->isAlphaNum($columnName)) { |
| 56 | - throw new \Exception("Invalid Slug Column name " . $columnName); |
|
| 56 | + throw new \Exception("Invalid Slug Column name ".$columnName); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | if (!$this->isAlphaNum($idColumn)) { |
| 60 | - throw new \Exception("Invalid ID Column name " . $columnName); |
|
| 60 | + throw new \Exception("Invalid ID Column name ".$columnName); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | $slugTbl = $this->getTablePrefix($table); |
@@ -85,15 +85,15 @@ discard block |
||
| 85 | 85 | public function getSlugFromId(int $searchId, string $table, string $columnName, string $slugColumn): string |
| 86 | 86 | { |
| 87 | 87 | if (!$this->isAlphaNum($table)) { |
| 88 | - throw new \Exception("Invalid table name " . $table); |
|
| 88 | + throw new \Exception("Invalid table name ".$table); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | if (!$this->isAlphaNum($columnName)) { |
| 92 | - throw new \Exception("Invalid Slug Column name " . $columnName); |
|
| 92 | + throw new \Exception("Invalid Slug Column name ".$columnName); |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | if (!$this->isAlphaNum($slugColumn)) { |
| 96 | - throw new \Exception("Invalid ID Column name " . $columnName); |
|
| 96 | + throw new \Exception("Invalid ID Column name ".$columnName); |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | $slugTbl = $this->getTablePrefix($table); |