<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>itechblog</author_name>
  <author_url>https://blog.hatena.ne.jp/itechblog/</author_url>
  <blog_title>Webエンジニアのメモ帳</blog_title>
  <blog_url>https://itechblog.hatenablog.com/</blog_url>
  <categories>
    <anon>技術メモ</anon>
  </categories>
  <description>コードの整形方法 PHPのコードの整形は、ターミナルから以下のコマンドを打つだけでできます。 vendor/bin/php-cs-fixer fix . --rules=@PSR2 第2引数の.は対象とするディレクトリを表しているので、特定のファイルやディレクトリだけ修正の対象にしたい場合は、それを記述します。 また、--rulesオプションで指定しているのは、整形の際に適用するルールです。@PSR2が一般的にはよく使われますが、他のルールを適用することもできます。 整形箇所の確認だけする方法 整形を行わず、整形すべき箇所だけ確認するだけであれば、以下のコマンドを使うのが良いです。 vendo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitechblog.hatenablog.com%2Fentry%2F2020%2F11%2F19%2F2020-11-19-100538%2F&quot; title=&quot;【PHP】コードの整形をコマンド一発で行う - Webエンジニアのメモ帳&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-11-19 10:05:38</published>
  <title>【PHP】コードの整形をコマンド一発で行う</title>
  <type>rich</type>
  <url>https://itechblog.hatenablog.com/entry/2020/11/19/2020-11-19-100538/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
