Completed
Push — develop ( f8b016...c17f48 )
by Stuart
03:55
created
src/trace-functions.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
   *
49 49
   * @param  array $filterList
50 50
   *         a list of namespaces and classes to skip over
51
-  * @return StackFrame
51
+  * @return GanbaroDigital\MissingBits\TraceInspectors\StackFrame
52 52
   */
53 53
 function get_caller(array $filterList = [])
54 54
 {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
  *         the debug_backtrace() return value
70 70
  * @param  array $filterList
71 71
  *         a list of namespaces and classes to skip over
72
- * @return StackFrame
72
+ * @return GanbaroDigital\MissingBits\TraceInspectors\StackFrame
73 73
  */
74 74
 function get_caller_from_trace(array $backtrace, array $filterList = [])
75 75
 {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
 
44 44
 use GanbaroDigital\MissingBits\TraceInspectors\GetCaller;
45 45
 
46
- /**
47
-  * work out who has called a piece of code
48
-  *
49
-  * @param  array $filterList
50
-  *         a list of namespaces and classes to skip over
51
-  * @return StackFrame
52
-  */
46
+    /**
47
+     * work out who has called a piece of code
48
+     *
49
+     * @param  array $filterList
50
+     *         a list of namespaces and classes to skip over
51
+     * @return StackFrame
52
+     */
53 53
 function get_caller(array $filterList = [])
54 54
 {
55 55
     // we supply the trace
Please login to merge, or discard this patch.
src/TraceInspectors/FilterBacktrace.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 
89 89
         // PHP's stack trace is a little esoteric. To find all the details about
90 90
         // a caller, we have to combine information from two stack frames.
91
-        $prevFrame = $backtrace[max($index - 1,0)];
91
+        $prevFrame = $backtrace[max($index - 1, 0)];
92 92
 
93 93
         // find the first backtrace entry that passes our filters
94 94
         for ($i = $index; $i <= $maxIndex; $i++) {
Please login to merge, or discard this patch.