From 986b6cf36c34f5beb7abcc62250d348ad0e2738c Mon Sep 17 00:00:00 2001 From: Sebastian Enns <34925579+datsepp@users.noreply.github.com> Date: Mon, 30 Sep 2019 12:10:54 +0200 Subject: [PATCH] Apply suggestions from code review Removed white spaces between separators and short-array syntax Co-Authored-By: SharkyKZ --- .../components/com_patchtester/PatchTester/Model/PullModel.php | 2 +- .../com_patchtester/language/en-GB/en-GB.com_patchtester.ini | 2 +- .../com_patchtester/language/en-US/en-US.com_patchtester.ini | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php index 928e16d..5c61f64 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php @@ -248,7 +248,7 @@ class PullModel extends AbstractModel File::delete($zipPath); // Get files from deleted_logs - $deletedFiles = (file($delLogPath) ? file($delLogPath) : []); + $deletedFiles = (file($delLogPath) ? file($delLogPath) : array()); $deletedFiles = array_map('trim', $deletedFiles); if (file_exists($delLogPath)) diff --git a/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini b/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini index 6481cd0..bb7a7bc 100644 --- a/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini +++ b/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini @@ -102,7 +102,7 @@ COM_PATCHTESTER_RESET_OK="The reset process has completed successfully." COM_PATCHTESTER_REVERT_OK="Patch successfully reverted" COM_PATCHTESTER_REVERT_PATCH="Revert Patch" COM_PATCHTESTER_RTC="RTC" -COM_PATCHTESTER_SERVER_RESPONDED_NOT_200 ="The patch could not be applied either due to missing connection to the server or missing patch on the server." +COM_PATCHTESTER_SERVER_RESPONDED_NOT_200="The patch could not be applied either due to missing connection to the server or missing patch on the server." COM_PATCHTESTER_TEST_THIS_PATCH="Test This Patch" COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Fetch Data" COM_PATCHTESTER_TOOLBAR_RESET="Reset" diff --git a/administrator/components/com_patchtester/language/en-US/en-US.com_patchtester.ini b/administrator/components/com_patchtester/language/en-US/en-US.com_patchtester.ini index 711789b..6220024 100644 --- a/administrator/components/com_patchtester/language/en-US/en-US.com_patchtester.ini +++ b/administrator/components/com_patchtester/language/en-US/en-US.com_patchtester.ini @@ -99,7 +99,7 @@ COM_PATCHTESTER_RESET_OK="The reset process has completed successfully." COM_PATCHTESTER_REVERT_OK="Patch successfully reverted" COM_PATCHTESTER_REVERT_PATCH="Revert Patch" COM_PATCHTESTER_RTC="RTC" -COM_PATCHTESTER_SERVER_RESPONDED_NOT_200 ="The patch could not be applied either due to missing connection to the server or missing patch on the server." +COM_PATCHTESTER_SERVER_RESPONDED_NOT_200="The patch could not be applied either due to missing connection to the server or missing patch on the server." COM_PATCHTESTER_TEST_THIS_PATCH="Test This Patch" COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Fetch Data" COM_PATCHTESTER_TOOLBAR_RESET="Reset"