@@ -231,9 +231,9 @@ |
||
| 231 | 231 | if (mb_strlen($value)>32) |
| 232 | 232 | { |
| 233 | 233 | $out[$key] = Html::generateElement('span', |
| 234 | - ['class' => 'string', |
|
| 234 | + ['class' => 'string', |
|
| 235 | 235 | 'title' => mb_substr($value, 0, 512)], |
| 236 | - mb_substr($value, 0, 32).'...'); |
|
| 236 | + mb_substr($value, 0, 32).'...'); |
|
| 237 | 237 | } |
| 238 | 238 | else |
| 239 | 239 | { |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | foreach ($args as $key => $value) |
| 213 | 213 | { |
| 214 | 214 | $count++; |
| 215 | - if ($count>=7) |
|
| 215 | + if ($count >= 7) |
|
| 216 | 216 | { |
| 217 | 217 | $out[$key] = '...'; |
| 218 | 218 | break; |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | } |
| 229 | 229 | elseif (is_string($value)) |
| 230 | 230 | { |
| 231 | - if (mb_strlen($value)>32) |
|
| 231 | + if (mb_strlen($value) > 32) |
|
| 232 | 232 | { |
| 233 | 233 | $out[$key] = Html::generateElement('span', |
| 234 | 234 | ['class' => 'string', |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | // div with lines numbers. |
| 325 | 325 | fwrite($this->handle, '<div class="lines">'); |
| 326 | 326 | fwrite($this->handle, Html::generateTag('ol', ['start' => $first])); |
| 327 | - for ($i = $first; $i<=$last; $i++) |
|
| 327 | + for ($i = $first; $i <= $last; $i++) |
|
| 328 | 328 | { |
| 329 | 329 | fwrite($this->handle, '<li></li>'); |
| 330 | 330 | } |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | |
| 334 | 334 | // The code as plain text (without markup and tags). |
| 335 | 335 | fwrite($this->handle, '<pre><code class="php">'); |
| 336 | - for ($i = $first; $i<=$last; $i++) |
|
| 336 | + for ($i = $first; $i <= $last; $i++) |
|
| 337 | 337 | { |
| 338 | 338 | fwrite($this->handle, Html::txt2Html($lines[$i - 1])); |
| 339 | 339 | fwrite($this->handle, "\n"); |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | // div for markup. |
| 344 | 344 | fwrite($this->handle, '<div class="markup">'); |
| 345 | 345 | fwrite($this->handle, Html::generateTag('ol', ['start' => $first])); |
| 346 | - for ($i = $first; $i<=$last; $i++) |
|
| 346 | + for ($i = $first; $i <= $last; $i++) |
|
| 347 | 347 | { |
| 348 | 348 | fwrite($this->handle, Html::generateElement('li', ['class' => ($i==$line) ? 'error' : null], '')); |
| 349 | 349 | } |