@@ -121,8 +121,7 @@ |
||
| 121 | 121 | */ |
| 122 | 122 | public function main() |
| 123 | 123 | { |
| 124 | - $fail = $this->nestedConditionPresent() ? $this->testNestedCondition() : |
|
| 125 | - $this->testIfCondition() && $this->testUnlessCondition(); |
|
| 124 | + $fail = $this->nestedConditionPresent() ? $this->testNestedCondition() : $this->testIfCondition() && $this->testUnlessCondition(); |
|
| 126 | 125 | |
| 127 | 126 | if ($fail) { |
| 128 | 127 | $text = null; |
@@ -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 | } |
@@ -80,8 +80,8 @@ |
||
| 80 | 80 | { |
| 81 | 81 | for ($i = 0; $i < count($totalTimes); $i++) { |
| 82 | 82 | $totalTime = $totalTimes[$i]; |
| 83 | - $round = round(100 * (double)$totalTime / $runningTotalTime); |
|
| 84 | - $table->put($i + 1, self::$IDX_PERCENTAGE, (string)$round); |
|
| 83 | + $round = round(100 * (double) $totalTime / $runningTotalTime); |
|
| 84 | + $table->put($i + 1, self::$IDX_PERCENTAGE, (string) $round); |
|
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public function center($value, $fixedLength) |
| 27 | 27 | { |
| 28 | 28 | $spacesBeforeValue = $this->calculateSpaceBeforeValue($value, $fixedLength); |
| 29 | - return $this->toSpaces($spacesBeforeValue) . $value; |
|
| 29 | + return $this->toSpaces($spacesBeforeValue) . $value; |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | public function left($value, $fixedLength) |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | public function getTimes() |
| 51 | 51 | { |
| 52 | 52 | return array_map( |
| 53 | - function (Duration $elem) { |
|
| 53 | + function(Duration $elem) { |
|
| 54 | 54 | return $elem->getTime(); |
| 55 | 55 | }, |
| 56 | 56 | $this->list |
@@ -223,7 +223,7 @@ |
||
| 223 | 223 | while (strpos($sb, '${') !== false) { |
| 224 | 224 | $sb = preg_replace_callback( |
| 225 | 225 | '/\$\{([^\$}]+)\}/', |
| 226 | - function ($matches) use ($keys) { |
|
| 226 | + function($matches) use ($keys) { |
|
| 227 | 227 | $propertyName = $matches[1]; |
| 228 | 228 | |
| 229 | 229 | $replacement = null; |
@@ -243,7 +243,7 @@ |
||
| 243 | 243 | return implode( |
| 244 | 244 | ' ', |
| 245 | 245 | array_map( |
| 246 | - function ($arg) { |
|
| 246 | + function($arg) { |
|
| 247 | 247 | return self::quoteArgument($arg, $this->escape); |
| 248 | 248 | }, |
| 249 | 249 | $lines |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | return null; |
| 65 | 65 | } |
| 66 | 66 | return array_map( |
| 67 | - function ($env) { |
|
| 67 | + function($env) { |
|
| 68 | 68 | return $env->getContent(); |
| 69 | 69 | }, |
| 70 | 70 | $this->variables->getArrayCopy() |