Skip to content

Commit

Permalink
🚀 Version 5.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoverbruggen committed Mar 29, 2023
2 parents 7c19273 + aa40643 commit 8b0aeef
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 22 deletions.
16 changes: 8 additions & 8 deletions PHP Monitor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2889,7 +2889,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1077;
CURRENT_PROJECT_VERSION = 1079;
DEAD_CODE_STRIPPING = YES;
DEBUG = YES;
DEVELOPMENT_TEAM = 8M54J5J787;
Expand All @@ -2902,7 +2902,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.4;
MARKETING_VERSION = 5.8;
MARKETING_VERSION = 5.8.1;
PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -2919,7 +2919,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1077;
CURRENT_PROJECT_VERSION = 1079;
DEAD_CODE_STRIPPING = YES;
DEBUG = NO;
DEVELOPMENT_TEAM = 8M54J5J787;
Expand All @@ -2932,7 +2932,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.4;
MARKETING_VERSION = 5.8;
MARKETING_VERSION = 5.8.1;
PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -3148,7 +3148,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1077;
CURRENT_PROJECT_VERSION = 1079;
DEBUG = NO;
DEVELOPMENT_TEAM = 8M54J5J787;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -3160,7 +3160,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.4;
MARKETING_VERSION = 5.8;
MARKETING_VERSION = 5.8.1;
PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon.dev;
PRODUCT_NAME = "$(TARGET_NAME) DEV";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -3259,7 +3259,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1077;
CURRENT_PROJECT_VERSION = 1079;
DEBUG = YES;
DEVELOPMENT_TEAM = 8M54J5J787;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -3271,7 +3271,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.4;
MARKETING_VERSION = 5.8;
MARKETING_VERSION = 5.8.1;
PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
36 changes: 22 additions & 14 deletions phpmon/Domain/Integrations/Valet/Scanners/ValetDomainScanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ class ValetDomainScanner: DomainScanner {

func resolveSiteCount(paths: [String]) -> Int {
return paths.map { path in

let entries = try! FileSystem
.getShallowContentsOfDirectory(path)

return entries
.map { self.isSite($0, forPath: path) }
.filter { $0 == true}
.count
do {
let entries = try FileSystem
.getShallowContentsOfDirectory(path)

return entries
.map { self.isSite($0, forPath: path) }
.filter { $0 == true}
.count
} catch {
Log.err("Unexpected error getting contents of \(path): \(error).")
return 0
}

}.reduce(0, +)
}
Expand All @@ -30,13 +34,17 @@ class ValetDomainScanner: DomainScanner {
var sites: [ValetSite] = []

paths.forEach { path in
let entries = try! FileSystem
.getShallowContentsOfDirectory(path)

return entries.forEach {
if let site = self.resolveSite(path: "\(path)/\($0)") {
sites.append(site)
do {
let entries = try FileSystem
.getShallowContentsOfDirectory(path)

return entries.forEach {
if let site = self.resolveSite(path: "\(path)/\($0)") {
sites.append(site)
}
}
} catch {
Log.err("Unexpected error getting contents of \(path): \(error).")
}
}

Expand Down

0 comments on commit 8b0aeef

Please sign in to comment.