@@ -43,7 +43,7 @@ |
||
43 | 43 | $event['method'] = 'on'.preg_replace_callback([ |
44 | 44 | '/(?<=\b)[a-z]/i', |
45 | 45 | '/[^a-z0-9]/i', |
46 | - ], function ($matches) { |
|
46 | + ], function($matches) { |
|
47 | 47 | return strtoupper($matches[0]); |
48 | 48 | }, $event['event']); |
49 | 49 | $event['method'] = preg_replace('/[^a-z0-9]/i', '', $event['method']); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is a part of Sculpin. |
@@ -30,9 +30,9 @@ |
||
30 | 30 | * @var array |
31 | 31 | */ |
32 | 32 | protected static $addPlaceholderRe = array( |
33 | - '/^({%\s+block\s+(\w+).+?%})$/m', // {% %} style code |
|
34 | - '/^({%\s+endblock\s+%})$/m', // {% %} style code |
|
35 | - '/^({{.+?}})$/m', // {{ }} style code |
|
33 | + '/^({%\s+block\s+(\w+).+?%})$/m', // {% %} style code |
|
34 | + '/^({%\s+endblock\s+%})$/m', // {% %} style code |
|
35 | + '/^({{.+?}})$/m', // {{ }} style code |
|
36 | 36 | ); |
37 | 37 | |
38 | 38 | /** |