@@ -208,8 +208,8 @@ discard block |
||
| 208 | 208 | public function main() |
| 209 | 209 | { |
| 210 | 210 | $savedPath = $this->path; |
| 211 | - $savedPathSep = $this->pathSep;// may be altered in validateSetup |
|
| 212 | - $savedDirSep = $this->dirSep;// may be altered in validateSetup |
|
| 211 | + $savedPathSep = $this->pathSep; // may be altered in validateSetup |
|
| 212 | + $savedDirSep = $this->dirSep; // may be altered in validateSetup |
|
| 213 | 213 | |
| 214 | 214 | try { |
| 215 | 215 | // If we are a reference, create a Path from the reference |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | } |
| 243 | 243 | } |
| 244 | 244 | |
| 245 | - $this->validateSetup();// validate our setup |
|
| 245 | + $this->validateSetup(); // validate our setup |
|
| 246 | 246 | |
| 247 | 247 | // Currently, we deal with only two path formats: Unix and Windows |
| 248 | 248 | // And Unix is everything that is not Windows |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | } |
| 269 | 269 | unset($elem); |
| 270 | 270 | foreach ($elems as $key => $elem) { |
| 271 | - $elem = $this->mapElement($elem);// Apply the path prefix map |
|
| 271 | + $elem = $this->mapElement($elem); // Apply the path prefix map |
|
| 272 | 272 | |
| 273 | 273 | // Now convert the path and file separator characters from the |
| 274 | 274 | // current os to the target os. |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | |
| 330 | 330 | if ($newElem !== (string) $elem) { |
| 331 | 331 | $elem = $newElem; |
| 332 | - break;// We applied one, so we're done |
|
| 332 | + break; // We applied one, so we're done |
|
| 333 | 333 | } |
| 334 | 334 | } |
| 335 | 335 | } |
@@ -277,8 +277,7 @@ |
||
| 277 | 277 | return 0; |
| 278 | 278 | } |
| 279 | 279 | $c0 = $path[0]; |
| 280 | - $c1 = ($n > 1) ? $path[1] : |
|
| 281 | - 0; |
|
| 280 | + $c1 = ($n > 1) ? $path[1] : 0; |
|
| 282 | 281 | if ($c0 === $slash) { |
| 283 | 282 | if ($c1 === $slash) { |
| 284 | 283 | return 2; // absolute UNC pathname "\\\\foo" |