From 01c3c629dd0a1271bff1218d99981a2b4e1c80a2 Mon Sep 17 00:00:00 2001 From: real Date: Thu, 2 May 2019 14:20:28 +0200 Subject: [PATCH] Updated --help. #52 --- lib/PHPGGC.php | 2 +- lib/PHPGGC/Enhancement/PlusNumbers.php | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/PHPGGC.php b/lib/PHPGGC.php index 607dd6b1..dfd888a1 100644 --- a/lib/PHPGGC.php +++ b/lib/PHPGGC.php @@ -524,7 +524,7 @@ protected function help() $this->o(' This is experimental and it might not work in some cases.'); $this->o(' -n, --plus-numbers '); $this->o(' Adds a + symbol in front of every number symbol of the given type.'); - $this->o(' For instance, -n iO:'); + $this->o(' For instance, -n iO adds a + in front of every int and object name size:'); $this->o(' O:3:"Abc":1:{s:1:"x";i:3;} -> O:+3:"Abc":1:{s:1:"x";i:+3;}'); $this->o(' -w, --wrapper '); $this->o(' Specifies a file containing either or both functions:'); diff --git a/lib/PHPGGC/Enhancement/PlusNumbers.php b/lib/PHPGGC/Enhancement/PlusNumbers.php index ec9a14a2..e841ed77 100644 --- a/lib/PHPGGC/Enhancement/PlusNumbers.php +++ b/lib/PHPGGC/Enhancement/PlusNumbers.php @@ -3,10 +3,11 @@ namespace PHPGGC\Enhancement; /** - * Adds a + (plus) symbol before every integer symbol of the serialized object. - * For instance, - * O:3:"Abc":1:{s:1:"x";i:3;} becomes - * O:+3:"Abc":+1:{s:+1:"x";i:+3;} + * Adds a + (plus) symbol before every integer symbol of given type. + * For instance, with 'Osi', + * O:3:"Abc":1:{s:1:"x";i:3;} -> O:+3:"Abc":+1:{s:+1:"x";i:+3;} + * With 's': + * O:3:"Abc":1:{s:1:"x";i:3;} -> O:3:"Abc":1:{s:+1:"x";i:3;} */ class PlusNumbers extends Enhancement {