original_string: public static function getFirstDayOfArchivedDeviceDetectorData()
      {
          static $deviceDetectionBlobAvailableDate;
  
          if (empty($deviceDetectionBlobAvailableDate)) {
              $archiveBlobTables = self::getAllArchiveBlobTables();
  
              $deviceDetectionBlobAvailableDate = null;
              foreach ($archiveBlobTables as $table) {
  
                  // Look for all day archives and try to find that with the lowest date
                  $deviceDetectionBlobAvailableDate = Db::get()->fetchOne(sprintf("SELECT date1 FROM %s WHERE name = 'DevicesDetection_browserVersions' AND period = 1 ORDER BY date1 ASC LIMIT 1", $table));
  
                  if (!empty($deviceDetectionBlobAvailableDate)) {
                      break;
                  }
              }
  
              $deviceDetectionBlobAvailableDate = strtotime($deviceDetectionBlobAvailableDate);
          }
  
          return $deviceDetectionBlobAvailableDate;
      }
code: public static function getFirstDayOfArchivedDeviceDetectorData()
      {
          static $deviceDetectionBlobAvailableDate;
  
          if (empty($deviceDetectionBlobAvailableDate)) {
              $archiveBlobTables = self::getAllArchiveBlobTables();
  
              $deviceDetectionBlobAvailableDate = null;
              foreach ($archiveBlobTables as $table) {
  
                  // Look for all day archives and try to find that with the lowest date
                  $deviceDetectionBlobAvailableDate = Db::get()->fetchOne(sprintf("SELECT date1 FROM %s WHERE name = 'DevicesDetection_browserVersions' AND period = 1 ORDER BY date1 ASC LIMIT 1", $table));
  
                  if (!empty($deviceDetectionBlobAvailableDate)) {
                      break;
                  }
              }
  
              $deviceDetectionBlobAvailableDate = strtotime($deviceDetectionBlobAvailableDate);
          }
  
          return $deviceDetectionBlobAvailableDate;
      }
code_tokens: public static function getFirstDayOfArchivedDeviceDetectorData ( ) { static $ deviceDetectionBlobAvailableDate ; if ( empty ( $ deviceDetectionBlobAvailableDate ) ) { $ archiveBlobTables = self :: getAllArchiveBlobTables ( ) ; $ deviceDetectionBlobAvailableDate = null ; foreach ( $ archiveBlobTables as $ table ) { // Look for all day archives and try to find that with the lowest date $ deviceDetectionBlobAvailableDate = Db :: get ( ) -> fetchOne ( sprintf ( "SELECT date1 FROM %s WHERE name = 'DevicesDetection_browserVersions' AND period = 1 ORDER BY date1 ASC LIMIT 1" , $ table ) ) ; if ( ! empty ( $ deviceDetectionBlobAvailableDate ) ) { break ; } } $ deviceDetectionBlobAvailableDate = strtotime ( $ deviceDetectionBlobAvailableDate ) ; } return $ deviceDetectionBlobAvailableDate ; }
docstring: Find the first day on which DevicesDetection archives were generated
  
  @return int    Timestamp
docstring_tokens: Find the first day on which DevicesDetection archives were generated