Skip to content

Commit

Permalink
Organize source code 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mozartk committed May 13, 2018
1 parent 1161991 commit 695bb96
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ProcessChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

namespace mozartk\ProcessChecker;

use \Craftpip\ProcessHandler\ProcessHandler;
use mozartk\ProcessChecker\Exception\NotExistsParserResultException;
use mozartk\ProcessChecker\Results\JsonResult;
use mozartk\ProcessChecker\Results\YamlResult;
use mozartk\ProcessChecker\Results\IniResult;
use mozartk\ProcessChecker\Process\FindProcess;
use mozartk\ProcessChecker\Exception\ProcessException;
use mozartk\ProcessChecker\Lib\Config;

class ProcessChecker
Expand Down Expand Up @@ -103,6 +101,12 @@ private function getProcess($pid = -99)
return $result;
}

/**
* Get final results
*
* @return mixed
* @throws NotExistsParserResultException
*/
public function run()
{
$this->parser = $this->loadParser($this->config->getOutputMode());
Expand Down

0 comments on commit 695bb96

Please sign in to comment.