@@ -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() |
@@ -4,11 +4,11 @@ |
||
| 4 | 4 | require_once "HelloWorld.php"; |
| 5 | 5 | |
| 6 | 6 | /** |
| 7 | - * Test class for HelloWorld |
|
| 8 | - * |
|
| 9 | - * @author Michiel Rook |
|
| 10 | - * @package hello.world |
|
| 11 | - */ |
|
| 7 | + * Test class for HelloWorld |
|
| 8 | + * |
|
| 9 | + * @author Michiel Rook |
|
| 10 | + * @package hello.world |
|
| 11 | + */ |
|
| 12 | 12 | class HelloWorldTest extends PHPUnit_Framework_TestCase |
| 13 | 13 | { |
| 14 | 14 | public function testSayHello() |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | $isMultiLine = $this->extractNameAndValue($line); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - if (($this->name !== null) && (! $isMultiLine)) { |
|
| 107 | + if (($this->name !== null) && (!$isMultiLine)) { |
|
| 108 | 108 | if (array_key_exists($this->name, $this->properties)) { |
| 109 | 109 | $message = sprintf( |
| 110 | 110 | 'Property [%s] overwritten: old value [%s], new value [%s].', |