Completed
Pull Request — master (#268)
by
unknown
01:14
created
src/Xhgui/Twig/Extension.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * Get a URL for xhgui.
59 59
      *
60
-     * @param string $path The file/path you want a link to
61
-     * @param array $queryarg Additional querystring arguments.
60
+     * @param array $queryargs Additional querystring arguments.
62 61
      * @return string url.
63 62
      */
64 63
     public function url($name, $queryargs = array())
@@ -73,7 +72,6 @@  discard block
 block discarded – undo
73 72
     /**
74 73
      * Get the URL for static content relative to webroot
75 74
      *
76
-     * @param string $path The file/path you want a link to
77 75
      * @return string url.
78 76
      */
79 77
     public function staticUrl($url)
Please login to merge, or discard this patch.
src/Xhgui/Profile.php 1 patch
Doc Comments   +11 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,6 +94,9 @@  discard block
 block discarded – undo
94 94
         return $a;
95 95
     }
96 96
 
97
+    /**
98
+     * @param double $a
99
+     */
97 100
     protected function _diffPercentKeys($a, $b, $includeSelf = true)
98 101
     {
99 102
         $out = array();
@@ -143,7 +146,7 @@  discard block
 block discarded – undo
143 146
      * out of the meta data in a profile. For example `SERVER.REQUEST_TIME`
144 147
      *
145 148
      * @param string $key The dotted key to read.
146
-     * @return null|mixed Null on failure, otherwise the stored value.
149
+     * @return string Null on failure, otherwise the stored value.
147 150
      */
148 151
     public function getMeta($key = null)
149 152
     {
@@ -220,7 +223,7 @@  discard block
 block discarded – undo
220 223
      * @param string $symbol The name of the function/method to find
221 224
      *    relatives for.
222 225
      * @param string $metric The metric to compare $threshold with.
223
-     * @param float $threshold The threshold to exclude child functions at. Any
226
+     * @param integer $threshold The threshold to exclude child functions at. Any
224 227
      *   function that represents less than this percentage of the current metric
225 228
      *   will be filtered out.
226 229
      * @return array List of (parent, current, children)
@@ -269,7 +272,7 @@  discard block
 block discarded – undo
269 272
      *
270 273
      * @param string $symbol The name of the function to find children of.
271 274
      * @param string $metric The metric to compare $threshold with.
272
-     * @param float $threshold The threshold to exclude functions at. Any
275
+     * @param integer $threshold The threshold to exclude functions at. Any
273 276
      *   function that represents less than
274 277
      * @return array An array of child methods.
275 278
      */
@@ -527,6 +530,11 @@  discard block
 block discarded – undo
527 530
         return $out;
528 531
     }
529 532
 
533
+    /**
534
+     * @param string $parentName
535
+     * @param string $metric
536
+     * @param double $threshold
537
+     */
530 538
     protected function _callgraphData($parentName, $main, $metric, $threshold, $parentIndex = null)
531 539
     {
532 540
         // Leaves don't have children, and don't have links/nodes to add.
Please login to merge, or discard this patch.
src/Xhgui/Profiles.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @param integer $percentile The percentile you want. e.g. 90.
103 103
      * @param string $url
104
-     * @param array $search Search options containing startDate and or endDate
104
+     * @param Xhgui_Storage_Filter $filter
105 105
      * @return array Array of metrics grouped by date
106 106
      */
107 107
     public function getPercentileForUrl($percentile, $url, $filter)
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     /**
138 138
      * Get a paginated set of results.
139 139
      *
140
-     * @param array $options The find options to use.
140
+     * @param Xhgui_Storage_Filter $filter
141 141
      * @return array An array of result data.
142 142
      */
143 143
     public function getAll($filter)
Please login to merge, or discard this patch.
src/Xhgui/Storage/File.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 
296 296
     /**
297 297
      * @param $file
298
-     * @return mixed
298
+     * @return string
299 299
      */
300 300
     protected function getMetafileNameFromProfileName($file)
301 301
     {
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 
306 306
 
307 307
     /**
308
-     * @param $timestamp
308
+     * @param DateTime $timestamp
309 309
      * @return bool|DateTime
310 310
      */
311 311
     protected function getDateTimeFromStringOrTimestamp($timestamp)
Please login to merge, or discard this patch.
src/Xhgui/Storage/Mongo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@
 block discarded – undo
323 323
     }
324 324
 
325 325
     /**
326
-     * @param string|int $date
326
+     * @param DateTime $date
327 327
      * @return \DateTime
328 328
      */
329 329
     protected function getDateTimeFromString($date)
Please login to merge, or discard this patch.
src/Xhgui/Storage/PDO.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@
 block discarded – undo
326 326
     }
327 327
 
328 328
     /**
329
-     * @param string|int $date
329
+     * @param DateTime $date
330 330
      * @return \DateTime
331 331
      */
332 332
     protected function getDateTimeFromString($date) {
Please login to merge, or discard this patch.