@@ -65,11 +65,11 @@ discard block |
||
65 | 65 | { |
66 | 66 | return $this->askAndValidate( |
67 | 67 | 'Package name (<vendor>/<name>) [<comment>'.$package.'</comment>]: ', |
68 | - function ($value) use ($package) { |
|
68 | + function($value) use ($package) { |
|
69 | 69 | if (null === $value) { |
70 | 70 | return $package; |
71 | 71 | } |
72 | - if (! preg_match('{^[a-z0-9_.-]+/[a-z0-9_.-]+$}', $value)) { |
|
72 | + if (!preg_match('{^[a-z0-9_.-]+/[a-z0-9_.-]+$}', $value)) { |
|
73 | 73 | throw new \InvalidArgumentException( |
74 | 74 | 'The package name '.$value.' is invalid, it should be lowercase and have a vendor name, a forward slash, and a package name, matching: [a-z0-9_.-]+/[a-z0-9_.-]+' |
75 | 75 | ); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | return $this->askAndValidate( |
95 | 95 | 'Author [<comment>'.$author.'</comment>]: ', |
96 | - function ($value) use ($self, $author) { |
|
96 | + function($value) use ($self, $author) { |
|
97 | 97 | if (null === $value) { |
98 | 98 | return $author; |
99 | 99 | } |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | private function isValidEmail($email) |
159 | 159 | { |
160 | 160 | // assume it's valid if we can't validate it |
161 | - if (! function_exists('filter_var')) { |
|
161 | + if (!function_exists('filter_var')) { |
|
162 | 162 | return true; |
163 | 163 | } |
164 | 164 | // php <5.3.3 has a very broken email validator, so bypass checks |