From a07fcae9968abb68f20726f0e4637a6bb0663457 Mon Sep 17 00:00:00 2001 From: Finlay Beaton Date: Thu, 20 Aug 2015 18:23:20 -0400 Subject: [PATCH] style --- src/Running.php | 30 ++++++++-------- src/RunningFilter.php | 82 +++++++++++++++++++++---------------------- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/src/Running.php b/src/Running.php index f79e3fb..7ffe168 100644 --- a/src/Running.php +++ b/src/Running.php @@ -24,9 +24,9 @@ class Running * @since 2015-07-30 */ protected $supportedOs = [ - self::OS_LINUX, - self::OS_WINDOWS, - ]; + self::OS_LINUX, + self::OS_WINDOWS, + ]; /** * @var null @@ -271,12 +271,12 @@ protected function getPidsWindows(array $filters, $ignoreCase = true) */ $details = [ - 'os' => $this->os, - 'user' => $splitLine[6], - 'command' => $splitLine[0].' '.$splitLine[8], - 'pid' => intval($splitLine[1]), - 'group' => intval($splitLine[1]), // fake it - ]; + 'os' => $this->os, + 'user' => $splitLine[6], + 'command' => $splitLine[0].' '.$splitLine[8], + 'pid' => intval($splitLine[1]), + 'group' => intval($splitLine[1]), // fake it + ]; $ok = true; foreach ($filters as $filter) { @@ -335,12 +335,12 @@ protected function getPidsLinux(array $filters, $ignoreCase = true) */ $details = [ - 'os' => $this->os, - 'pid' => intval(trim($splitLine[0])), - 'group' => intval(trim($splitLine[1])), - 'user' => trim($splitLine[2]), - 'command' => $splitLine[3], - ]; + 'os' => $this->os, + 'pid' => intval(trim($splitLine[0])), + 'group' => intval(trim($splitLine[1])), + 'user' => trim($splitLine[2]), + 'command' => $splitLine[3], + ]; $ok = true; foreach ($filters as $filter) { diff --git a/src/RunningFilter.php b/src/RunningFilter.php index 404fbc1..0f48710 100644 --- a/src/RunningFilter.php +++ b/src/RunningFilter.php @@ -27,65 +27,65 @@ class RunningFilter * @since 2015-07-30 */ protected $validFields = [ - 'os', - 'pid', - 'group', - 'user', - 'command', - ]; + 'os', + 'pid', + 'group', + 'user', + 'command', + ]; /** * @var array * @since 2015-07-30 */ protected $validMods = [ - 'os' => [ - '=', - '!', - ], - 'pid' => [ - '=', - '!', - ], - 'group' => [ - '=', - '!', - ], - 'user' => [ - '=', - '!', - ], - 'command' => [ - '=', - '!', - '~=', - '~!', - ], - ]; + 'os' => [ + '=', + '!', + ], + 'pid' => [ + '=', + '!', + ], + 'group' => [ + '=', + '!', + ], + 'user' => [ + '=', + '!', + ], + 'command' => [ + '=', + '!', + '~=', + '~!', + ], + ]; /** * @var array * @since 2015-07-30 */ protected $defaultMods = [ - 'os' => '=', - 'pid' => '=', - 'group' => '=', - 'user' => '=', - 'command' => '~=', - ]; + 'os' => '=', + 'pid' => '=', + 'group' => '=', + 'user' => '=', + 'command' => '~=', + ]; /** * @var array * @since 2015-07-30 */ protected $autoRegEx = [ - 'os' => true, - 'pid' => true, - 'group' => true, - 'user' => true, - 'command' => false, - ]; + 'os' => true, + 'pid' => true, + 'group' => true, + 'user' => true, + 'command' => false, + ]; /**