reports_process_test.php 1012 B

123456789101112131415161718192021222324252627
  1. <?php
  2. $cleanliness = $test_values->cleanliness;
  3. $data[$key]->cleanlinessCounts[$cleanliness - 1]++;
  4. $total_data->cleanlinessCounts[$cleanliness - 1]++;
  5. $staff_badge_worn = $test_values->staff_badge_worn ?? null;
  6. if(is_null($staff_badge_worn)) $data[$key]->staffBadgeWornCounts[0]++;
  7. else $data[$key]->staffBadgeWornCounts[$staff_badge_worn + 1]++;
  8. $staff_offered_drink = $test_values->staff_offered_drink ?? 0;
  9. $data[$key]->staffOfferedDrinkCounts[$staff_offered_drink]++;
  10. $staff_offered_promotion = $test_values->staff_offered_promotion ?? 0;
  11. $data[$key]->staffOfferedPromotionCounts[$staff_offered_promotion]++;
  12. $staff_help = $test_values->staff_help ?? 0;
  13. $data[$key]->staffOfferedHelpCounts[$staff_help]++;
  14. $staff_behaviour = $test_values->staff_behaviour ?? null;
  15. if(is_null($staff_behaviour)) $data[$key]->staffBehaviourCounts[0]++;
  16. else $data[$key]->staffBehaviourCounts[$staff_behaviour]++;
  17. $staff_uniform = $test_values->staff_uniform ?? 0;
  18. $data[$key]->staffUniformCounts[$staff_uniform]++;
  19. ?>