@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | protected function stackTraceCallToString(array $trace) |
91 | 91 | { |
92 | - if (! isset($trace['type'])) |
|
92 | + if (!isset($trace['type'])) |
|
93 | 93 | { |
94 | 94 | return 'function'; |
95 | 95 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | { |
116 | 116 | $params = []; |
117 | 117 | |
118 | - if (! isset($trace['args'])) |
|
118 | + if (!isset($trace['args'])) |
|
119 | 119 | { |
120 | 120 | return $params; |
121 | 121 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | { |
125 | 125 | if (is_array($arg)) |
126 | 126 | { |
127 | - $params[] = 'array(' . count($arg) . ')'; |
|
127 | + $params[] = 'array('.count($arg).')'; |
|
128 | 128 | } |
129 | 129 | else if (is_object($arg)) |
130 | 130 | { |
@@ -132,19 +132,19 @@ discard block |
||
132 | 132 | } |
133 | 133 | else if (is_string($arg)) |
134 | 134 | { |
135 | - $params[] = 'string(' . $arg . ')'; |
|
135 | + $params[] = 'string('.$arg.')'; |
|
136 | 136 | } |
137 | 137 | else if (is_int($arg)) |
138 | 138 | { |
139 | - $params[] = 'int(' . $arg . ')'; |
|
139 | + $params[] = 'int('.$arg.')'; |
|
140 | 140 | } |
141 | 141 | else if (is_float($arg)) |
142 | 142 | { |
143 | - $params[] = 'float(' . $arg . ')'; |
|
143 | + $params[] = 'float('.$arg.')'; |
|
144 | 144 | } |
145 | 145 | else if (is_bool($arg)) |
146 | 146 | { |
147 | - $params[] = 'bool(' . ($arg ? 'true' : 'false') . ')'; |
|
147 | + $params[] = 'bool('.($arg ? 'true' : 'false').')'; |
|
148 | 148 | } |
149 | 149 | else if ($arg instanceof \__PHP_Incomplete_Class) |
150 | 150 | { |
@@ -125,32 +125,25 @@ |
||
125 | 125 | if (is_array($arg)) |
126 | 126 | { |
127 | 127 | $params[] = 'array(' . count($arg) . ')'; |
128 | - } |
|
129 | - else if (is_object($arg)) |
|
128 | + } else if (is_object($arg)) |
|
130 | 129 | { |
131 | 130 | $params[] = get_class($arg); |
132 | - } |
|
133 | - else if (is_string($arg)) |
|
131 | + } else if (is_string($arg)) |
|
134 | 132 | { |
135 | 133 | $params[] = 'string(' . $arg . ')'; |
136 | - } |
|
137 | - else if (is_int($arg)) |
|
134 | + } else if (is_int($arg)) |
|
138 | 135 | { |
139 | 136 | $params[] = 'int(' . $arg . ')'; |
140 | - } |
|
141 | - else if (is_float($arg)) |
|
137 | + } else if (is_float($arg)) |
|
142 | 138 | { |
143 | 139 | $params[] = 'float(' . $arg . ')'; |
144 | - } |
|
145 | - else if (is_bool($arg)) |
|
140 | + } else if (is_bool($arg)) |
|
146 | 141 | { |
147 | 142 | $params[] = 'bool(' . ($arg ? 'true' : 'false') . ')'; |
148 | - } |
|
149 | - else if ($arg instanceof \__PHP_Incomplete_Class) |
|
143 | + } else if ($arg instanceof \__PHP_Incomplete_Class) |
|
150 | 144 | { |
151 | 145 | $params[] = 'object(__PHP_Incomplete_Class)'; |
152 | - } |
|
153 | - else |
|
146 | + } else |
|
154 | 147 | { |
155 | 148 | $params[] = gettype($arg); |
156 | 149 | } |