Completed
Push — master ( 533386...57d77d )
by smiley
02:37
created
src/DBResultRow.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 	 *
44 44
 	 * @return mixed|null
45 45
 	 */
46
-	public function __get(string $name) {
46
+	public function __get(string $name){
47 47
 
48 48
 		if(isset($this->array[$name])){
49 49
 			return $this->array[$name];
Please login to merge, or discard this patch.
src/Traits/Magic.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@
 block discarded – undo
18 18
  */
19 19
 trait Magic{
20 20
 
21
-	public function __get(string $name) {
21
+	public function __get(string $name){
22 22
 		return $this->get($name);
23 23
 	}
24 24
 
25
-	public function __set(string $name, $value) {
25
+	public function __set(string $name, $value){
26 26
 		$this->set($name, $value);
27 27
 	}
28 28
 
29
-	private function get(string $name) {
29
+	private function get(string $name){
30 30
 		$method = 'magic_get_'.$name;
31 31
 
32 32
 		return method_exists($this, $method) ? $this->$method() : null;
33 33
 	}
34 34
 
35
-	private function set(string $name, $value) {
35
+	private function set(string $name, $value){
36 36
 		$method = 'magic_set_'.$name;
37 37
 
38 38
 		if(method_exists($this, $method)){
Please login to merge, or discard this patch.
src/Query/Dialects/MySQL/CreateTable.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
 		// @todo: whitelist types?
67 67
 		$nolengthtypes = ['DATE', 'TINYBLOB', 'TINYTEXT', 'BLOB', 'TEXT', 'MEDIUMBLOB',
68
-		                  'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID'];
68
+						  'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID'];
69 69
 
70 70
 		$field[] = (is_int($length) || is_string($length) && count(explode(',', $length)) === 2) && !in_array($type, $nolengthtypes)
71 71
 			? $type.'('. $length . ')'
Please login to merge, or discard this patch.
src/Query/Dialects/SQLite/CreateTable.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 			if($this->primaryKey){
53 53
 				$sql .=','.PHP_EOL."\t".'PRIMARY KEY ('.$this->quote($this->primaryKey)
54
-				       .(in_array($this->dir, ['ASC', 'DESC']) ? $this->dir : '').')';
54
+					   .(in_array($this->dir, ['ASC', 'DESC']) ? $this->dir : '').')';
55 55
 			}
56 56
 
57 57
 			$sql .= PHP_EOL.')';
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
 
89 89
 		if(is_int($length)&& in_array($type, ['CHAR', 'NCHAR','VARCHAR', 'NVARCHAR', 'CHARACTER'])
90
-		    || is_string($length) && count(explode(',', $length)) === 2 && $type === 'DECIMAL'){
90
+			|| is_string($length) && count(explode(',', $length)) === 2 && $type === 'DECIMAL'){
91 91
 			$field[] = $type_translation.'('. $length . ')';
92 92
 		}
93 93
 		else{
Please login to merge, or discard this patch.