@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | return Parser::TRIGGER_SUCCESS; |
46 | 46 | } |
47 | 47 | |
48 | - public function parse(&$var, Value &$o, $trigger) |
|
48 | + public function parse(&$var, Value & $o, $trigger) |
|
49 | 49 | { |
50 | 50 | if (0 !== $o->depth) { |
51 | 51 | return; |
@@ -72,8 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | if (null !== self::$last) { |
74 | 74 | $last_time = self::$last[0] + (self::$last[1] / 1000000); |
75 | - $lap = $time - $last_time; |
|
76 | - ++self::$times; |
|
75 | + $lap = $time - $last_time;++self::$times; |
|
77 | 76 | } else { |
78 | 77 | $lap = null; |
79 | 78 | self::$start = $time; |
@@ -99,7 +98,6 @@ discard block |
||
99 | 98 | { |
100 | 99 | self::$last = null; |
101 | 100 | self::$start = null; |
102 | - self::$times = 0; |
|
103 | - ++self::$group; |
|
101 | + self::$times = 0;++self::$group; |
|
104 | 102 | } |
105 | 103 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return Parser::TRIGGER_SUCCESS; |
45 | 45 | } |
46 | 46 | |
47 | - public function parse(&$var, Value &$o, $trigger) |
|
47 | + public function parse(&$var, Value & $o, $trigger) |
|
48 | 48 | { |
49 | 49 | if (!$var instanceof Closure) { |
50 | 50 | return; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $statics_parsed = []; |
79 | 79 | |
80 | 80 | foreach ($statics as $name => &$static) { |
81 | - $obj = Value::blank('$'.$name); |
|
81 | + $obj = Value::blank('$' . $name); |
|
82 | 82 | $obj->depth = $o->depth + 1; |
83 | 83 | $statics_parsed[$name] = $this->parser->parse($static, $obj); |
84 | 84 | if (null === $statics_parsed[$name]->value) { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | return Parser::TRIGGER_COMPLETE; |
79 | 79 | } |
80 | 80 | |
81 | - public function parse(&$var, Value &$o, $trigger) |
|
81 | + public function parse(&$var, Value & $o, $trigger) |
|
82 | 82 | { |
83 | 83 | if (!$var instanceof Mysqli) { |
84 | 84 | return; |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | // We only do base Mysqli properties so we don't need to worry about complex names |
179 | 179 | if ($this->parser->childHasPath($o, $child)) { |
180 | - $child->access_path .= $o->access_path.'->'.$child->name; |
|
180 | + $child->access_path .= $o->access_path . '->' . $child->name; |
|
181 | 181 | } |
182 | 182 | |
183 | 183 | $basepropvalues[] = $this->parser->parse($param, $child); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | return Parser::TRIGGER_BEGIN; |
63 | 63 | } |
64 | 64 | |
65 | - public function parse(&$var, Value &$o, $trigger) |
|
65 | + public function parse(&$var, Value & $o, $trigger) |
|
66 | 66 | { |
67 | 67 | if (self::$limit >= self::$trigger) { |
68 | 68 | throw new InvalidArgumentException('ArrayLimitPlugin::$limit can not be lower than ArrayLimitPlugin::$trigger'); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | return Parser::TRIGGER_SUCCESS; |
41 | 41 | } |
42 | 42 | |
43 | - public function parse(&$var, Value &$o, $trigger) |
|
43 | + public function parse(&$var, Value & $o, $trigger) |
|
44 | 44 | { |
45 | 45 | if (empty($o->value->contents)) { |
46 | 46 | return; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | return Parser::TRIGGER_SUCCESS; |
44 | 44 | } |
45 | 45 | |
46 | - public function parse(&$var, Value &$o, $trigger) |
|
46 | + public function parse(&$var, Value & $o, $trigger) |
|
47 | 47 | { |
48 | 48 | if (!$var instanceof Exception && (!KINT_PHP70 || !$var instanceof Throwable)) { |
49 | 49 | return; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | return Parser::TRIGGER_SUCCESS; |
47 | 47 | } |
48 | 48 | |
49 | - public function parse(&$var, Value &$o, $trigger) |
|
49 | + public function parse(&$var, Value & $o, $trigger) |
|
50 | 50 | { |
51 | 51 | $reflection = new ReflectionClass($var); |
52 | 52 | if (!$reflection->hasMethod('__toString')) { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return Parser::TRIGGER_SUCCESS; |
58 | 58 | } |
59 | 59 | |
60 | - public function parse(&$var, Value &$o, $trigger) |
|
60 | + public function parse(&$var, Value & $o, $trigger) |
|
61 | 61 | { |
62 | 62 | $trimmed = \rtrim($var); |
63 | 63 | |
@@ -81,10 +81,10 @@ discard block |
||
81 | 81 | |
82 | 82 | $base_obj = new Value(); |
83 | 83 | $base_obj->depth = $o->depth + 1; |
84 | - $base_obj->name = 'unserialize('.$o->name.')'; |
|
84 | + $base_obj->name = 'unserialize(' . $o->name . ')'; |
|
85 | 85 | |
86 | 86 | if ($o->access_path) { |
87 | - $base_obj->access_path = 'unserialize('.$o->access_path; |
|
87 | + $base_obj->access_path = 'unserialize(' . $o->access_path; |
|
88 | 88 | if (!KINT_PHP70 || self::$options === [true]) { |
89 | 89 | $base_obj->access_path .= ')'; |
90 | 90 | } elseif (self::$options === [false]) { |
@@ -59,7 +59,7 @@ |
||
59 | 59 | return $this->triggers; |
60 | 60 | } |
61 | 61 | |
62 | - public function parse(&$var, Value &$o, $trigger) |
|
62 | + public function parse(&$var, Value & $o, $trigger) |
|
63 | 63 | { |
64 | 64 | return \call_user_func_array($this->callback, [&$var, &$o, $trigger, $this->parser]); |
65 | 65 | } |