Passed
Push — main ( b1d2fe...fd90d3 )
by Dylan
02:25
created
src/includes/functions.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     if (!$date) return null;
10 10
 
11 11
     try {
12
-        $date = new \DateTime($date . ' CET');
12
+        $date = new \DateTime($date.' CET');
13 13
         return $date;
14 14
     } catch (Exception $e) {
15 15
         return null;
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,9 @@
 block discarded – undo
6 6
  */
7 7
 function lifeboat_date_formatter(string $date): ?DateTime
8 8
 {
9
-    if (!$date) return null;
9
+    if (!$date) {
10
+        return null;
11
+    }
10 12
 
11 13
     try {
12 14
         $date = new \DateTime($date . ' CET');
Please login to merge, or discard this patch.
tests/factory/ObjectFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function testFactory()
21 21
     {
22
-        $mock_data  = ['ID' => 0];
22
+        $mock_data = ['ID' => 0];
23 23
 
24 24
         foreach (ClassMap::MODELS as $name => $class) {
25 25
             $this->assertInstanceOf($class, ObjectFactory::create($this->getMockClient(), $name, $mock_data));
Please login to merge, or discard this patch.