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