Skip to content
Browse files

moving static methods to the top of the class to match everything else

  • Loading branch information...
1 parent 855a7c6 commit 4812f863ebd4e3b6617dc9083bc27bd6be3694c8 @Zeelot Zeelot committed Feb 27, 2012
Showing with 22 additions and 22 deletions.
  1. +22 −22 classes/Kohana/Minion/Task.php
View
44 classes/Kohana/Minion/Task.php
@@ -49,28 +49,6 @@ public static function convert_class_to_task($class)
}
/**
- * The list of options this task accepts and their default values.
- *
- * protected $_options = array(
- * 'limit' => 4,
- * 'table' => NULL,
- * );
- *
- * @var array
- */
- protected $_options = array();
-
- /**
- * Populated with the accepted options for this task.
- * This array is automatically populated based on $_options.
- *
- * @var array
- */
- protected $_accepted_options = array();
-
- protected $_method = '_execute';
-
- /**
* Factory for loading minion tasks
*
* @param array An array of command line options. It should contain the 'task' key
@@ -112,6 +90,28 @@ public static function factory($options)
return $class;
}
+ /**
+ * The list of options this task accepts and their default values.
+ *
+ * protected $_options = array(
+ * 'limit' => 4,
+ * 'table' => NULL,
+ * );
+ *
+ * @var array
+ */
+ protected $_options = array();
+
+ /**
+ * Populated with the accepted options for this task.
+ * This array is automatically populated based on $_options.
+ *
+ * @var array
+ */
+ protected $_accepted_options = array();
+
+ protected $_method = '_execute';
+
protected function __construct()
{
// Populate $_accepted_options based on keys from $_options

0 comments on commit 4812f86

Please sign in to comment.
Something went wrong with that request. Please try again.