Passed
Push — master ( 222f48...0fa176 )
by y
01:47
created
src/DB/Fluent/DateTime/DateTimeTrait.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @return Text
26 26
      */
27
-    public function date () {
27
+    public function date() {
28 28
         return $this->dateFormat('%Y-%m-%d');
29 29
     }
30 30
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param string|string[] $format Format, or formats keyed by driver name.
35 35
      * @return Text
36 36
      */
37
-    public function dateFormat ($format) {
37
+    public function dateFormat($format) {
38 38
         if (is_array($format)) {
39 39
             $format = $format[$this->db->getDriver()];
40 40
         }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @return Text
52 52
      */
53
-    public function datetime () {
53
+    public function datetime() {
54 54
         return $this->dateFormat([
55 55
             'mysql' => '%Y-%m-%d %H:%i:%S',
56 56
             'sqlite' => '%Y-%m-%d %H:%M:%S'
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @return Num
64 64
      */
65
-    public function day () {
65
+    public function day() {
66 66
         return Num::factory($this->db, $this->dateFormat('%d'));
67 67
     }
68 68
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @return Num
73 73
      */
74
-    public function dayOfWeek () {
74
+    public function dayOfWeek() {
75 75
         return Num::factory($this->db, $this->dateFormat('%w'));
76 76
     }
77 77
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @return Num
82 82
      */
83
-    public function dayOfYear () {
83
+    public function dayOfYear() {
84 84
         return Num::factory($this->db, $this->dateFormat('%j'));
85 85
     }
86 86
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      *
90 90
      * @return Num
91 91
      */
92
-    public function hours () {
92
+    public function hours() {
93 93
         return Num::factory($this->db, $this->dateFormat('%H'));
94 94
     }
95 95
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      *
101 101
      * @return Text
102 102
      */
103
-    public function iso8601 () {
103
+    public function iso8601() {
104 104
         return $this->dateFormat([
105 105
             'mysql' => '%Y-%m-%dT%H:%i:%SZ',
106 106
             'sqlite' => '%Y-%m-%dT%H:%M:%SZ',
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      *
113 113
      * @return Num
114 114
      */
115
-    public function minutes () {
115
+    public function minutes() {
116 116
         return Num::factory($this->db, $this->dateFormat([
117 117
             'mysql' => '%i',
118 118
             'sqlite' => '%M'
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      *
125 125
      * @return Num
126 126
      */
127
-    public function month () {
127
+    public function month() {
128 128
         return Num::factory($this->db, $this->dateFormat('%m'));
129 129
     }
130 130
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      *
134 134
      * @return Num
135 135
      */
136
-    public function seconds () {
136
+    public function seconds() {
137 137
         return Num::factory($this->db, $this->dateFormat('%S'));
138 138
     }
139 139
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      *
143 143
      * @return Text
144 144
      */
145
-    public function time () {
145
+    public function time() {
146 146
         return $this->dateFormat([
147 147
             'mysql' => '%H:%i:%S',
148 148
             'sqlite' => '%H:%M:%S'
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      *
155 155
      * @return Num
156 156
      */
157
-    public function timestamp () {
157
+    public function timestamp() {
158 158
         if ($this->db->isSQLite()) {
159 159
             return Num::factory($this->db, "STRFTIME('%s',{$this})");
160 160
         }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      *
172 172
      * @return DateTime
173 173
      */
174
-    public function toLocalTz () {
174
+    public function toLocalTz() {
175 175
         if ($this->db->isSQLite()) {
176 176
             // docs:
177 177
             // > The "localtime" modifier (12) assumes the time value to its left is in
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      *
194 194
      * @return DateTime
195 195
      */
196
-    public function toUtc () {
196
+    public function toUtc() {
197 197
         if ($this->db->isSQLite()) {
198 198
             // docs:
199 199
             // > "utc" assumes that the time value to its left is in the local timezone
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      *
211 211
      * @return Num
212 212
      */
213
-    public function weekOfYear () {
213
+    public function weekOfYear() {
214 214
         return Num::factory($this->db, $this->dateFormat([
215 215
             'mysql' => '%U',
216 216
             'sqlite' => '%W'
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      *
223 223
      * @return Num
224 224
      */
225
-    public function year () {
225
+    public function year() {
226 226
         return Num::factory($this->db, $this->dateFormat('%Y'));
227 227
     }
228 228
 }
Please login to merge, or discard this patch.