@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * phpDocumentor DocBlock Test |
|
4 | - * |
|
5 | - * PHP Version 5.3 |
|
6 | - * |
|
7 | - * @author Mike van Riel <[email protected]> |
|
8 | - * @copyright 2010-2011 Mike van Riel / Naenius. (http://www.naenius.com) |
|
9 | - * @license http://www.opensource.org/licenses/mit-license.php MIT |
|
10 | - * @link http://phpdoc.org |
|
11 | - */ |
|
3 | + * phpDocumentor DocBlock Test |
|
4 | + * |
|
5 | + * PHP Version 5.3 |
|
6 | + * |
|
7 | + * @author Mike van Riel <[email protected]> |
|
8 | + * @copyright 2010-2011 Mike van Riel / Naenius. (http://www.naenius.com) |
|
9 | + * @license http://www.opensource.org/licenses/mit-license.php MIT |
|
10 | + * @link http://phpdoc.org |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection; |
14 | 14 | |
@@ -309,9 +309,9 @@ discard block |
||
309 | 309 | DOCBLOCK; |
310 | 310 | $object = new DocBlock($fixture); |
311 | 311 | $this->assertCount(1, $tags = $object->getTags()); |
312 | - /** @var ReturnTag $tag */ |
|
313 | - $tag = reset($tags); |
|
314 | - $this->assertEquals("Content on\n multiple lines.\n\n One more, after the break.", $tag->getDescription()); |
|
312 | + /** @var ReturnTag $tag */ |
|
313 | + $tag = reset($tags); |
|
314 | + $this->assertEquals("Content on\n multiple lines.\n\n One more, after the break.", $tag->getDescription()); |
|
315 | 315 | } |
316 | 316 | |
317 | 317 | /** |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | $class->getName()->willReturn('Custom\ClassName'); |
389 | 389 | |
390 | 390 | $this->shouldThrow('Prophecy\Exception\Doubler\ClassMirrorException') |
391 | - ->duringReflect($class, array()); |
|
391 | + ->duringReflect($class, array()); |
|
392 | 392 | } |
393 | 393 | |
394 | 394 | /** |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | $interface->getName()->willReturn('Custom\ClassName'); |
420 | 420 | |
421 | 421 | $this->shouldThrow('Prophecy\Exception\InvalidArgumentException') |
422 | - ->duringReflect($interface, array()); |
|
422 | + ->duringReflect($interface, array()); |
|
423 | 423 | } |
424 | 424 | |
425 | 425 | /** |
@@ -562,13 +562,13 @@ discard block |
||
562 | 562 | $class->isInterface()->willReturn(false); |
563 | 563 | |
564 | 564 | $this->shouldThrow('InvalidArgumentException') |
565 | - ->duringReflect(null, array($class)); |
|
565 | + ->duringReflect(null, array($class)); |
|
566 | 566 | } |
567 | 567 | |
568 | 568 | function it_throws_an_exception_if_not_reflection_provided_as_interface() |
569 | 569 | { |
570 | 570 | $this->shouldThrow('InvalidArgumentException') |
571 | - ->duringReflect(null, array(null)); |
|
571 | + ->duringReflect(null, array(null)); |
|
572 | 572 | } |
573 | 573 | |
574 | 574 | function it_doesnt_fail_to_typehint_nonexistent_FQCN() |
@@ -289,7 +289,7 @@ |
||
289 | 289 | $this->withArguments($arguments); |
290 | 290 | |
291 | 291 | try { |
292 | - $this->callOnWrappedObject('shouldHave', array($prediction)); |
|
292 | + $this->callOnWrappedObject('shouldHave', array($prediction)); |
|
293 | 293 | } catch (\Exception $e) {} |
294 | 294 | |
295 | 295 | $this->getCheckedPredictions()->shouldReturn(array($prediction)); |
@@ -304,7 +304,7 @@ |
||
304 | 304 | |
305 | 305 | class ObjectProphecySpecFixtureA |
306 | 306 | { |
307 | - public $errors; |
|
307 | + public $errors; |
|
308 | 308 | } |
309 | 309 | |
310 | 310 | class ObjectProphecySpecFixtureB extends ObjectProphecySpecFixtureA |
@@ -127,7 +127,7 @@ |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | private function createUnexpectedCallException(ObjectProphecy $prophecy, $methodName, |
130 | - array $arguments) |
|
130 | + array $arguments) |
|
131 | 131 | { |
132 | 132 | $classname = get_class($prophecy->reveal()); |
133 | 133 | $argstring = implode(', ', array_map(array($this->util, 'stringify'), $arguments)); |
@@ -751,8 +751,8 @@ discard block |
||
751 | 751 | $token instanceof PHP_Token_CLASS) { |
752 | 752 | if (empty($classes[$token->getName()]['methods'])) { |
753 | 753 | for ($i = $token->getLine(); |
754 | - $i <= $token->getEndLine(); |
|
755 | - $i++) { |
|
754 | + $i <= $token->getEndLine(); |
|
755 | + $i++) { |
|
756 | 756 | $this->ignoredLines[$filename][] = $i; |
757 | 757 | } |
758 | 758 | } else { |
@@ -772,14 +772,14 @@ discard block |
||
772 | 772 | } |
773 | 773 | |
774 | 774 | for ($i = $token->getLine(); |
775 | - $i < $firstMethod['startLine']; |
|
776 | - $i++) { |
|
775 | + $i < $firstMethod['startLine']; |
|
776 | + $i++) { |
|
777 | 777 | $this->ignoredLines[$filename][] = $i; |
778 | 778 | } |
779 | 779 | |
780 | 780 | for ($i = $token->getEndLine(); |
781 | - $i > $lastMethod['endLine']; |
|
782 | - $i--) { |
|
781 | + $i > $lastMethod['endLine']; |
|
782 | + $i--) { |
|
783 | 783 | $this->ignoredLines[$filename][] = $i; |
784 | 784 | } |
785 | 785 | } |
@@ -77,8 +77,8 @@ |
||
77 | 77 | |
78 | 78 | $methodCount = 0; |
79 | 79 | for ($i = $method['startLine']; |
80 | - $i <= $method['endLine']; |
|
81 | - $i++) { |
|
80 | + $i <= $method['endLine']; |
|
81 | + $i++) { |
|
82 | 82 | if (isset($coverage[$i]) && ($coverage[$i] !== null)) { |
83 | 83 | $methodCount = max($methodCount, count($coverage[$i])); |
84 | 84 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Represents foo. |
|
4 | - */ |
|
3 | + * Represents foo. |
|
4 | + */ |
|
5 | 5 | class Foo |
6 | 6 | { |
7 | 7 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $factory = new File_Iterator_Factory; |
36 | 36 | $iterator = $factory->getFileIterator( |
37 | - $paths, $suffixes, $prefixes, $exclude |
|
37 | + $paths, $suffixes, $prefixes, $exclude |
|
38 | 38 | ); |
39 | 39 | |
40 | 40 | $files = array(); |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | |
59 | 59 | if ($commonPath) { |
60 | 60 | return array( |
61 | - 'commonPath' => $this->getCommonPath($files), |
|
62 | - 'files' => $files |
|
61 | + 'commonPath' => $this->getCommonPath($files), |
|
62 | + 'files' => $files |
|
63 | 63 | ); |
64 | 64 | } else { |
65 | 65 | return $files; |