original_string: private function clearEmptyGroups()
      {
          foreach (Craft::$app->sites->getAllGroups() as $group) {
              if (count($group->getSites()) == 0) {
                  Craft::$app->sites->deleteGroup($group);
              }
          }
      }
code: private function clearEmptyGroups()
      {
          foreach (Craft::$app->sites->getAllGroups() as $group) {
              if (count($group->getSites()) == 0) {
                  Craft::$app->sites->deleteGroup($group);
              }
          }
      }
code_tokens: private function clearEmptyGroups ( ) { foreach ( Craft :: $ app -> sites -> getAllGroups ( ) as $ group ) { if ( count ( $ group -> getSites ( ) ) == 0 ) { Craft :: $ app -> sites -> deleteGroup ( $ group ) ; } } }
docstring: Clear empty sute groups
docstring_tokens: Clear empty sute groups