code: private static function populateEntries($heading, $data, $key)
      {
          foreach (LogLevels::all() as $level) {
              if (self::hasLogLevel($heading[$key], $level)) {
                  self::$parsed[] = [
                      'level'  => $level,
                      'header' => $heading[$key],
                      'stack'  => $data[$key],
                  ];
              }
          }
      }
docs: Populate entries.
  
  @param array $heading
  @param array $data
  @param int   $key