original_string: protected function loadStoreId() {
      $query = Drupal::entityQuery('commerce_store');
      $result = $query->execute();
  
      // There should only ever be one value returned so we naively use the first
      // item in the array. This should generally be safe as this should only run
      // within a Drupal site install context.
      $storeId = NULL;
      if (count($result) > 0) {
        $storeId = reset($result);
      }
  
      return $storeId;
    }
code: protected function loadStoreId() {
      $query = Drupal::entityQuery('commerce_store');
      $result = $query->execute();
  
      // There should only ever be one value returned so we naively use the first
      // item in the array. This should generally be safe as this should only run
      // within a Drupal site install context.
      $storeId = NULL;
      if (count($result) > 0) {
        $storeId = reset($result);
      }
  
      return $storeId;
    }
code_tokens: protected function loadStoreId ( ) { $ query = Drupal :: entityQuery ( 'commerce_store' ) ; $ result = $ query -> execute ( ) ; // There should only ever be one value returned so we naively use the first // item in the array. This should generally be safe as this should only run // within a Drupal site install context. $ storeId = NULL ; if ( count ( $ result ) > 0 ) { $ storeId = reset ( $ result ) ; } return $ storeId ; }
docstring: Loads the main store.
  
  @return int
  Loaded store ID or NULL if one couldn't be found.
docstring_tokens: Loads the main store .