original_string: protected function get_slots_by_slot_number($slots) {
          if (!$slots) {
              return array();
          }
          $newslots = array();
          foreach ($slots as $slot) {
              $newslots[$slot->slot] = $slot;
          }
          return $newslots;
      }
code: protected function get_slots_by_slot_number($slots) {
          if (!$slots) {
              return array();
          }
          $newslots = array();
          foreach ($slots as $slot) {
              $newslots[$slot->slot] = $slot;
          }
          return $newslots;
      }
code_tokens: protected function get_slots_by_slot_number ( $ slots ) { if ( ! $ slots ) { return array ( ) ; } $ newslots = array ( ) ; foreach ( $ slots as $ slot ) { $ newslots [ $ slot -> slot ] = $ slot ; } return $ newslots ; }
docstring: Return array of slots with slot number as key
  @param stdClass[] $slots
  @return stdClass[]
docstring_tokens: Return array of slots with slot number as key