original_string: protected function seedIncidentUpdates($incident)
      {
          $defaultUpdates = [
              1 => [
                  [
                      'status'  => Incident::FIXED,
                      'message' => 'The monkeys are back and rested!',
                      'user_id' => 1,
                  ], [
                      'status'  => Incident::WATCHED,
                      'message' => 'Our monkeys need a break from performing. They\'ll be back after a good rest.',
                      'user_id' => 1,
                  ], [
                      'status'  => Incident::IDENTIFIED,
                      'message' => 'We have identified the issue with our lovely performing monkeys.',
                      'user_id' => 1,
                  ],
              ],
              2 => [
                  [
                      'status'  => Incident::WATCHED,
                      'message' => 'We\'re actively watching this issue, so it remains unresolved.',
                      'user_id' => 1,
                  ],
              ],
          ];
  
          $updates = $defaultUpdates[$incident->id];
  
          foreach ($updates as $updateId => $update) {
              $update['incident_id'] = $incident->id;
  
              IncidentUpdate::create($update);
          }
      }
code: protected function seedIncidentUpdates($incident)
      {
          $defaultUpdates = [
              1 => [
                  [
                      'status'  => Incident::FIXED,
                      'message' => 'The monkeys are back and rested!',
                      'user_id' => 1,
                  ], [
                      'status'  => Incident::WATCHED,
                      'message' => 'Our monkeys need a break from performing. They\'ll be back after a good rest.',
                      'user_id' => 1,
                  ], [
                      'status'  => Incident::IDENTIFIED,
                      'message' => 'We have identified the issue with our lovely performing monkeys.',
                      'user_id' => 1,
                  ],
              ],
              2 => [
                  [
                      'status'  => Incident::WATCHED,
                      'message' => 'We\'re actively watching this issue, so it remains unresolved.',
                      'user_id' => 1,
                  ],
              ],
          ];
  
          $updates = $defaultUpdates[$incident->id];
  
          foreach ($updates as $updateId => $update) {
              $update['incident_id'] = $incident->id;
  
              IncidentUpdate::create($update);
          }
      }
code_tokens: protected function seedIncidentUpdates ( $ incident ) { $ defaultUpdates = [ 1 => [ [ 'status' => Incident :: FIXED , 'message' => 'The monkeys are back and rested!' , 'user_id' => 1 , ] , [ 'status' => Incident :: WATCHED , 'message' => 'Our monkeys need a break from performing. They\'ll be back after a good rest.' , 'user_id' => 1 , ] , [ 'status' => Incident :: IDENTIFIED , 'message' => 'We have identified the issue with our lovely performing monkeys.' , 'user_id' => 1 , ] , ] , 2 => [ [ 'status' => Incident :: WATCHED , 'message' => 'We\'re actively watching this issue, so it remains unresolved.' , 'user_id' => 1 , ] , ] , ] ; $ updates = $ defaultUpdates [ $ incident -> id ] ; foreach ( $ updates as $ updateId => $ update ) { $ update [ 'incident_id' ] = $ incident -> id ; IncidentUpdate :: create ( $ update ) ; } }
docstring: Seed the incident updates table for a given incident.
  
  @return void
docstring_tokens: Seed the incident updates table for a given incident .