Procházet zdrojové kódy

Fixed some coding style issues

Lacey Sanderson před 10 roky
rodič
revize
f8ac7ccd14

+ 1 - 1
tripal_daemon/README.txt

@@ -22,7 +22,7 @@ FEATURES
  * Your daemon starts in the background and is detached from the current
    terminal.
  * Daemon will run all Tripal Jobs submitted within 20 seconds.
- * A log of the number of jobs executed including their identifier and the result.
+ * A log including the number of jobs executed, their identifiers and results.
  * Lock Files, Automatic restart (8hrs default) and Built-in Signal Handling &
    Event Logging are only a few of the features provided by the Daemon API
    making this a fully featured & robust Daemon.

+ 3 - 3
tripal_daemon/TripalDaemon.inc

@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Implements the Tripal Daemon functionality by using the Daemon API
+ * Implements the Tripal Daemon functionality by using the Daemon API.
  */
 
 /**
@@ -61,7 +61,7 @@ class TripalDaemon extends DaemonAPIDaemon {
         $this->log('Starting Job (ID=' . $id . ')', '', 1);
         tripal_launch_job(FALSE, $id);
 
-        // Report job details
+        // Report job details.
         $job = db_query(
           "SELECT j.*
           FROM {tripal_jobs} j
@@ -78,4 +78,4 @@ class TripalDaemon extends DaemonAPIDaemon {
     }
 
   }
-}
+}

+ 8 - 7
tripal_daemon/tripal_daemon.drush.inc

@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Implementation of the Tripal Daemon Drush commands
+ * Implementation of the Tripal Daemon Drush commands.
  */
 
 /**
@@ -52,13 +52,14 @@ function tripal_daemon_drush_command() {
 
 /**
  * Drush Command for Daemonized management of Tripal Jobs.
- * Simply plugs into the Daemon API for easier running. This is the equivalent of
- *   drush jobs-daemon $action tripal_daemon
  *
- * @param $action
- *   One of 'start','stop','restart',status','show-log'. Meant to indicate what you want
- *   the daemon to do.
+ * Simply plugs into the Daemon API for easier running. This is equivalent to
+ *   drush jobs-daemon $action tripal_daemon.
+ *
+ * @param string $action
+ *   One of 'start','stop','restart',status','show-log'. Meant to indicate what
+ *   you want the daemon to do.
  */
 function drush_tripal_daemon_tripal_jobs_daemon($action) {
   drush_daemon_api_daemon($action, 'tripal_daemon');
-}
+}

+ 1 - 1
tripal_daemon/tripal_daemon.info

@@ -6,4 +6,4 @@ package = Tripal Extensions
 dependencies[] = daemon_api
 dependencies[] = tripal_core
 
-files[] = TripalJobDaemon.inc
+files[] = TripalDaemon.inc

+ 2 - 2
tripal_daemon/tripal_daemon.module

@@ -17,8 +17,8 @@ function tripal_daemon_daemon_api_info() {
     'machine_name' => 'tripal_daemon',
     'name' => 'Tripal Job Daemon',
     'module' => 'tripal_daemon',
-    'class' => 'TripalDaemon'
+    'class' => 'TripalDaemon',
   );
 
   return $daemon;
-}
+}