@@ -47,12 +47,12 @@ |
||
| 47 | 47 | ->useAttributeAsKey('class') |
| 48 | 48 | ->prototype('array') |
| 49 | 49 | // Converts 'console.command' to ['console.command'] |
| 50 | - ->beforeNormalization()->ifString()->then(function ($v) { return [$v]; })->end() |
|
| 50 | + ->beforeNormalization()->ifString()->then(function($v) { return [$v]; })->end() |
|
| 51 | 51 | ->prototype('array') |
| 52 | 52 | // Converts 'console.command' to ['console.command', []] |
| 53 | - ->beforeNormalization()->ifString()->then(function ($v) { return [$v, []]; })->end() |
|
| 53 | + ->beforeNormalization()->ifString()->then(function($v) { return [$v, []]; })->end() |
|
| 54 | 54 | ->validate() |
| 55 | - ->ifTrue(function ($v) { |
|
| 55 | + ->ifTrue(function($v) { |
|
| 56 | 56 | return count($v) !== 2 || !is_string($v[0]) || !is_array($v[1]); |
| 57 | 57 | }) |
| 58 | 58 | ->thenInvalid('Invalid tag format. They must be as following: [\'console.command\', [\'foo\' => \'bar\']]') |