Placing php ,html, php in one line : <p>Can someone please tell me what am I doing wrong in my code? Every time I try, I receive </p>

<blockquote>
  <p>Parse error: syntax error, unexpected '.' </p>
</blockquote>

<pre><code>&lt;?php if ( is_woocommerce()){ '&lt;a href="' . home_url(); . '"&gt;Home&lt;/a&gt;' 
        } else { '&lt;a href="' . home_url('/shop/'); . '"&gt;My Shop&lt;/a&gt;' 
 }?&gt;
</code></pre>
