File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ public function toArray()
110110 'url ' => $ this ->url ,
111111 'presentation ' => [
112112 'documentTarget ' => $ this ->target ,
113- ]
113+ ],
114114 ];
115- if (!empty ($ this ->custom_params )) {
115+ if (!empty ($ this ->custom_params )) {
116116 $ resource ['custom ' ] = $ this ->custom_params ;
117117 }
118118 if ($ this ->lineitem !== null ) {
Original file line number Diff line number Diff line change @@ -166,12 +166,11 @@ public function testItCastsToArray()
166166 $ result = $ this ->deepLinkResource ->toArray ();
167167
168168 $ this ->assertEquals ($ expected , $ result );
169-
169+
170170 // Test again with custom params
171171 $ expected ['custom ' ] = ['a_key ' => 'a_value ' ];
172172 $ this ->deepLinkResource ->setCustomParams (['a_key ' => 'a_value ' ]);
173173 $ result = $ this ->deepLinkResource ->toArray ();
174174 $ this ->assertEquals ($ expected , $ result );
175-
176175 }
177176}
You can’t perform that action at this time.
0 commit comments