Update INF to PHP_INT_MAX as recommended by Stof
Removed duplication of logic of an installation manager in a plugin manager
Merge pull request #2258 from romainneutron/inf-val

Update INF to PHP_INT_MAX as recommended by Stof
Merge pull request #2259 from hason/pm

Removed duplication of logic of an installation manager in a plugin manager