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

不要コード一斉摘発!自動でいらないコードを見つけるアレコレ

 不要コード一斉摘発!自動でいらないコードを見つけるアレコレ

PHPカンファレンス福岡2018のLT発表資料です。
以下の資料の改訂版となります。
https://speakerdeck.com/nazonohito51/regasipurodakutodeiranaikodowozi-dong-dejian-tuketakatuta?slide=1

Satoshi Kawashima

June 16, 2018
Tweet

More Decks by Satoshi Kawashima

Other Decks in Technology

Transcript

  1. w HFU@JODMVEFE@pMFT ͰSFRVJSF͞ΕͨQIQϑΝΠϧ͕BSSBZ ͰऔΕΔ w SFHJTUFS@TIVUEPXO@GVODUJPO Ͱऴྃ࣌ʹˢΛอଘ ϑΝΠϧϨϕϧͰղੳ [ array

    (size=221) 0 => string '/home/vagrant/code/public/index.php' (length=44) 1 => string '/home/vagrant/code/prof_test/web.php' (length=45) 2 => string '/home/vagrant/code/bootstrap/autoload.php' (length=50) 3 => string '/home/vagrant/code/vendor/autoload.php' (length=47) 4 => string '/home/vagrant/code/vendor/composer/autoload_real.php' (length=61) 5 => string '/home/vagrant/code/vendor/composer/ClassLoader.php' (length=59) 6 => string '/home/vagrant/code/vendor/composer/autoload_static.php' (length=63) 7 => string '/home/vagrant/code/vendor/myclabs/deep-copy/src/DeepCopy/ deep_copy.php' (length=79)
  2. [ array (size=1784) 'Illuminate\Support\Collection::__construct==>Illuminate\Support \Collection::getArrayableItems' => array (size=2) 'ct' =>

    int 31 'wt' => int 37 'Illuminate\Routing\Router::addWhereClausesToRoute==>Illuminate\Routing \Route::getAction' => array (size=2) 'ct' => int 44 'wt' => int 129 'Barryvdh\LaravelIdeHelper \IdeHelperServiceProvider::createLocalViewFactory==>Illuminate\View \Factory::addExtension' => array (size=2) 'ct' => int 1 'wt' => int 16 UJEFXBZT@YIQSPGͷղੳ݁Ռ ˡݺͼग़͠ݩݺͼग़͠ઌ ˡݺͼग़͠ճ਺ ˡॲཧ࣌ؒ
  3. ύϑΥʔϚϯε΁ͷӨڹ UJEFXBZT@YIQSPGͷ༗ແʹΑΔॲཧ࣌ؒ ॲཧ࣌ؒʢTFDʣ       

    ϑΝϯΫγϣϯݺͼग़͠ճ਺ʢճʣ        ϓϩϑΝΠϥ͋Γ ϓϩϑΝΠϥແ͠ -BSBWFMͷ ϗʔϜը໘දࣔ   
  4. [ array ( '/home/vagrant/code/vendor/guzzlehttp/promises/src/functions.php' => array ( 21 => 1,

    42 => 1, 66 => 1, 92 => 1, 108 => 1, 122 => 1, 147 => 1, 174 => 1, ), '/home/vagrant/code/pwa_test/vendor/laravel/framework/src/Illuminate/Routing/Route.php' => array ( 20 => 1, 22 => 1, 132 => 1, 133 => 1, 134 => 1, 9EFCVHͷίʔυΧόϨοδ݁Ռ ˢղੳର৅ͷϑΝΠϧ ˡ࣮ߦ͞Εͨߦ൪߸
  5. w -BSBWFMͷϗʔϜը໘Ͱܭଌ w TFDTFD   w ຊ౰ʹඞཁͳίʔυ͚ͩΛૂ͍ܸͪͰղੳ͢Δ ύϑΥʔϚϯε΁ͷӨڹ [

    xdebug_set_filter( XDEBUG_FILTER_CODE_COVERAGE, XDEBUG_PATH_WHITELIST, [__DIR__ . “/src/”] ); ˡղੳର৅ΛϗϫΠτϦετͰ੍ݶ
  6. ϑΝΠϧϨϕϧͰ࡟আͨ݁͠Ռ         ϑΝΠϧ਺ɿˠݸ

    ߦ਺ɿˠߦʢ࡟আʣ ϑΝΠϧ਺ɿˠݸ ߦ਺ɿˠߦʢ࡟আʣ ϑΝΠϧ਺ɿˠݸ ߦ਺ɿˠߦʢ࡟আʣ ϑΝΠϧ਺ɿˠݸ ߦ਺ɿˠߦʢ࡟আʣ