1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-08 04:20:07 +02:00

🎨 Update copyright, minor bracket cleanup

This commit is contained in:
2021-01-29 20:08:27 +01:00
parent 77f4de8ca9
commit fbe791902c
19 changed files with 26 additions and 59 deletions

View File

@ -25,7 +25,6 @@
C476FF9822B0DD830098105B /* Alert.swift in Sources */ = {isa = PBXBuildFile; fileRef = C476FF9722B0DD830098105B /* Alert.swift */; }; C476FF9822B0DD830098105B /* Alert.swift in Sources */ = {isa = PBXBuildFile; fileRef = C476FF9722B0DD830098105B /* Alert.swift */; };
C4811D2422D70A4700B5F6B3 /* App.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4811D2322D70A4700B5F6B3 /* App.swift */; }; C4811D2422D70A4700B5F6B3 /* App.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4811D2322D70A4700B5F6B3 /* App.swift */; };
C4811D2A22D70F9A00B5F6B3 /* MainMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4811D2922D70F9A00B5F6B3 /* MainMenu.swift */; }; C4811D2A22D70F9A00B5F6B3 /* MainMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4811D2922D70F9A00B5F6B3 /* MainMenu.swift */; };
C486EFFC2586931100A02B2C /* PhpMenuItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = C486EFFB2586931100A02B2C /* PhpMenuItem.swift */; };
C49EAB46259FC305007F6C3B /* Paths.swift in Sources */ = {isa = PBXBuildFile; fileRef = C49EAB45259FC305007F6C3B /* Paths.swift */; }; C49EAB46259FC305007F6C3B /* Paths.swift in Sources */ = {isa = PBXBuildFile; fileRef = C49EAB45259FC305007F6C3B /* Paths.swift */; };
C4D8016622B1584700C6DA1B /* Startup.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4D8016522B1584700C6DA1B /* Startup.swift */; }; C4D8016622B1584700C6DA1B /* Startup.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4D8016522B1584700C6DA1B /* Startup.swift */; };
C4EE188422D3386B00E126E5 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4EE188322D3386B00E126E5 /* Constants.swift */; }; C4EE188422D3386B00E126E5 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4EE188322D3386B00E126E5 /* Constants.swift */; };
@ -54,7 +53,6 @@
C476FF9722B0DD830098105B /* Alert.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Alert.swift; sourceTree = "<group>"; }; C476FF9722B0DD830098105B /* Alert.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Alert.swift; sourceTree = "<group>"; };
C4811D2322D70A4700B5F6B3 /* App.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App.swift; sourceTree = "<group>"; }; C4811D2322D70A4700B5F6B3 /* App.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = App.swift; sourceTree = "<group>"; };
C4811D2922D70F9A00B5F6B3 /* MainMenu.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainMenu.swift; sourceTree = "<group>"; }; C4811D2922D70F9A00B5F6B3 /* MainMenu.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainMenu.swift; sourceTree = "<group>"; };
C486EFFB2586931100A02B2C /* PhpMenuItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhpMenuItem.swift; sourceTree = "<group>"; };
C49EAB45259FC305007F6C3B /* Paths.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Paths.swift; sourceTree = "<group>"; }; C49EAB45259FC305007F6C3B /* Paths.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Paths.swift; sourceTree = "<group>"; };
C4D8016522B1584700C6DA1B /* Startup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Startup.swift; sourceTree = "<group>"; }; C4D8016522B1584700C6DA1B /* Startup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Startup.swift; sourceTree = "<group>"; };
C4E713562570150F00007428 /* SECURITY.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = SECURITY.md; sourceTree = "<group>"; }; C4E713562570150F00007428 /* SECURITY.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = SECURITY.md; sourceTree = "<group>"; };
@ -144,7 +142,6 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
C47331A1247093B7009A0597 /* StatusMenu.swift */, C47331A1247093B7009A0597 /* StatusMenu.swift */,
C486EFFB2586931100A02B2C /* PhpMenuItem.swift */,
); );
path = Menu; path = Menu;
sourceTree = "<group>"; sourceTree = "<group>";
@ -282,7 +279,6 @@
C412E5FC25700D5300A1FB67 /* HomebrewPackage.swift in Sources */, C412E5FC25700D5300A1FB67 /* HomebrewPackage.swift in Sources */,
C41C1B3722B0097F00E7CF16 /* AppDelegate.swift in Sources */, C41C1B3722B0097F00E7CF16 /* AppDelegate.swift in Sources */,
C41C1B4B22B019FF00E7CF16 /* PhpInstall.swift in Sources */, C41C1B4B22B019FF00E7CF16 /* PhpInstall.swift in Sources */,
C486EFFC2586931100A02B2C /* PhpMenuItem.swift in Sources */,
C49EAB46259FC305007F6C3B /* Paths.swift in Sources */, C49EAB46259FC305007F6C3B /* Paths.swift in Sources */,
C476FF9822B0DD830098105B /* Alert.swift in Sources */, C476FF9822B0DD830098105B /* Alert.swift in Sources */,
C474B00624C0E98C00066A22 /* LocalNotification.swift in Sources */, C474B00624C0E98C00066A22 /* LocalNotification.swift in Sources */,

View File

@ -2,8 +2,7 @@
// AppDelegate.swift // AppDelegate.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 11/06/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Cocoa import Cocoa

View File

@ -2,8 +2,7 @@
// Services.swift // Services.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 11/06/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Foundation import Foundation

View File

@ -2,8 +2,7 @@
// Environment.swift // Environment.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 12/06/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Foundation import Foundation

View File

@ -2,8 +2,7 @@
// HomebrewPackage.swift // HomebrewPackage.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 26/11/2020. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2020 Nico Verbruggen. All rights reserved.
// //
import Foundation import Foundation

View File

@ -1,9 +1,8 @@
// //
// PhpVersionExtractor.swift // PhpInstall.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 11/06/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Foundation import Foundation

View File

@ -2,13 +2,13 @@
// Alert.swift // Alert.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 12/06/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Cocoa import Cocoa
class Alert { class Alert {
public static func present( public static func present(
messageText: String, messageText: String,
informativeText: String, informativeText: String,
@ -28,4 +28,5 @@ class Alert {
public static func notify(message: String, info: String) { public static func notify(message: String, info: String) {
_ = self.present(messageText: message, informativeText: info, buttonTitle: "OK", secondButtonTitle: "") _ = self.present(messageText: message, informativeText: info, buttonTitle: "OK", secondButtonTitle: "")
} }
} }

View File

@ -2,18 +2,18 @@
// LocalNotification.swift // LocalNotification.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 16/07/2020. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2020 Nico Verbruggen. All rights reserved.
// //
import Foundation import Foundation
class LocalNotification { class LocalNotification {
public static func send(title: String, subtitle: String)
{ public static func send(title: String, subtitle: String) {
let notification = NSUserNotification() let notification = NSUserNotification()
notification.title = title notification.title = title
notification.subtitle = subtitle notification.subtitle = subtitle
NSUserNotificationCenter.default.deliver(notification) NSUserNotificationCenter.default.deliver(notification)
} }
} }

View File

@ -2,8 +2,7 @@
// ImageGenerator.swift // ImageGenerator.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 11/06/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Cocoa import Cocoa

View File

@ -1,15 +0,0 @@
//
// PhpMenuItem.swift
// PHP Monitor
//
// Created by Nico Verbruggen on 13/12/2020.
// Copyright © 2020 Nico Verbruggen. All rights reserved.
//
import Cocoa
class PhpMenuItem: NSMenuItem {
var version: String = ""
}

View File

@ -2,14 +2,16 @@
// MainMenuBuilder.swift // MainMenuBuilder.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 16/05/2020. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2020 Nico Verbruggen. All rights reserved.
// //
import Cocoa import Cocoa
class StatusMenu : NSMenu { class PhpMenuItem: NSMenuItem {
var version: String = ""
}
class StatusMenu : NSMenu {
public func addPhpVersionMenuItems() public func addPhpVersionMenuItems()
{ {
if (App.shared.currentInstall == nil) { if (App.shared.currentInstall == nil) {
@ -99,5 +101,4 @@ class StatusMenu : NSMenu {
self.addItem(menuItem) self.addItem(menuItem)
} }
} }

View File

@ -2,8 +2,7 @@
// Constants.swift // Constants.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 08/07/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Cocoa import Cocoa

View File

@ -2,8 +2,7 @@
// Date.swift // Date.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 09/07/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Cocoa import Cocoa

View File

@ -2,10 +2,8 @@
// StringExtension.swift // StringExtension.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 13/05/2020. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2020 Nico Verbruggen. All rights reserved.
// //
import Foundation import Foundation
extension String { extension String {

View File

@ -2,10 +2,8 @@
// StateManager.swift // StateManager.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 11/07/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Cocoa import Cocoa
class App { class App {

View File

@ -2,8 +2,7 @@
// Command.swift // Command.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 17/10/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Cocoa import Cocoa

View File

@ -2,8 +2,7 @@
// MainMenu.swift // MainMenu.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 11/07/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Cocoa import Cocoa

View File

@ -2,7 +2,6 @@
// Paths.swift // Paths.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 01/01/2021.
// Copyright © 2021 Nico Verbruggen. All rights reserved. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// //

View File

@ -2,8 +2,7 @@
// Shell.swift // Shell.swift
// PHP Monitor // PHP Monitor
// //
// Created by Nico Verbruggen on 11/06/2019. // Copyright © 2021 Nico Verbruggen. All rights reserved.
// Copyright © 2019 Nico Verbruggen. All rights reserved.
// //
import Cocoa import Cocoa