Passed
Push — master ( fd5fbe...6ba584 )
by Sebastian
03:41
created
src/Microtime.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,18 +23,18 @@
 block discarded – undo
23 23
      * @see Microtime::ERROR_FAILED_CREATING_DATE_OBJECT
24 24
      * @see Microtime::ERROR_FAILED_CONVERTING_STRING
25 25
      */
26
-    public function __construct($datetime='now', DateTimeZone $timeZone=null)
26
+    public function __construct($datetime = 'now', DateTimeZone $timeZone = null)
27 27
     {
28
-        if($timeZone === null)
28
+        if ($timeZone === null)
29 29
         {
30 30
             $timeZone = new DateTimeZone(date_default_timezone_get());
31 31
         }
32 32
 
33
-        if(empty($datetime) || $datetime === 'now')
33
+        if (empty($datetime) || $datetime === 'now')
34 34
         {
35 35
             $dateObj = DateTime::createFromFormat('0.u00 U', microtime(), new DateTimeZone('America/Denver'));
36 36
 
37
-            if($dateObj === false) {
37
+            if ($dateObj === false) {
38 38
                 throw new ConvertHelper_Exception(
39 39
                     'Failed to create microseconds date.',
40 40
                     '',
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
         try
50 50
         {
51 51
             parent::__construct($datetime, $timeZone);
52
-        }
53
-        catch (Exception $e)
52
+        } catch (Exception $e)
54 53
         {
55 54
             throw new ConvertHelper_Exception(
56 55
                 'Failed to create date from string.',
Please login to merge, or discard this patch.