1<documentation title="Object Operator Indentation"> 2 <standard> 3 <![CDATA[ 4 Chained object operators when spread out over multiple lines should be the first thing on the line and be indented by 1 level. 5 ]]> 6 </standard> 7 <code_comparison> 8 <code title="Valid: Object operator at the start of a new line."> 9 <![CDATA[ 10$foo 11 <em>-></em>bar() 12 <em>-></em>baz(); 13 ]]> 14 </code> 15 <code title="Invalid: Object operator at the end of the line."> 16 <![CDATA[ 17$foo<em>-></em> 18 bar()<em>-></em> 19 baz(); 20 ]]> 21 </code> 22 </code_comparison> 23 <code_comparison> 24 <code title="Valid: Object operator indented correctly."> 25 <![CDATA[ 26$foo 27<em> </em>->bar() 28<em> </em>->baz(); 29 ]]> 30 </code> 31 <code title="Invalid: Object operator not indented correctly."> 32 <![CDATA[ 33$foo 34<em></em>->bar() 35<em></em>->baz(); 36 ]]> 37 </code> 38 </code_comparison> 39</documentation> 40