title: Extra quotes in php return
body: <p>I have this line of code</p>
  
  <pre><code>{{ str_replace('_', '-', app()-&gt;getLocale()) == 'fa' || 'ar' ? "dir='rtl'" : "dir='ltr'" }}
  </code></pre>
  
  <p>it suppose to return <code>dir="rtl"</code> or <code>dir="ltr"</code> based on page language, but it does it like this</p>
  
  <pre><code>dir="'rtl'"
  </code></pre>
  
  <p>there are extra <code>' '</code> around <code>rtl</code> and <code>ltr</code> words.</p>
  
  <p>Worth to mention, my code at the first was like this and it didn't work</p>
  
  <pre><code>{{ str_replace('_', '-', app()-&gt;getLocale()) == 'fa' || 'ar' ? 'dir="rtl"' : 'dir="ltr"' }}
  </code></pre>
  
  <p><strong>Where did i make mistake in my code?</strong></p>