CS fixes.

This commit is contained in:
Vasil Rangelov
2012-11-27 19:52:28 +02:00
parent 0d38c84407
commit 8418970624
5 changed files with 19 additions and 7 deletions
+3 -3
View File
@@ -136,7 +136,7 @@ class DocBlock implements \Reflector
} else {
// clears all extra horizontal whitespace from the line endings
// to prevent parsing issues
$comment = preg_replace('~(?m)\h*$~u', '', $comment);
$comment = preg_replace('/\h*$/Sum', '', $comment);
/*
* Splits the docblock into a short description, long description and
@@ -153,7 +153,7 @@ class DocBlock implements \Reflector
* Big thanks to RichardJ for contributing this Regular Expression
*/
preg_match(
'/(?x)
'/
\A (
[^\n.]+
(?:
@@ -176,7 +176,7 @@ class DocBlock implements \Reflector
)
)?
(\s+ [\s\S]*)? # everything that follows
/u',
/ux',
$comment,
$matches
);
@@ -31,7 +31,7 @@ class Context
protected $lsen = '';
/**
*
* Cteates a new context.
* @param string $namespace The namespace where this DocBlock
* resides in.
* @param array $namespace_aliases List of namespace aliases => Fully
@@ -65,7 +65,13 @@ class ExampleTagTest extends \PHPUnit_Framework_TestCase
*/
public function provideDataForConstuctor()
{
// $type, $content, $exContent, $exDescription, $exStartingLine, $exLineCount, $exFilePath
// $type,
// $content,
// $exContent,
// $exDescription,
// $exStartingLine,
// $exLineCount,
// $exFilePath
return array(
array(
'example',
@@ -90,7 +90,7 @@ class TagTest extends \PHPUnit_Framework_TestCase
$tagPreReg
);
require 'data:text/plain;base64,'. base64_encode(
include 'data:text/plain;base64,'. base64_encode(
<<<TAG_HANDLER
<?php
class MyTagHandler extends \phpDocumentor\Reflection\DocBlock\Tag {}
@@ -120,6 +120,8 @@ TAG_HANDLER
* @depends testTagHandlerCorrectRegistration
* @covers \phpDocumentor\Reflection\DocBlock\Tag::registerTagHandler
* @covers \phpDocumentor\Reflection\DocBlock\Tag::createInstance
*
* @return void
*/
public function testNamespacedTagHandlerCorrectRegistration()
{
@@ -162,6 +164,8 @@ TAG_HANDLER
* @depends testTagHandlerCorrectRegistration
* @covers \phpDocumentor\Reflection\DocBlock\Tag::registerTagHandler
* @covers \phpDocumentor\Reflection\DocBlock\Tag::createInstance
*
* @return void
*/
public function testNamespacedTagHandlerIncorrectRegistration()
{
@@ -27,6 +27,8 @@ class DocBlockTest extends \PHPUnit_Framework_TestCase
{
/**
* @covers \phpDocumentor\Reflection\DocBlock
*
* @return void
*/
public function testConstruct()
{
@@ -168,7 +170,7 @@ DOCBLOCK;
$this->markTestSkipped('"data" URIs for includes are required.');
}
require 'data:text/plain;base64,'. base64_encode(
include 'data:text/plain;base64,'. base64_encode(
<<<DOCBLOCK_EXTENSION
<?php
class MyReflectionDocBlock extends \phpDocumentor\Reflection\DocBlock {