original_string: private function setHolidayForState(&$holidays, $day, $state, $name)
      {
          // Exists?
          if (! array_key_exists($day, $holidays)) {
              // Initialized as State Holiday
              $holidays[$day] = $this->createData($name, []);
          }
          // Is a state holiday?
          if (is_array($holidays[$day]['states'])) {
              // Include Current State
              $holidays[$day]['states'][] = $state;
          }
      }
code: private function setHolidayForState(&$holidays, $day, $state, $name)
      {
          // Exists?
          if (! array_key_exists($day, $holidays)) {
              // Initialized as State Holiday
              $holidays[$day] = $this->createData($name, []);
          }
          // Is a state holiday?
          if (is_array($holidays[$day]['states'])) {
              // Include Current State
              $holidays[$day]['states'][] = $state;
          }
      }
code_tokens: private function setHolidayForState ( & $ holidays , $ day , $ state , $ name ) { // Exists? if ( ! array_key_exists ( $ day , $ holidays ) ) { // Initialized as State Holiday $ holidays [ $ day ] = $ this -> createData ( $ name , [ ] ) ; } // Is a state holiday? if ( is_array ( $ holidays [ $ day ] [ 'states' ] ) ) { // Include Current State $ holidays [ $ day ] [ 'states' ] [ ] = $ state ; } }
docstring: Set Holiday for State
  
  This method was created because Brazilian national holidays may conflict with state holidays. For example,
  "2017-06-15" is a national variable holiday called "Corpus Christi", and is an Acre state fixed holiday called
  "Aniversário do Estado". In these cases, national holiday will be consider more important.
  
  @param  array  $holidays Holidays Dataset
  @param  string $day      Day
  @param  string $state    State Name
  @param  string $name     Holiday Name
docstring_tokens: Set Holiday for State