Completed
Push — master ( 64fbee...bb0194 )
by Vitaliy
02:00
created
Category
source/LazyInitHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
source/LazyInitStaticTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
source/LazyInitTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.