forked from squizlabs/PHP_CodeSniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/phpcs-fixer' into phar
Conflicts: CodeSniffer/CLI.php
- Loading branch information
Showing
470 changed files
with
2,857 additions
and
1,643 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @package PHP_CodeSniffer | ||
* @author Greg Sherwood <[email protected]> | ||
* @author Marc McIntyre <[email protected]> | ||
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence | ||
* @link http://pear.php.net/package/PHP_CodeSniffer | ||
*/ | ||
|
@@ -23,7 +23,7 @@ | |
* @package PHP_CodeSniffer | ||
* @author Greg Sherwood <[email protected]> | ||
* @author Marc McIntyre <[email protected]> | ||
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence | ||
* @version Release: @package_version@ | ||
* @link http://pear.php.net/package/PHP_CodeSniffer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @package PHP_CodeSniffer | ||
* @author Greg Sherwood <[email protected]> | ||
* @author Marc McIntyre <[email protected]> | ||
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence | ||
* @link http://pear.php.net/package/PHP_CodeSniffer | ||
*/ | ||
|
@@ -28,7 +28,7 @@ | |
* @package PHP_CodeSniffer | ||
* @author Greg Sherwood <[email protected]> | ||
* @author Marc McIntyre <[email protected]> | ||
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence | ||
* @version Release: @package_version@ | ||
* @link http://pear.php.net/package/PHP_CodeSniffer | ||
|
@@ -170,7 +170,7 @@ protected function printToc($standardFiles) | |
$doc = new DOMDocument(); | ||
$doc->load($standard); | ||
$documentation = $doc->getElementsByTagName('documentation')->item(0); | ||
$title = $this->getTitle($documentation); | ||
$title = $this->getTitle($documentation); | ||
echo ' <li><a href="#'.str_replace(' ', '-', $title)."\">$title</a></li>".PHP_EOL; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @package PHP_CodeSniffer | ||
* @author Greg Sherwood <[email protected]> | ||
* @author Marc McIntyre <[email protected]> | ||
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence | ||
* @link http://pear.php.net/package/PHP_CodeSniffer | ||
*/ | ||
|
@@ -26,7 +26,7 @@ | |
* @package PHP_CodeSniffer | ||
* @author Greg Sherwood <[email protected]> | ||
* @author Marc McIntyre <[email protected]> | ||
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence | ||
* @version Release: @package_version@ | ||
* @link http://pear.php.net/package/PHP_CodeSniffer | ||
|
@@ -143,22 +143,22 @@ protected function printCodeComparisonBlock($node) | |
|
||
$firstTitleLines = array(); | ||
$tempTitle = ''; | ||
$words = explode(' ', $firstTitle); | ||
$words = explode(' ', $firstTitle); | ||
|
||
foreach ($words as $word) { | ||
if (strlen($tempTitle.$word) >= 45) { | ||
if (strlen($tempTitle.$word) === 45) { | ||
// Adding the extra space will push us to the edge | ||
// so we are done. | ||
$firstTitleLines[] = $tempTitle.$word; | ||
$tempTitle = ''; | ||
$tempTitle = ''; | ||
} else if (strlen($tempTitle.$word) === 46) { | ||
// We are already at the edge, so we are done. | ||
$firstTitleLines[] = $tempTitle.$word; | ||
$tempTitle = ''; | ||
$tempTitle = ''; | ||
} else { | ||
$firstTitleLines[] = $tempTitle; | ||
$tempTitle = $word; | ||
$tempTitle = $word; | ||
} | ||
} else { | ||
$tempTitle .= $word.' '; | ||
|
@@ -178,22 +178,22 @@ protected function printCodeComparisonBlock($node) | |
|
||
$secondTitleLines = array(); | ||
$tempTitle = ''; | ||
$words = explode(' ', $secondTitle); | ||
$words = explode(' ', $secondTitle); | ||
|
||
foreach ($words as $word) { | ||
if (strlen($tempTitle.$word) >= 45) { | ||
if (strlen($tempTitle.$word) === 45) { | ||
// Adding the extra space will push us to the edge | ||
// so we are done. | ||
$secondTitleLines[] = $tempTitle.$word; | ||
$tempTitle = ''; | ||
$tempTitle = ''; | ||
} else if (strlen($tempTitle.$word) === 46) { | ||
// We are already at the edge, so we are done. | ||
$secondTitleLines[] = $tempTitle.$word; | ||
$tempTitle = ''; | ||
$tempTitle = ''; | ||
} else { | ||
$secondTitleLines[] = $tempTitle; | ||
$tempTitle = $word; | ||
$tempTitle = $word; | ||
} | ||
} else { | ||
$tempTitle .= $word.' '; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @package PHP_CodeSniffer | ||
* @author Greg Sherwood <[email protected]> | ||
* @author Marc McIntyre <[email protected]> | ||
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence | ||
* @link http://pear.php.net/package/PHP_CodeSniffer | ||
*/ | ||
|
@@ -20,7 +20,7 @@ | |
* @package PHP_CodeSniffer | ||
* @author Greg Sherwood <[email protected]> | ||
* @author Marc McIntyre <[email protected]> | ||
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence | ||
* @version Release: @package_version@ | ||
* @link http://pear.php.net/package/PHP_CodeSniffer | ||
|
Oops, something went wrong.