From 70c7a250361854973de69877e8234308d45ee97a Mon Sep 17 00:00:00 2001 From: Sam Rathee Date: Mon, 29 Oct 2018 19:13:03 -0400 Subject: [PATCH 1/2] Update TimeActivityRead.php added closing php tag --- CRUD_Examples/TimeActivity/TimeActivityRead.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRUD_Examples/TimeActivity/TimeActivityRead.php b/CRUD_Examples/TimeActivity/TimeActivityRead.php index a50df0b..7755a51 100644 --- a/CRUD_Examples/TimeActivity/TimeActivityRead.php +++ b/CRUD_Examples/TimeActivity/TimeActivityRead.php @@ -17,7 +17,7 @@ 'QBORealmID' => "193514611894164", 'baseUrl' => "Development" )); -$dataService->setLogLocation("/Users/hlu2/Desktop/newFolderForLog"); +$dataService->setLogLocation('/Users/hlu2/Desktop/newFolderForLog"); $dataService->throwExceptionOnError(true); $timeActivity = $dataService->FindbyId('timeactivity', 8); @@ -32,3 +32,4 @@ $xmlBody = XmlObjectSerializer::getPostXmlFromArbitraryEntity($timeActivity, $urlResource); echo $xmlBody . "\n"; } +?> From ac2a05748b75d41d4339549b5ab3e162ec3a5926 Mon Sep 17 00:00:00 2001 From: Sam Rathee Date: Mon, 28 Jan 2019 00:55:37 -0500 Subject: [PATCH 2/2] Update TimeActivityRead.php --- CRUD_Examples/TimeActivity/TimeActivityRead.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRUD_Examples/TimeActivity/TimeActivityRead.php b/CRUD_Examples/TimeActivity/TimeActivityRead.php index 7755a51..a79112f 100644 --- a/CRUD_Examples/TimeActivity/TimeActivityRead.php +++ b/CRUD_Examples/TimeActivity/TimeActivityRead.php @@ -17,7 +17,7 @@ 'QBORealmID' => "193514611894164", 'baseUrl' => "Development" )); -$dataService->setLogLocation('/Users/hlu2/Desktop/newFolderForLog"); +$dataService->setLogLocation("/Users/hlu2/Desktop/newFolderForLog"); $dataService->throwExceptionOnError(true); $timeActivity = $dataService->FindbyId('timeactivity', 8); @@ -32,4 +32,5 @@ $xmlBody = XmlObjectSerializer::getPostXmlFromArbitraryEntity($timeActivity, $urlResource); echo $xmlBody . "\n"; } -?> + +// Notice we do not use a closing tag for a php-only file. It is poor practice to do so. Find out more here https://stackoverflow.com/questions/4410704/why-would-one-omit-the-close-tag