Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 14e2631

Browse filesBrowse files
committed
DoctrineDataCollector applied fabpot.io formatting hints.
1 parent 27cc471 commit 14e2631
Copy full SHA for 14e2631

File tree

3 files changed

+19
-21
lines changed
Filter options

3 files changed

+19
-21
lines changed

‎src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private function sanitizeParam($var)
161161
if (is_object($var)) {
162162
return method_exists($var, '__toString') ?
163163
array($var->__toString(), false) :
164-
array(sprintf('Object(%s)', get_class($var)), false,);
164+
array(sprintf('Object(%s)', get_class($var)), false);
165165
}
166166

167167
if (is_array($var)) {

‎src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function paramProvider()
126126
array(null, array(), null, true),
127127
array(new \DateTime('2011-09-11'), array('date'), '2011-09-11', true),
128128
array(fopen(__FILE__, 'r'), array(), 'Resource(stream)', false),
129-
array(new \stdClass, array(), 'Object(stdClass)', false),
129+
array(new \stdClass(), array(), 'Object(stdClass)', false),
130130
array(new StringRepresentableClass('presentation test'), array(), 'presentation test', false),
131131
);
132132
}

‎src/Symfony/Bridge/Doctrine/Tests/DataCollector/StringRepresentableClass.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/DataCollector/StringRepresentableClass.php
+17-19Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,26 @@
44

55
/**
66
* A class for testing __toString method behaviour. It's __toString returns a value, that was passed into constructor.
7-
*
8-
* @package Symfony\Bridge\Doctrine\Tests\DataCollector
97
*/
108
class StringRepresentableClass
119
{
12-
/**
13-
* @var string
14-
*/
15-
private $representation;
10+
/**
11+
* @var string
12+
*/
13+
private $representation;
1614

17-
/**
18-
* CustomStringableClass constructor.
19-
*
20-
* @param string $representation
21-
*/
22-
public function __construct($representation)
23-
{
24-
$this->representation = $representation;
25-
}
15+
/**
16+
* CustomStringableClass constructor.
17+
*
18+
* @param string $representation
19+
*/
20+
public function __construct($representation)
21+
{
22+
$this->representation = $representation;
23+
}
2624

27-
public function __toString()
28-
{
29-
return $this->representation;
30-
}
25+
public function __toString()
26+
{
27+
return $this->representation;
28+
}
3129
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.