@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * |
26 | 26 | * @throws ErrorException |
27 | 27 | */ |
28 | - public static function lazyInit(Closure $closure, $key = null, $params = []) |
|
28 | + public static function lazyInit(Closure $closure, $key = null, $params = [ ]) |
|
29 | 29 | { |
30 | 30 | if ($key === null) { |
31 | 31 | $key = static::createBacktraceKey(); |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | { |
44 | 44 | $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2); |
45 | 45 | if (isset($backtrace[ 1 ][ 'file' ], $backtrace[ 1 ][ 'line' ])) { |
46 | - $parts = []; |
|
47 | - $parts[] = $backtrace[ 1 ][ 'file' ]; |
|
48 | - $parts[] = $backtrace[ 1 ][ 'line' ]; |
|
46 | + $parts = [ ]; |
|
47 | + $parts[ ] = $backtrace[ 1 ][ 'file' ]; |
|
48 | + $parts[ ] = $backtrace[ 1 ][ 'line' ]; |
|
49 | 49 | |
50 | 50 | return md5(implode('#', $parts)); |
51 | 51 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /** |
18 | 18 | * @var mixed[] |
19 | 19 | */ |
20 | - protected static $lazyInitStaticData = []; |
|
20 | + protected static $lazyInitStaticData = [ ]; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param Closure $container |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * |
29 | 29 | * @throws ErrorException |
30 | 30 | */ |
31 | - protected static function lazyInitStatic(Closure $container, $key = null, $params = []) |
|
31 | + protected static function lazyInitStatic(Closure $container, $key = null, $params = [ ]) |
|
32 | 32 | { |
33 | 33 | if ($key === null) { |
34 | 34 | $key = LazyInitHelper::createBacktraceKey(); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /** |
18 | 18 | * @var mixed[] |
19 | 19 | */ |
20 | - protected $lazyInitData = []; |
|
20 | + protected $lazyInitData = [ ]; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param Closure $container |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * |
29 | 29 | * @throws ErrorException |
30 | 30 | */ |
31 | - protected function lazyInit(Closure $container, $key = null, $params = []) |
|
31 | + protected function lazyInit(Closure $container, $key = null, $params = [ ]) |
|
32 | 32 | { |
33 | 33 | if ($key === null) { |
34 | 34 | $key = LazyInitHelper::createBacktraceKey(); |