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 4c08c58

Browse filesBrowse files
committed
Fix phpdoc inconsistencies, simplify no-op sprintf.
(detected by static analysis)
1 parent beed426 commit 4c08c58
Copy full SHA for 4c08c58

File tree

6 files changed

+4
-8
lines changed
Filter options

6 files changed

+4
-8
lines changed

‎src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function hasMarkedPlace($subject, $placeName, $name = null)
8585
* Returns marked places.
8686
*
8787
* @param object $subject A subject
88-
* @param string $placesNameOnly If true, returns only places name. If false returns the raw representation
88+
* @param bool $placesNameOnly If true, returns only places name. If false returns the raw representation
8989
* @param string $name A workflow name
9090
*
9191
* @return string[]|int[]

‎src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,6 @@ protected function describeCallable($callable, array $options = array())
417417
$this->writeText($this->formatCallable($callable), $options);
418418
}
419419

420-
/**
421-
* @param array $array
422-
*/
423420
private function renderEventListenerTable(EventDispatcherInterface $eventDispatcher, $event, array $eventListeners, SymfonyStyle $io)
424421
{
425422
$tableHeaders = array('Order', 'Callable', 'Priority');

‎src/Symfony/Component/Console/Helper/Table.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Helper/Table.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Table
4848
/**
4949
* Number of columns cache.
5050
*
51-
* @var array
51+
* @var int
5252
*/
5353
private $numberOfColumns;
5454

‎src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private function getControllerError($callable)
219219
}
220220

221221
if (2 !== count($callable)) {
222-
return sprintf('Invalid format for controller, expected array(controller, method) or controller::method.');
222+
return 'Invalid format for controller, expected array(controller, method) or controller::method.';
223223
}
224224

225225
list($controller, $method) = $callable;

‎src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function normalize($object, $format = null, array $context = array())
108108
*
109109
* @return string[]
110110
*/
111-
protected function getAttributes($object, $format = null, array $context)
111+
protected function getAttributes($object, $format, array $context)
112112
{
113113
$class = get_class($object);
114114
$key = $class.'-'.$context['cache_key'];

‎src/Symfony/Component/Translation/PluralizationRules.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/PluralizationRules.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public static function get($number, $locale)
7171
case 'vi':
7272
case 'zh':
7373
return 0;
74-
break;
7574

7675
case 'af':
7776
case 'bn':

0 commit comments

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