Skip to content

Commit 271c8f1

Browse files
committed
CS: Binary operators should be arounded by at least one space
1 parent 7454e39 commit 271c8f1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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

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
}

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
}

Tests/Comparator/NumberComparatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ public function getTestData()
7171
array('==1KI', array('1024'), array('1023', '1025')),
7272

7373
array('==1m', array('1000000'), array('999999', '1000001')),
74-
array('==1mi', array(1024*1024), array(1024*1024-1, 1024*1024+1)),
74+
array('==1mi', array(1024 * 1024), array(1024 * 1024 - 1, 1024 * 1024 + 1)),
7575

7676
array('==1g', array('1000000000'), array('999999999', '1000000001')),
77-
array('==1gi', array(1024*1024*1024), array(1024*1024*1024-1, 1024*1024*1024+1)),
77+
array('==1gi', array(1024 * 1024 * 1024), array(1024 * 1024 * 1024 - 1, 1024 * 1024 * 1024 + 1)),
7878

7979
array('!= 1000', array('500', '999'), array('1000')),
8080
);

0 commit comments

Comments
 (0)