@@ -110,22 +110,47 @@ printWidth: 80
110110
111111$object->foo()->bar()->baz();
112112
113+ $object->foo()->bar()->baz()->foo()->bar()->baz();
114+
115+ $object->foo()->bar()->baz()->foo()->bar()->baz()->foo()->bar()->baz();
116+
117+ $object->foo()->bar()->baz()->foo()->bar()->baz()->foo()->bar()->baz()->foo()->bar()->baz()->foo()->bar()->baz()->foo()->bar()->baz();
118+
113119foo()->bar()->baz();
114120
115121foo()->bar->baz();
116122
117123=====================================output=====================================
118124<?php
119125
126+ $object->foo()->bar()->baz();
127+
128+ $object->foo()->bar()->baz()->foo()->bar()->baz();
129+
130+ $object->foo()->bar()->baz()->foo()->bar()->baz()->foo()->bar()->baz();
131+
120132$object
121133 ->foo()
122134 ->bar()
123- ->baz();
124-
125- foo()
135+ ->baz()
136+ ->foo()
137+ ->bar()
138+ ->baz()
139+ ->foo()
140+ ->bar()
141+ ->baz()
142+ ->foo()
143+ ->bar()
144+ ->baz()
145+ ->foo()
146+ ->bar()
147+ ->baz()
148+ ->foo()
126149 ->bar()
127150 ->baz();
128151
152+ foo()->bar()->baz();
153+
129154foo()->bar->baz();
130155
131156================================================================================
@@ -191,10 +216,7 @@ $object[$valid
191216
192217($a ? $b : $c)->d()->e();
193218
194- ($a ? $b : $c)
195- ->d()
196- ->e()
197- ->f();
219+ ($a ? $b : $c)->d()->e()->f();
198220
199221($valid
200222 ? $helper->responseBody($this->currentUser)
@@ -436,12 +458,8 @@ $var = Foo::keys($items)->filter(function ($x) { return $x > 2; })->map(function
436458<?php
437459
438460one()->two();
439- one()
440- ->two()
441- ->three();
442- one()
443- ->two->three()
444- ->four->five();
461+ one()->two()->three();
462+ one()->two->three()->four->five();
445463
446464Route::prefix("api")
447465 ->middleware("api")
@@ -476,9 +494,7 @@ $a->a()->b();
476494$a->a()->b();
477495$a->a()->b;
478496$a->b->a();
479- $a->b()
480- ->c()
481- ->d();
497+ $a->b()->c()->d();
482498$a->b->c->d;
483499
484500// should inline
@@ -545,67 +561,19 @@ $foo->bar(
545561 "veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLong"
546562)()()()()();
547563
548- $brian->hotel
549- ->orders()
550- ->ordered()
551- ->with("smith")
552- ->get();
553- $brian::$hotel
554- ->orders()
555- ->ordered()
556- ->with("smith")
557- ->get();
558- $brian["hotel"]
559- ->orders()
560- ->ordered()
561- ->with("smith")
562- ->get();
563- Foo::$hotel
564- ->orders()
565- ->ordered()
566- ->with("smith")
567- ->get();
568- (new Foo())->hotel
569- ->orders()
570- ->ordered()
571- ->with("smith")
572- ->get();
573- (clone $a)->hotel
574- ->orders()
575- ->ordered()
576- ->with("smith")
577- ->get();
578-
579- $var = $brian->hotel
580- ->orders()
581- ->ordered()
582- ->with("smith")
583- ->get();
584- $var = $brian::$hotel
585- ->orders()
586- ->ordered()
587- ->with("smith")
588- ->get();
589- $var = $brian["hotel"]
590- ->orders()
591- ->ordered()
592- ->with("smith")
593- ->get();
594- $var = Foo::$hotel
595- ->orders()
596- ->ordered()
597- ->with("smith")
598- ->get();
599- $var = (new Foo())->hotel
600- ->orders()
601- ->ordered()
602- ->with("smith")
603- ->get();
604- $var = (clone $a)->hotel
605- ->orders()
606- ->ordered()
607- ->with("smith")
608- ->get();
564+ $brian->hotel->orders()->ordered()->with("smith")->get();
565+ $brian::$hotel->orders()->ordered()->with("smith")->get();
566+ $brian["hotel"]->orders()->ordered()->with("smith")->get();
567+ Foo::$hotel->orders()->ordered()->with("smith")->get();
568+ (new Foo())->hotel->orders()->ordered()->with("smith")->get();
569+ (clone $a)->hotel->orders()->ordered()->with("smith")->get();
570+
571+ $var = $brian->hotel->orders()->ordered()->with("smith")->get();
572+ $var = $brian::$hotel->orders()->ordered()->with("smith")->get();
573+ $var = $brian["hotel"]->orders()->ordered()->with("smith")->get();
574+ $var = Foo::$hotel->orders()->ordered()->with("smith")->get();
575+ $var = (new Foo())->hotel->orders()->ordered()->with("smith")->get();
576+ $var = (clone $a)->hotel->orders()->ordered()->with("smith")->get();
609577
610578$var = Foo::keys($items)
611579 ->filter(function ($x) {
@@ -615,9 +583,11 @@ $var = Foo::keys($items)
615583 return $x * 2 ;
616584 } );
617585
618- (new static(func_get_args()))->push($this)->each(function ($item) {
619- VarDumper ::dump ($item );
620- } );
586+ (new static(func_get_args()))
587+ ->push($this)
588+ ->each(function ($item) {
589+ VarDumper ::dump ($item );
590+ } );
621591(new static(func_get_args()))
622592 ->offset(10)
623593 ->push($this)
0 commit comments