original_string: protected static function fixRecords(array $records)
      {
          if (!Arr::isAssoc($records)) {
              foreach ($records as $key => $record) {
                  $record['is_sys_admin'] = 1;
                  $records[$key] = $record;
              }
          } else {
              $records['is_sys_admin'] = 1;
          }
  
          return $records;
      }
code: protected static function fixRecords(array $records)
      {
          if (!Arr::isAssoc($records)) {
              foreach ($records as $key => $record) {
                  $record['is_sys_admin'] = 1;
                  $records[$key] = $record;
              }
          } else {
              $records['is_sys_admin'] = 1;
          }
  
          return $records;
      }
code_tokens: protected static function fixRecords ( array $ records ) { if ( ! Arr :: isAssoc ( $ records ) ) { foreach ( $ records as $ key => $ record ) { $ record [ 'is_sys_admin' ] = 1 ; $ records [ $ key ] = $ record ; } } else { $ records [ 'is_sys_admin' ] = 1 ; } return $ records ; }
docstring: Fixes supplied records to always set is_set_admin flag to true.
  Encrypts passwords if it is supplied.
  
  @param array $records
  
  @return array
docstring_tokens: Fixes supplied records to always set is_set_admin flag to true . Encrypts passwords if it is supplied .