Skip to content

Commit ec2cec6

Browse files
committed
CS: Binary operators should be arounded by at least one space
1 parent 0b1f172 commit ec2cec6

File tree

29 files changed

+58
-58
lines changed

29 files changed

+58
-58
lines changed

src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function testLogLongString()
8787
$testString = 'abc';
8888

8989
$shortString = str_pad('', DbalLogger::MAX_STRING_LENGTH, $testString);
90-
$longString = str_pad('', DbalLogger::MAX_STRING_LENGTH+1, $testString);
90+
$longString = str_pad('', DbalLogger::MAX_STRING_LENGTH + 1, $testString);
9191

9292
$dbalLogger
9393
->expects($this->once())

src/Symfony/Bridge/Propel1/Logger/PropelLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function debug($message)
138138
$trace = debug_backtrace();
139139
$method = $trace[2]['args'][2];
140140

141-
$watch = 'Propel Query '.(count($this->queries)+1);
141+
$watch = 'Propel Query '.(count($this->queries) + 1);
142142
if ('PropelPDO::prepare' === $method) {
143143
$this->isPrepared = true;
144144
$this->stopwatch->start($watch, 'propel');

src/Symfony/Component/BrowserKit/Cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public static function fromString($cookie, $url = null)
204204
private static function parseDate($dateValue)
205205
{
206206
// trim single quotes around date if present
207-
if (($length = strlen($dateValue)) > 1 && "'" === $dateValue[0] && "'" === $dateValue[$length-1]) {
207+
if (($length = strlen($dateValue)) > 1 && "'" === $dateValue[0] && "'" === $dateValue[$length - 1]) {
208208
$dateValue = substr($dateValue, 1, -1);
209209
}
210210

src/Symfony/Component/Config/Definition/PrototypedArrayNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ protected function normalizeValue($value)
245245

246246
$value = $this->remapXml($value);
247247

248-
$isAssoc = array_keys($value) !== range(0, count($value) -1);
248+
$isAssoc = array_keys($value) !== range(0, count($value) - 1);
249249
$normalized = array();
250250
foreach ($value as $k => $v) {
251251
if (null !== $this->keyAttribute && is_array($v)) {

src/Symfony/Component/Config/Loader/FileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function import($resource, $type = null, $ignoreErrors = false, $sourceRe
9393
$resources = is_array($resource) ? $resource : array($resource);
9494
for ($i = 0; $i < $resourcesCount = count($resources); $i++) {
9595
if (isset(self::$loading[$resources[$i]])) {
96-
if ($i == $resourcesCount-1) {
96+
if ($i == $resourcesCount - 1) {
9797
throw new FileLoaderImportCircularReferenceException(array_keys(self::$loading));
9898
}
9999
} else {

src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function getCurrent()
9696
return $this->emptyStyle;
9797
}
9898

99-
return $this->styles[count($this->styles)-1];
99+
return $this->styles[count($this->styles) - 1];
100100
}
101101

102102
/**

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,14 +1342,14 @@ private function getNextVariableName()
13421342
$i = $this->variableCount;
13431343

13441344
if ('' === $name) {
1345-
$name .= $firstChars[$i%$firstCharsLength];
1346-
$i = (int) ($i/$firstCharsLength);
1345+
$name .= $firstChars[$i % $firstCharsLength];
1346+
$i = (int) ($i / $firstCharsLength);
13471347
}
13481348

13491349
while ($i > 0) {
13501350
--$i;
1351-
$name .= $nonFirstChars[$i%$nonFirstCharsLength];
1352-
$i = (int) ($i/$nonFirstCharsLength);
1351+
$name .= $nonFirstChars[$i % $nonFirstCharsLength];
1352+
$i = (int) ($i / $nonFirstCharsLength);
13531353
}
13541354

13551355
++$this->variableCount;

src/Symfony/Component/Finder/Adapter/AbstractFindAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private function buildDatesFiltering(Command $command, array $dates)
272272
foreach ($dates as $i => $date) {
273273
$command->add($i > 0 ? '-and' : null);
274274

275-
$mins = (int) round((time()-$date->getTarget()) / 60);
275+
$mins = (int) round((time() - $date->getTarget()) / 60);
276276

277277
if (0 > $mins) {
278278
// mtime is in the future

src/Symfony/Component/Finder/Comparator/NumberComparator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ public function __construct($test)
6464
$target *= 1000000;
6565
break;
6666
case 'mi':
67-
$target *= 1024*1024;
67+
$target *= 1024 * 1024;
6868
break;
6969
case 'g':
7070
$target *= 1000000000;
7171
break;
7272
case 'gi':
73-
$target *= 1024*1024*1024;
73+
$target *= 1024 * 1024 * 1024;
7474
break;
7575
}
7676
}

src/Symfony/Component/Finder/Shell/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function ins($label)
170170
}
171171

172172
$this->bits[] = self::create($this);
173-
$this->labels[$label] = count($this->bits)-1;
173+
$this->labels[$label] = count($this->bits) - 1;
174174

175175
return $this->bits[$this->labels[$label]];
176176
}

0 commit comments

Comments
 (0)