/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/src/Panel
NameSizeModeActions
CachePanel.php26480644editdlrm
DeprecationsPanel.php43480644editdlrm
EnvironmentPanel.php26560644editdlrm
HistoryPanel.php12160644editdlrm
IncludePanel.php33980644editdlrm
LogPanel.php15550644editdlrm
MailPanel.php27390644editdlrm
PackagesPanel.php12900644editdlrm
PanelRegistry.php27410644editdlrm
RequestPanel.php18550644editdlrm
RoutesPanel.php16090644editdlrm
SessionPanel.php11250644editdlrm
SqlLogPanel.php30720644editdlrm
TimerPanel.php46980644editdlrm
VariablesPanel.php38240644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/src/Panel/DeprecationsPanel.php (4348B)
_debug = new DebugInclude(); } /** * Get a list of files that were deprecated and split them out into the various parts of the app * * @return array */ protected function _prepare() { $errors = static::$deprecatedErrors; $return = ['cake' => [], 'app' => [], 'plugins' => [], 'vendor' => [], 'other' => []]; foreach ($errors as $error) { $file = $error['file']; $line = $error['line']; $errorData = [ 'file' => $file, 'line' => $line, 'message' => $error['message'], ]; $pluginName = $this->_debug->getPluginName($file); if ($pluginName) { $errorData['niceFile'] = $this->_debug->niceFileName($file, 'plugin', $pluginName); $return['plugins'][$pluginName][] = $errorData; } elseif ($this->_debug->isAppFile($file)) { $errorData['niceFile'] = $this->_debug->niceFileName($file, 'app'); $return['app'][] = $errorData; } elseif ($this->_debug->isCakeFile($file)) { $errorData['niceFile'] = $this->_debug->niceFileName($file, 'cake'); $return['cake'][] = $errorData; } else { $vendorName = $this->_debug->getComposerPackageName($file); if ($vendorName) { $errorData['niceFile'] = $this->_debug->niceFileName($file, 'vendor', $vendorName); $return['vendor'][$vendorName][] = $errorData; } else { $errorData['niceFile'] = $this->_debug->niceFileName($file, 'root'); $return['other'][] = $errorData; } } } ksort($return['plugins']); ksort($return['vendor']); return $return; } /** * Add a error * * @param array $error The deprecated error * @return void */ public static function addDeprecatedError($error) { static::$deprecatedErrors[] = $error; } /** * Reset the tracked errors. * * @return void */ public static function clearDeprecatedErrors() { static::$deprecatedErrors = []; } /** * Get the number of files deprecated in this request. * * @return string */ public function summary() { $data = $this->_data; if (empty($data)) { $data = $this->_prepare(); } return (string)array_reduce($data, function ($carry, $item) { if (empty($item)) { return $carry; } // app, cake, or other groups if (Hash::dimensions($item) == 2) { return $carry + count($item); } // plugin and vendor groups foreach ($item as $group) { $carry += count($group); } return $carry; }, 0); } /** * Shutdown callback * * @param \Cake\Event\EventInterface $event Event * @return void */ public function shutdown(EventInterface $event) { $this->_data = $this->_prepare(); } }