From baf0aa4f89ccc2593964b0f7da53de8d03e093bb Mon Sep 17 00:00:00 2001 From: Liam Morland <lkmorlan@uwaterloo.ca> Date: Fri, 25 May 2018 15:02:08 -0400 Subject: [PATCH] Coding standards --- fillpdf.module | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/fillpdf.module b/fillpdf.module index 6be29c6..f85ccd6 100644 --- a/fillpdf.module +++ b/fillpdf.module @@ -1837,8 +1837,13 @@ function fillpdf_pdftk_path() { } /** - * Check if we can reach the FillPDF LocalService instance configured in the - * settings. + * Check if we can reach the FillPDF LocalService instance. + * + * This is configured in the settings. + * + * @return bool + * TRUE if fillpdf_local_service_endpoint returns no error and a status of + * 200. FALSE otherwise. */ function fillpdf_localservice_check() { $localservice_endpoint = variable_get('fillpdf_local_service_endpoint'); @@ -1879,7 +1884,10 @@ function fillpdf_default_scheme() { */ function fillpdf_file_usage_add($file, $fillpdf_object) { $fcid = db_insert('fillpdf_file_context') - ->fields(array('context' => fillpdf_context_to_link($fillpdf_object->info->fid, $fillpdf_object->context, $fillpdf_object->options['sample']), 'fid' => $fillpdf_object->info->fid)) + ->fields(array( + 'context' => fillpdf_context_to_link($fillpdf_object->info->fid, $fillpdf_object->context, $fillpdf_object->options['sample']), + 'fid' => $fillpdf_object->info->fid, + )) ->execute(); file_usage_add($file, 'fillpdf', 'fillpdf_file', $fcid); -- GitLab