original_string: protected function sync_profile_images() {
          $counter = 0;
          foreach ($this->userphotos as $userid => $url) {
              if ($url) {
                  $result = helper::update_user_profile_image($userid, $url);
                  if ($result === helper::PROFILE_IMAGE_UPDATE_SUCCESSFUL) {
                      $counter++;
                      mtrace("Profile image succesfully downloaded and created for user '$userid' from $url.");
                  } else {
                      mtrace($result);
                  }
              }
          }
          return $counter;
      }
code: protected function sync_profile_images() {
          $counter = 0;
          foreach ($this->userphotos as $userid => $url) {
              if ($url) {
                  $result = helper::update_user_profile_image($userid, $url);
                  if ($result === helper::PROFILE_IMAGE_UPDATE_SUCCESSFUL) {
                      $counter++;
                      mtrace("Profile image succesfully downloaded and created for user '$userid' from $url.");
                  } else {
                      mtrace($result);
                  }
              }
          }
          return $counter;
      }
code_tokens: protected function sync_profile_images ( ) { $ counter = 0 ; foreach ( $ this -> userphotos as $ userid => $ url ) { if ( $ url ) { $ result = helper :: update_user_profile_image ( $ userid , $ url ) ; if ( $ result === helper :: PROFILE_IMAGE_UPDATE_SUCCESSFUL ) { $ counter ++ ; mtrace ( "Profile image succesfully downloaded and created for user '$userid' from $url." ) ; } else { mtrace ( $ result ) ; } } } return $ counter ; }
docstring: Performs synchronisation of user profile images.
docstring_tokens: Performs synchronisation of user profile images .