Completed
Pull Request — master (#177)
by Boris
02:08
created
src/Xhgui/Profile.php 1 patch
Doc Comments   +15 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@  discard block
 block discarded – undo
91 91
         return $a;
92 92
     }
93 93
 
94
+    /**
95
+     * @param double $a
96
+     */
94 97
     protected function _diffPercentKeys($a, $b, $includeSelf = true)
95 98
     {
96 99
         $out = array();
@@ -217,7 +220,7 @@  discard block
 block discarded – undo
217 220
      * @param string $symbol The name of the function/method to find
218 221
      *    relatives for.
219 222
      * @param string $metric The metric to compare $threshold with.
220
-     * @param float $threshold The threshold to exclude child functions at. Any
223
+     * @param integer $threshold The threshold to exclude child functions at. Any
221 224
      *   function that represents less than this percentage of the current metric
222 225
      *   will be filtered out.
223 226
      * @return array List of (parent, current, children)
@@ -265,7 +268,7 @@  discard block
 block discarded – undo
265 268
      *
266 269
      * @param string $symbol The name of the function to find children of.
267 270
      * @param string $metric The metric to compare $threshold with.
268
-     * @param float $threshold The threshold to exclude functions at. Any
271
+     * @param integer $threshold The threshold to exclude functions at. Any
269 272
      *   function that represents less than
270 273
      * @return array An array of child methods.
271 274
      */
@@ -521,6 +524,11 @@  discard block
 block discarded – undo
521 524
         return $out;
522 525
     }
523 526
 
527
+    /**
528
+     * @param string $parentName
529
+     * @param string $metric
530
+     * @param double $threshold
531
+     */
524 532
     protected function _callgraphData($parentName, $main, $metric, $threshold, $parentIndex = null)
525 533
     {
526 534
         // Leaves don't have children, and don't have links/nodes to add.
@@ -596,6 +604,11 @@  discard block
 block discarded – undo
596 604
         return array_shift ($flamegraph);
597 605
     }
598 606
 
607
+    /**
608
+     * @param string $parentName
609
+     * @param string $metric
610
+     * @param double $threshold
611
+     */
599 612
     protected function _flamegraphData($parentName, $main, $metric, $threshold, $parentIndex = null)
600 613
     {
601 614
  		$result = [];
Please login to merge, or discard this patch.