@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * |
| 17 | 17 | * @return Text |
| 18 | 18 | */ |
| 19 | - public function hex () { |
|
| 19 | + public function hex() { |
|
| 20 | 20 | return Text::factory($this->db, "HEX({$this})"); |
| 21 | 21 | } |
| 22 | 22 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @return Num |
| 29 | 29 | */ |
| 30 | - public function length () { |
|
| 30 | + public function length() { |
|
| 31 | 31 | if ($this->db->isSQLite()) { |
| 32 | 32 | return Num::factory($this->db, "LENGTH(CAST({$this} AS TEXT))"); |
| 33 | 33 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * |
| 42 | 42 | * @return Text |
| 43 | 43 | */ |
| 44 | - public function lower () { |
|
| 44 | + public function lower() { |
|
| 45 | 45 | return Text::factory($this->db, "LOWER({$this})"); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @param string $substring |
| 54 | 54 | * @return Num |
| 55 | 55 | */ |
| 56 | - public function position (string $substring) { |
|
| 56 | + public function position(string $substring) { |
|
| 57 | 57 | $substring = $this->db->quote($substring); |
| 58 | 58 | if ($this->db->isSQLite()) { |
| 59 | 59 | return Num::factory($this->db, "INSTR({$this},{$substring})"); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * @param string $replace |
| 71 | 71 | * @return Text |
| 72 | 72 | */ |
| 73 | - public function replace (string $search, string $replace) { |
|
| 73 | + public function replace(string $search, string $replace) { |
|
| 74 | 74 | $search = $this->db->quote($search); |
| 75 | 75 | $replace = $this->db->quote($replace); |
| 76 | 76 | return Text::factory($this->db, "REPLACE({$this},{$search},{$replace})"); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * |
| 82 | 82 | * @return Num |
| 83 | 83 | */ |
| 84 | - public function size () { |
|
| 84 | + public function size() { |
|
| 85 | 85 | if ($this->db->isSQLite()) { |
| 86 | 86 | return Num::factory($this->db, "LENGTH(CAST({$this} AS BLOB))"); |
| 87 | 87 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * @param null|int $length |
| 98 | 98 | * @return Text |
| 99 | 99 | */ |
| 100 | - public function substr (int $start, int $length = null) { |
|
| 100 | + public function substr(int $start, int $length = null) { |
|
| 101 | 101 | if (isset($length)) { |
| 102 | 102 | return Text::factory($this->db, "SUBSTR({$this},{$start},{$length})"); |
| 103 | 103 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * |
| 112 | 112 | * @return Text |
| 113 | 113 | */ |
| 114 | - public function upper () { |
|
| 114 | + public function upper() { |
|
| 115 | 115 | return Text::factory($this->db, "UPPER({$this})"); |
| 116 | 116 | } |
| 117 | 117 | } |
| 118 | 118 | \ No newline at end of file |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @return DateTime |
| 26 | 26 | */ |
| 27 | - public function toDateTime () { |
|
| 27 | + public function toDateTime() { |
|
| 28 | 28 | return DateTime::factory($this->db, $this); |
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | \ No newline at end of file |