Completed
Push — trunk ( c0c172...91a948 )
by SuperNova.WS
11:04
created
includes/general/formatters.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -112,10 +112,10 @@  discard block
 block discarded – undo
112 112
     $rexep = "#" . strtr(preg_quote($format), $masks) . "#";
113 113
     if (preg_match($rexep, $date, $out)) {
114 114
       $ret = array(
115
-        "tm_sec"  => (int)$out['S'],
116
-        "tm_min"  => (int)$out['M'],
117
-        "tm_hour" => (int)$out['H'],
118
-        "tm_mday" => (int)$out['d'],
115
+        "tm_sec"  => (int) $out['S'],
116
+        "tm_min"  => (int) $out['M'],
117
+        "tm_hour" => (int) $out['H'],
118
+        "tm_mday" => (int) $out['d'],
119 119
         "tm_mon"  => $out['m'] ? $out['m'] - 1 : 0,
120 120
         "tm_year" => $out['Y'] > 1900 ? $out['Y'] - 1900 : 0,
121 121
       );
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
  * @return int
151 151
  */
152 152
 function datePart($fullDate) {
153
-  return (int)strtotime(date('Y-m-d', $fullDate));
153
+  return (int) strtotime(date('Y-m-d', $fullDate));
154 154
 }
155 155
 
156 156
 
@@ -178,12 +178,12 @@  discard block
 block discarded – undo
178 178
    * @return bool
179 179
    * @throws ErrorException
180 180
    */
181
-    function ($errno, $errstr, $errfile, $errline) {
181
+    function($errno, $errstr, $errfile, $errline) {
182 182
       throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
183 183
     }
184 184
   );
185 185
 
186
-  if(!$var) {
186
+  if (!$var) {
187 187
     return $var;
188 188
   }
189 189
 
Please login to merge, or discard this patch.