Code Duplication    Length = 9-9 lines in 2 locations

src/Query/CreateDatabaseAbstract.php 1 location

@@ 61-69 (lines=9) @@
58
	 *
59
	 * @return \chillerlan\Database\Query\CreateDatabaseInterface
60
	 */
61
	public function charset(string $collation):CreateDatabaseInterface{
62
		$collation = trim($collation);
63
64
		if(!empty($collation)){
65
			$this->collate = $collation;
66
		}
67
68
		return $this;
69
	}
70
71
}
72

src/Query/CreateTableAbstract.php 1 location

@@ 52-60 (lines=9) @@
49
	 *
50
	 * @return \chillerlan\Database\Query\CreateTableInterface
51
	 */
52
	public function charset(string $collation):CreateTableInterface{
53
		$collation = trim($collation);
54
55
		if(!empty($collation)){
56
			$this->collate = $collation;
57
		}
58
59
		return $this;
60
	}
61
62
	/**
63
	 * @return \chillerlan\Database\Query\CreateTableInterface