2016-10-25 2 views
1

논평 :PHP-CS-해결사 : 헤더를 제거하는 방법을 DocBlock 내가 내 파일에 DocBlock 주석을 추가 한 실수로

/** 
* @author  My Name <[email protected]> 
* @copyright Copyright (C) 2012 - 2015 My App. All rights reserved. 
* @license  Some notes about the license. 
*/ 

하지만 그 같은 설정 헤더 의견을 원하는이 잘못 SI :

/* 
* This file is part of the My App. 
* 
* Copyright My Name 2012-2016. 
* 
* This code is to consider private and non disclosable to anyone for whatever reason. 
* Every right on this code is reserved. 
* 
* @author My name <[email protected]> 
*/ 

이제 머리글 설명 using PHP-CS-Fixer을 추가했지만 어떻게 이전 항목을 제거 할 수 있습니까? friendsofphp/php-cs-fixer:^2.0.0를 사용

답변

0

는, 헤더 의견은 전적으로 다음과 같은 구성을 사용하여 제거 할 수 있습니다 : 우리는 빈 문자열을 제공하는 방법

$config = PhpCsFixer\Config::create()->setRules([ 
    'header_comment' => [ 
     'header' => '', 
    ], 
]); 

참고.

관련 문제