Skip to content

Commit

Permalink
Updated --help. #52
Browse files Browse the repository at this point in the history
  • Loading branch information
real authored and real committed May 2, 2019
1 parent 7fd5162 commit 01c3c62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/PHPGGC.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <types>');
$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 <wrapper>');
$this->o(' Specifies a file containing either or both functions:');
Expand Down
9 changes: 5 additions & 4 deletions lib/PHPGGC/Enhancement/PlusNumbers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 01c3c62

Please sign in to comment.