You are here

private static function Kint::_stepIsInternal in Devel 8.2

Same name and namespace in other branches
  1. 8 kint/kint/Kint.class.php \Kint::_stepIsInternal()

* returns whether current trace step belongs to Kint or its wrappers * *

Parameters

$step: * * @return array

2 calls to Kint::_stepIsInternal()
Kint::_getCalleeInfo in kint/kint/Kint.class.php
* returns parameter names that the function was passed, as well as any predefined symbols before function * call (modifiers) * *
Kint::_parseTrace in kint/kint/Kint.class.php

File

kint/kint/Kint.class.php, line 595

Class

Kint

Code

private static function _stepIsInternal($step) {
  if (isset($step['class'])) {
    foreach (self::$aliases['methods'] as $alias) {
      if ($alias[0] === strtolower($step['class']) && $alias[1] === strtolower($step['function'])) {
        return true;
      }
    }
    return false;
  }
  else {
    return in_array(strtolower($step['function']), self::$aliases['functions'], true);
  }
}