@@ -43,14 +43,14 @@ class SimpleCliWrapper
4343 public function parseCli ()
4444 {
4545 $ shortOpts = implode ('' , [
46- self ::VERBOSE_SHORT . self ::OPTIONAL_INDICATOR ,
47- self ::LOG_SHORT . self ::OPTIONAL_INDICATOR ,
46+ self ::VERBOSE_SHORT . self ::OPTIONAL_INDICATOR ,
47+ self ::LOG_SHORT . self ::OPTIONAL_INDICATOR ,
4848 self ::HELP_SHORT . self ::OPTIONAL_INDICATOR
4949 ]);
5050
5151 $ longOpts = [
52- self ::VERBOSE_LONG . self ::OPTIONAL_INDICATOR ,
53- self ::LOG_LONG . self ::OPTIONAL_INDICATOR ,
52+ self ::VERBOSE_LONG . self ::OPTIONAL_INDICATOR ,
53+ self ::LOG_LONG . self ::OPTIONAL_INDICATOR ,
5454 self ::HELP_LONG . self ::OPTIONAL_INDICATOR
5555 ];
5656
@@ -96,7 +96,8 @@ public function parseCli()
9696 * @param $msg
9797 * @return void
9898 */
99- public function writeToErrOrEcho ($ msg ) {
99+ public function writeToErrOrEcho ($ msg )
100+ {
100101 if (defined ('STDERR ' )) {
101102 fwrite (STDERR , $ msg );
102103 } else {
@@ -129,7 +130,6 @@ private function printHelp()
129130
130131
131132 /**
132- * we keep the current
133133 * @param array $opts
134134 *
135135 * @return int
@@ -149,15 +149,15 @@ public static function getVerbosityLevel(array $opts)
149149 }
150150
151151 // the first v will be stripped -v so we count the amounts of v's after that
152- return (int ) mb_strlen ($ opts [self ::VERBOSE_SHORT ]);
152+ return (int )mb_strlen ($ opts [self ::VERBOSE_SHORT ]);
153153 }
154154
155155 if (isset ($ opts [self ::VERBOSE_LONG ]) && !is_numeric ($ opts [self ::VERBOSE_LONG ])) {
156156 return self ::INVALID_INPUT ;
157157 }
158158
159159 if (isset ($ opts [self ::VERBOSE_LONG ])) {
160- return (int ) $ opts [self ::VERBOSE_LONG ];
160+ return (int )$ opts [self ::VERBOSE_LONG ];
161161 }
162162
163163 return self ::INVALID_INPUT ;
0 commit comments