Completed
Push — IncomprehensibleFinder/marcos ( 3df5a7 )
by Marcos
05:21 queued 03:01
created
src/Algorithm/Finder.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @param $person
51
-     * @param $person_to_compare_with
50
+     * @param Person $person
51
+     * @param Person $person_to_compare_with
52 52
      *
53 53
      * @return Comparator
54 54
      */
@@ -81,6 +81,9 @@  discard block
 block discarded – undo
81 81
         return $person->birthDate < $person_to_compare_with->birthDate;
82 82
     }
83 83
 
84
+    /**
85
+     * @param Comparator $result
86
+     */
84 87
     private function addAgeDifference($result)
85 88
     {
86 89
         $result->age_difference = $result->second_person->birthDate->getTimestamp() - $result->first_person->birthDate->getTimestamp();
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
         {
60 60
             $result->first_person  = $person;
61 61
             $result->second_person = $person_to_compare_with;
62
-        }
63
-        else
62
+        } else
64 63
         {
65 64
             $result->first_person  = $person_to_compare_with;
66 65
             $result->second_person = $person;
Please login to merge, or discard this patch.