Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP Insights - リファクタリングが100倍楽しくなるツール -

akki
June 20, 2019
1.3k

PHP Insights - リファクタリングが100倍楽しくなるツール -

akki

June 20, 2019
Tweet

Transcript

  1. PHP Insights Forbidden public property: Do not use public properties.

    Use method access instead プロパティがPublicになってるから、カプセル化して
  2. PHP Insights Having `classes` with more than 5 cyclomatic complexity

    is prohibited - Consider refactoring: 循環的複雑度(条件分岐やループ多さ)が高いので リファクタリングを検討して