Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
1c43439
Fix typo in `BuildConfiguration.swift`
mokagio May 26, 2026
9fd0d8e
Fix typo in `BarChartView.swift`
mokagio May 26, 2026
6b3b367
Fix typo in `LineChartView.swift`
mokagio May 26, 2026
684b1b0
Fix typos in XCUIApplication+ScrollDownToElement.s
mokagio May 26, 2026
68786a6
Fix typos in `TranslationViewModel.swift`
mokagio May 26, 2026
ca85372
Fix typos in `WordPressAPIError.swift`
mokagio May 26, 2026
f78f4da
Fix typo in `WordPressOrgXMLRPCApi.swift`
mokagio May 26, 2026
ef0c3bf
Fix typo in `AccountServiceRemoteREST.m`
mokagio May 26, 2026
04127f5
Fix typo in `WPTableViewHandler.m`
mokagio May 26, 2026
ed7b8e0
Fix typo in `CommentWebView.swift`
mokagio May 26, 2026
00c64c4
Fix typo in `AppLocalizedString.swift`
mokagio May 26, 2026
ec9b331
Fix typo in `String+RangeConveresion.swift`
mokagio May 26, 2026
66bb9bc
Fix typo in `UIView+Animations.swift`
mokagio May 26, 2026
30e856e
Fix typo in `WordPressComAccountService.swift`
mokagio May 26, 2026
7bbd230
Fix typo in `SiteInfoHeaderView.swift`
mokagio May 26, 2026
6a3aceb
Fix typos in `BlogDashboardServiceTests.swift`
mokagio May 26, 2026
b5cb188
Fix typo in PreviewWebKitViewControllerTests.swift
mokagio May 26, 2026
0b2bd13
Fix typo in `QRLoginVerifyCoordinatorTests.swift`
mokagio May 26, 2026
8914d62
Fix typo in `ReaderInterestsDataSourceTests.swift`
mokagio May 26, 2026
8fd55cf
Fix typo in NotificationSettingsServiceTests.swift
mokagio May 26, 2026
b045dff
Fix typo in `NotificationSyncMediatorTests.swift`
mokagio May 26, 2026
ead5249
Fix typos in `PostCoordinatorTests.swift`
mokagio May 26, 2026
9631494
Fix typo in `PostRepositorySaveTests.swift`
mokagio May 26, 2026
a89d85f
Fix typo in `ReaderTopicServiceTest.swift`
mokagio May 26, 2026
73c8910
Fix typos in `PagesListTests.swift`
mokagio May 26, 2026
e5c7fb8
Fix typos in `CodeVerifierTests.swift`
mokagio May 26, 2026
b11fd49
Fix typo in `Media+Sync.swift`
mokagio May 26, 2026
1c680f2
Fix typo in `CommentService.m`
mokagio May 26, 2026
3fa177e
Fix typo in `MediaImageService.swift`
mokagio May 26, 2026
f2f92a6
Fix typo in `MediaImportService.swift`
mokagio May 26, 2026
5b6cd34
Fix typo in `MediaSettings.swift`
mokagio May 26, 2026
49e4d5f
Fix typo in `ReaderPostService.m`
mokagio May 26, 2026
4759501
Fix typo in `SharingService.swift`
mokagio May 26, 2026
6a3e725
Fix typo in `NoticeStore.swift`
mokagio May 26, 2026
27313f0
Fix typo in `JetpackWindowManager.swift`
mokagio May 26, 2026
e3c43a8
Fix typo in `GutenbergRequestAuthenticator.swift`
mokagio May 26, 2026
7062317
Fix typo in InteractiveNotificationsManager.swift
mokagio May 26, 2026
9521122
Fix typo in `WebKitViewController.swift`
mokagio May 26, 2026
f2db046
Fix typo in `WebNavigationDelegate.swift`
mokagio May 26, 2026
10d5715
Fix typo in `CommentContentTableViewCell.swift`
mokagio May 26, 2026
1f0ce84
Fix typo in `ImageCropOverlayView.swift`
mokagio May 26, 2026
e5d25e6
Fix typo in `MediaStorageDetailsView.swift`
mokagio May 26, 2026
f2c1d48
Fix typo in `PostEditor+Publish.swift`
mokagio May 26, 2026
7770af8
Fix typos in `ReaderStreamViewController.swift`
mokagio May 26, 2026
22f34d8
Fix typo in `ReaderTableContent.swift`
mokagio May 26, 2026
9ef1777
Fix typo in `AppExtensionsService.swift`
mokagio May 26, 2026
9ed9385
Fix typo in ShareExtensionEditorViewController.swi
mokagio May 26, 2026
f993e04
Fix typo in `ShareModularViewController.swift`
mokagio May 26, 2026
0a0c187
Fix typo in `codesign.rb`
mokagio May 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Modules/Sources/BuildSettingsKit/BuildConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum BuildConfiguration: String, Sendable {
BuildSettings.current.configuration
}

/// Returns `true` if the build is intented only for internal use.
/// Returns `true` if the build is intended only for internal use.
public var isInternal: Bool {
switch self {
case .debug, .alpha: true
Expand Down
2 changes: 1 addition & 1 deletion Modules/Sources/JetpackStats/Charts/BarChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ struct BarChartView: View {
return 0...100
}
guard data.maxValue > 0 else {
return data.maxValue...0 // Just in case; should never happend
return data.maxValue...0 // Just in case; should never happen
}
// Add some padding above the max value
let padding = max(Int(Double(data.maxValue) * 0.33), 1)
Expand Down
2 changes: 1 addition & 1 deletion Modules/Sources/JetpackStats/Charts/LineChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ struct LineChartView: View {
return 0...100
}
guard data.maxValue > 0 else {
return data.maxValue...0 // Just in case; should never happend
return data.maxValue...0 // Just in case; should never happen
}
// Add some padding above the max value
let padding = max(Int(Double(data.maxValue) * 0.33), 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import XCTest
// Taken from https://stackoverflow.com/a/46943935
extension XCUIApplication {
private struct Constants {
// Half way accross the screen and 40% from top
// Half way across the screen and 40% from top
static let topOffset = CGVector(dx: 0.5, dy: 0.4)

// Half way accross the screen and 70% from top
// Half way across the screen and 70% from top
static let bottomOffset = CGVector(dx: 0.5, dy: 0.7)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public final class TranslationViewModel: ObservableObject {
public func checkAvailability(for content: String, to targetLanguage: Locale.Language = Locale.current.language) async -> TranslationAvailability {
// Important. The `Translation` framework is effective at translating
// HTML, but the `status(...)` method and `NLLanguageRecognizer`
// incorrectly identify dominant langauge as English if a post has a
// signifcant amount of HTML tags and/or CSS styles.
// incorrectly identify dominant language as English if a post has a
// significant amount of HTML tags and/or CSS styles.
let content = (try? ContentExtractor.extractRelevantText(from: content)) ?? content

guard let identifier = IntelligenceService.detectLanguage(from: content) else {
Expand Down
6 changes: 3 additions & 3 deletions Modules/Sources/WordPressKit/WordPressAPIError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ import Foundation
NSLocalizedString(
"wordpress-api.error.unknown",
value: "Something went wrong, please try again later.",
comment: "Error message that describes an unknown error had occured"
comment: "Error message that describes an unknown error had occurred"
)
}

/// Can't encode the request arguments into a valid HTTP request. This is a programming error.
case requestEncodingFailure(underlyingError: Error)
/// Error occured in the HTTP connection.
/// Error occurred in the HTTP connection.
case connection(URLError)
/// The API call returned an error result. For example, an OAuth endpoint may return an 'incorrect username or password' error, an upload media endpoint may return an 'unsupported media type' error.
case endpointError(EndpointError)
/// The API call returned an status code that's unacceptable to the endpoint.
case unacceptableStatusCode(response: HTTPURLResponse, body: Data)
/// The API call returned an HTTP response that WordPressKit can't parse. Receiving this error could be an indicator that there is an error response that's not handled properly by WordPressKit.
case unparsableResponse(response: HTTPURLResponse?, body: Data?, underlyingError: Error)
/// Other error occured.
/// Other error occurred.
case unknown(underlyingError: Error)

static func unparsableResponse(response: HTTPURLResponse?, body: Data?) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion Modules/Sources/WordPressKit/WordPressOrgXMLRPCApi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ extension WordPressOrgXMLRPCApiError: LocalizedError {
case .responseSerializationFailed:
return NSLocalizedString("The serialization of the response failed.", comment: "A failure reason for when the response couldn't be serialized.")
case .unknown:
return NSLocalizedString("An unknown error occurred.", comment: "A failure reason for when the error that occured wasn't able to be determined.")
return NSLocalizedString("An unknown error occurred.", comment: "A failure reason for when the error that occurred wasn't able to be determined.")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ - (void)updateBlogsVisibility:(NSDictionary *)blogs
NSParameterAssert([key isKindOfClass:[NSNumber class]]);
NSParameterAssert([obj isKindOfClass:[NSNumber class]]);
/*
Blog IDs are pased as strings because JSON dictionaries can't take
Blog IDs are passed as strings because JSON dictionaries can't take
non-string keys. If you try, you get a NSInvalidArgumentException
*/
NSString *blogID = [key stringValue];
Expand Down
2 changes: 1 addition & 1 deletion Modules/Sources/WordPressLegacy/WPTableViewHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ - (void)refreshTableViewPreservingOffset
// Clean up
[self discardPreservedRowInfo];

// Notify the delegate that a refresh has occured. Allows the delegate
// Notify the delegate that a refresh has occurred. Allows the delegate
// perform any corrections to the offset, e.g. a negative offset due to a content
// change that was not a post inserted above the previous zero visible index.
if ([self.delegate respondsToSelector:@selector(tableViewHandlerDidRefreshTableViewPreservingOffset:)]) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import UIKit

/// -warning: It's not designed to be used publically yet.
/// -warning: It's not designed to be used publicly yet.
@MainActor
final class CommentWebView: UIView, CommentContentRendererDelegate {
let renderer = WebCommentContentRenderer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Foundation
/// from App Extensions and Widgets, in order to reference strings whose localization live in the app bundle's `.strings` file
/// (rather than the AppExtension's own bundle).
///
/// In order to avoid duplicating our strings accross targets, and make our localization process & tooling easier, we keep all
/// In order to avoid duplicating our strings across targets, and make our localization process & tooling easier, we keep all
/// localized `.strings` in the app's bundle (and don't have a `.strings` file in the App Extension targets themselves);
/// then we make those App Extensions & Widgets reference the strings from the `Localizable.strings` files
/// hosted in the app bundle itself – which is when this helper method is helpful.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

// MARK: - String NSRange and Location convertion Extensions
// MARK: - String NSRange and Location conversion Extensions
//
extension String {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ extension UIView {
/// Coordinates an animation block alongside a keyboard's notification animation event.
/// - Parameters:
/// - notification: A notficiation from a keyboard change event (keyboardWillShowNotification, keyboardWillHideNotification, etc)
/// - animations: The animation block to be preformed. The block will provide the rects from keyboardFrameBeginUserInfoKey and keyboardFrameEndUserInfoKey to the animation block.
/// - animations: The animation block to be performed. The block will provide the rects from keyboardFrameBeginUserInfoKey and keyboardFrameEndUserInfoKey to the animation block.
///
public static func animate(withKeyboard notification: Notification, _ animations: @escaping (CGRect, CGRect) -> Void ) {
guard let userInfo = notification.userInfo else { return }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import WordPressKit
//
public class WordPressComAccountService {

/// Makes the intializer public for external access.
/// Makes the initializer public for external access.
public init() {}

/// Indicates if a WordPress.com account is "PasswordLess": This kind of account must be authenticated via a Magic Link.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class SiteInfoHeaderView: UIView {
}
}

// MARK: - Overriden Methods
// MARK: - Overridden Methods

override func awakeFromNib() {
super.awakeFromNib()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class BlogDashboardServiceTests: CoreDataTestCase {
}

func testTodaysStats() {
let expect = expectation(description: "Parse todays stats")
let expect = expectation(description: "Parse today's stats")
remoteServiceMock.respondWith = .withDraftAndSchedulePosts

let blog = newTestBlog(id: wpComID, context: mainContext)
Expand Down Expand Up @@ -215,7 +215,7 @@ class BlogDashboardServiceTests: CoreDataTestCase {
BlogDashboardPersonalizationService(repository: repositoryMock, siteID: wpComID)
.setEnabled(false, for: .todaysStats)

let expect = expectation(description: "Parse todays stats")
let expect = expectation(description: "Parse today's stats")
remoteServiceMock.respondWith = .withDraftAndSchedulePosts

let blog = newTestBlog(id: wpComID, context: mainContext)
Expand Down Expand Up @@ -254,7 +254,7 @@ class BlogDashboardServiceTests: CoreDataTestCase {
BlogDashboardPersonalizationService(repository: repositoryMock, siteID: wpComID + 1)
.setEnabled(false, for: .todaysStats)

let expect = expectation(description: "Parse todays stats")
let expect = expectation(description: "Parse today's stats")
remoteServiceMock.respondWith = .withDraftAndSchedulePosts

let blog = newTestBlog(id: wpComID, context: mainContext)
Expand All @@ -269,7 +269,7 @@ class BlogDashboardServiceTests: CoreDataTestCase {
}

func testPersistCardsResponse() {
let expect = expectation(description: "Parse todays stats")
let expect = expectation(description: "Parse today's stats")
remoteServiceMock.respondWith = .withDraftAndSchedulePosts

let blog = newTestBlog(id: wpComID, context: mainContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PreviewWebKitViewControllerTests: CoreDataTestCase {
XCTAssertFalse(items.contains(vc.safariButton),
"Preview toolbar for draft should not contain Safari button.")
XCTAssertFalse(items.contains(vc.backButton), "Preview toolbar for draft should not contain back button.")
XCTAssertFalse(items.contains(vc.forwardButton), "Preview toolbar for draft should not contain foward button.")
XCTAssertFalse(items.contains(vc.forwardButton), "Preview toolbar for draft should not contain forward button.")
XCTAssertTrue(items.contains(vc.previewButton), "Preview toolbar for draft should contain preview button.")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class QRLoginVerifyCoordinatorTests: CoreDataTestCase {

// MARK: - Confirm Tapped when waiting for user verification

/// Tests when the user taps the confirm button and is sucessful
/// Tests when the user taps the confirm button and is successful
func testConfirmFromWaitingForUserVerificationAndSucceeds() {
let view = QRLoginVerifyViewMock()
let parentCoordinator = ParentCoorinatorMock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ReaderInterestsDataSourceTests: XCTestCase {
}

func testInterestsDataSourceDelegateIsCalled() {
let delegateExpectation = expectation(description: "DataSource delegate is called sucessfully")
let delegateExpectation = expectation(description: "DataSource delegate is called successfully")
let delegate = MockInterestsDelegate(delegateExpectation)

let service = MockInterestsService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class NotificationSettingsServiceTests: CoreDataTestCase {
let settingsFilename = "notifications-settings.json"
let dummyDeviceId = "1234"

// MARK: - Overriden Methods
// MARK: - Overridden Methods
override func setUp() {
super.setUp()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class NotificationSyncMediatorTests: CoreDataTestCase {
///
fileprivate let timeout = TimeInterval(3)

// MARK: - Overriden Methods
// MARK: - Overridden Methods

override func setUp() {
super.setUp()
Expand Down
4 changes: 2 additions & 2 deletions Tests/KeystoneTests/Tests/Services/PostCoordinatorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ class PostCoordinatorTests: CoreDataTestCase {
/// to generate a preview.
func testSaveDraftPostChangesImmediately() async throws {
// GIVEN a draft post with an unsynced revision and a local revision
// that wasn't commited yet
// that wasn't committed yet
let post = PostBuilder(mainContext, blog: blog).build()
post.status = .draft
post.postID = 974
Expand Down Expand Up @@ -551,7 +551,7 @@ class PostCoordinatorTests: CoreDataTestCase {
/// to generate a preview.
func testSaveDraftPostChangesImmediatelyFailure() async throws {
// GIVEN a draft post with an unsynced revision and a local revision
// that wasn't commited yet
// that wasn't committed yet
let post = PostBuilder(mainContext, blog: blog).build()
post.status = .draft
post.postID = 974
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ class PostRepositorySaveTests: CoreDataTestCase {
}

/// Scenario: the use sends the updated content to the server, the content
/// gets updated on the server, but the app never recieves a response.
/// gets updated on the server, but the app never receives a response.
func testSaveConflictFalsePositiveNoResponseFromTheServer() async throws {
// GIVEN a draft post (client behind, server has "content-c")
let clientDateModified = Date(timeIntervalSince1970: 1709852440)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ final class ReaderTopicSwiftTest: CoreDataTestCase {
let results = try! mainContext.fetch(request)

var topic = results.last as! ReaderAbstractTopic
XCTAssertEqual(service.currentTopic(in: mainContext)?.type, ReaderDefaultTopic.TopicType, "The curent topic should have been a default topic")
XCTAssertEqual(service.currentTopic(in: mainContext)?.type, ReaderDefaultTopic.TopicType, "The current topic should have been a default topic")

topic = results.first as! ReaderAbstractTopic
service.setCurrentTopic(topic)
Expand Down
6 changes: 3 additions & 3 deletions Tests/KeystoneTests/Tests/Utility/PagesListTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ class PagesListTests: CoreDataTestCase {

let manyPages = parentPage(childrenCount: 17, additionalLevels: 7)

// Test 1: place the child page at the begining and the parent page at the end.
// Test 1: place the child page at the beginning and the parent page at the end.
var sorted = PageTree.hierarchyList(of: [child] + manyPages + [parent])
XCTAssertEqual(parent.hierarchyIndex, 0)
XCTAssertEqual(child.hierarchyIndex, 1)
// The child page should follow the parent page in the sorted list
try XCTAssertEqual(XCTUnwrap(sorted.firstIndex(of: parent)) + 1, XCTUnwrap(sorted.firstIndex(of: child)))

// Test 2: place the child page at the end and the parent page at the begining.
// Test 2: place the child page at the end and the parent page at the beginning.
sorted = PageTree.hierarchyList(of: [parent] + manyPages + [child])
XCTAssertEqual(parent.hierarchyIndex, 0)
XCTAssertEqual(child.hierarchyIndex, 1)
Expand Down Expand Up @@ -246,7 +246,7 @@ private extension Array where Element == Page {

/// A string representation of a pages list whose element has a valid `hierarchyIndex` value.
///
/// The output looks similar to the Pages List in the app, where child page is indented based on it's hierachy level.
/// The output looks similar to the Pages List in the app, where child page is indented based on it's hierarchy level.
///
/// For example, this output here represents four page instances. The digits in the string are page ids.
/// Page 1 and 4 are top level pages. Page 1 has two child page: 2 and 3.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CodeVerifierTests: XCTestCase {
}

func testGeneratedCodeVerifierHasLength43() throws {
// 43 is the recommended lenght. See https://www.rfc-editor.org/rfc/rfc7636#section-4.1
// 43 is the recommended length. See https://www.rfc-editor.org/rfc/rfc7636#section-4.1
XCTAssertEqual(try ProofKeyForCodeExchange.CodeVerifier.makeRandomCodeVerifier().rawValue.count, 43)
XCTAssertEqual(try ProofKeyForCodeExchange.CodeVerifier.makeRandomCodeVerifier().rawValue.count, 43)
}
Expand All @@ -34,7 +34,7 @@ class CodeVerifierTests: XCTestCase {
// MARK: –

func testCodeVerifierInitFailsWithValueShorterThan43() {
// 43 is the minimmum lenght from the spec
// 43 is the minimum length from the spec
XCTAssertNil(ProofKeyForCodeExchange.CodeVerifier(value: ""))
XCTAssertNil(ProofKeyForCodeExchange.CodeVerifier(value: "a".repeated(42)))
XCTAssertEqual(ProofKeyForCodeExchange.CodeVerifier(value: "a".repeated(43))?.rawValue.count, 43)
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Classes/Extensions/Media/Media+Sync.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extension Media {
if media.remoteStatus == .pushing || media.remoteStatus == .processing {
media.remoteStatus = .failed
}
// If they failed to upload themselfs because no local copy exists then we need to delete this media object
// If they failed to upload themselves because no local copy exists then we need to delete this media object
// This scenario can happen when media objects were created based on an asset that failed to import to the WordPress App.
// For example a that is stored on the iCloud storage and because of the network connection failed the import process.
if media.remoteStatus == .failed,
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Classes/Services/CommentService.m
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ - (Comment *)createHierarchicalCommentWithContent:(NSString *)content withParent
return nil;
}

// (Insert a new comment into core data. Check for its existance first for paranoia sake.
// (Insert a new comment into core data. Check for its existence first for paranoia sake.
// In theory a sync could include a newly created comment before the request that created it returned.
Comment *comment = [NSEntityDescription insertNewObjectForEntityForName:NSStringFromClass([Comment class]) inManagedObjectContext:context];

Expand Down
2 changes: 1 addition & 1 deletion WordPress/Classes/Services/MediaImageService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ final class MediaImageService {
return exporter
}

/// - warning: This method was added only for backward-compatability with
/// - warning: This method was added only for backward-compatibility with
/// the editor that relies on using URLs for displaying the preview thumbnail
/// while the image is loaded. There is no guarantee that the URL will
/// still be available after a period of time.
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Classes/Services/MediaImportService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MediaImportService: NSObject {

/// The initialiser for Objective-C code.
///
/// Using `ContextManager` as the argument becuase `CoreDataStackSwift` is not accessible from Objective-C code.
/// Using `ContextManager` as the argument because `CoreDataStackSwift` is not accessible from Objective-C code.
@objc
convenience init(contextManager: ContextManager) {
self.init(coreDataStack: contextManager)
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Classes/Services/MediaSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class MediaSettings: NSObject {
/// be resized on upload.
/// If you set this to `minImageDimension` or lower, it will be set to `minImageDimension`.
///
/// - Important: don't access this propery directly to check what size to resize an image, use
/// - Important: don't access this property directly to check what size to resize an image, use
/// `imageSizeForUpload` instead.
///
@objc var maxImageSizeSetting: Int {
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Classes/Services/Reader Post/ReaderPostService.m
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ - (void)insertGapMarkerBeforePost:(ReaderPost *)post forTopic:(ReaderAbstractTop
marker.sortDate = [post.sortDate dateByAddingTimeInterval:-0.1];
marker.date_created_gmt = post.sortDate;

// For compatability with posts that are sorted by score
// For compatibility with posts that are sorted by score
marker.sortRank = @([post.sortRank doubleValue] - CGFLOAT_MIN);
marker.score = post.score;

Expand Down
Loading