Skip to content

Commit 072b642

Browse files
author
Mark Scherer
committed
Fix CS
1 parent 274abeb commit 072b642

File tree

8 files changed

+23
-19
lines changed

8 files changed

+23
-19
lines changed

config/Migrations/20150425180802_init.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ public function change() {
2828
->addColumn('workerkey', 'string', ['length' => 45, 'null' => true, 'default' => null])
2929
->create();
3030
}
31+
3132
}

config/Migrations/20150911132343_improvements_for_mysql.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
use Phinx\Migration\AbstractMigration;
44

55
class ImprovementsForMysql extends AbstractMigration {
6+
67
/**
7-
* Change Method.
8-
*
9-
* Write your reversible migrations using this method.
10-
*
11-
* More information on writing migrations is available here:
12-
* http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
13-
*/
8+
* Change Method.
9+
*
10+
* Write your reversible migrations using this method.
11+
*
12+
* More information on writing migrations is available here:
13+
* http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
14+
*/
1415
public function change() {
1516
$table = $this->table('queued_tasks');
1617

@@ -20,4 +21,5 @@ public function change() {
2021
'default' => null,
2122
]);
2223
}
24+
2325
}

src/Model/Table/QueuedTasksTable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
namespace Queue\Model\Table;
33

44
use Cake\Core\Configure;
5+
use Cake\I18n\Time;
56
use Cake\ORM\Table;
67
use Cake\Utility\Hash;
7-
use Cake\I18n\Time;
88

99
/**
1010
* QueuedTask for queued tasks.
@@ -266,7 +266,7 @@ public function requestJob(array $capabilities, $group = null) {
266266
$this->save($data, ['fieldList' => ['id', 'failed', 'failure_message']]);
267267
}
268268
//save last fetch by type for Rate Limiting.
269-
$this->rateHistory[$data['jobtype']] = (new Time())->toUnixString() ;
269+
$this->rateHistory[$data['jobtype']] = (new Time())->toUnixString();
270270
return $data;
271271
}
272272

@@ -399,7 +399,7 @@ public function cleanOldJobs() {
399399
/**
400400
* QueuedTask::lastRun()
401401
*
402-
* @deprecated?
402+
* @deprecated ?
403403
* @return array
404404
*/
405405
public function lastRun() {

src/Shell/Task/QueueExampleTask.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,5 @@ public function run($data, $id = null) {
8686
$this->out(' ');
8787
return true;
8888
}
89+
8990
}

src/Shell/Task/QueueExecuteTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function run($data, $id = null) {
8989
exec($command, $output, $status);
9090
$this->out(' ');
9191
$this->out($output);
92-
return (!$status);
92+
return !$status;
9393
}
9494

9595
}

src/Shell/Task/QueueRetryExampleTask.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,5 @@ public function run($data, $id = null) {
116116
unlink($this->file);
117117
return true;
118118
}
119+
119120
}

tests/Fixture/QueuedTasksFixture.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ class QueuedTasksFixture extends TestFixture {
2020
*/
2121
public $records = [];
2222

23-
/**
24-
* Fields
25-
*
26-
* @var array
27-
*/
28-
// @codingStandardsIgnoreStart
23+
/**
24+
* Fields
25+
*
26+
* @var array
27+
*/
2928
public $fields = [
3029
'id' => ['type' => 'integer'],
3130
'jobtype' => ['type' => 'string', 'length' => 45, 'null' => false, 'default' => null],
@@ -49,5 +48,5 @@ class QueuedTasksFixture extends TestFixture {
4948
'collation' => 'utf8_unicode_ci',
5049
],
5150
];
52-
// @codingStandardsIgnoreEnd
51+
5352
}

tests/TestCase/Model/Table/QueuedTasksTableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
namespace Queue\Test\TestCase\Model\Table;
88

99
use Cake\Core\Configure;
10+
use Cake\I18n\Time;
1011
use Cake\ORM\TableRegistry;
1112
use Cake\TestSuite\TestCase;
12-
use Cake\I18n\Time;
1313

1414
/**
1515
* Queue\Model\Table\QueuedTasksTable Test Case

0 commit comments

Comments
 (0)