*
* @return void
*/
- public function prepareRequestData () {
+ protected function prepareRequestData () {
// 'argv' and 'argc' should be there
if ((!isset($_SERVER['argv'])) || (!isset($_SERVER['argc']))) {
// Maybe not right PHP mode? (needs CLI?)
- trigger_error(sprintf('[%s:%d]: argv/argc not set: %s', __METHOD__, __LINE__, print_r($_SERVER, TRUE)), E_USER_ERROR);
+ trigger_error(sprintf('[%s:%d]: argv/argc not set: %s', __METHOD__, __LINE__, print_r($_SERVER, true)), E_USER_ERROR);
} // END - if
// Get the "request data" from the command-line argument list
// Try to determine next parameters
foreach ($args as $arg) {
- // Seperate arguemnt name from value
+ // Seperate argument key from value
$argArray = explode('=', $arg);
// Is the second one set?