diff --git a/src/Model/Behavior/TokenizeBehavior.php b/src/Model/Behavior/TokenizeBehavior.php index 83d21e6..39ab628 100644 --- a/src/Model/Behavior/TokenizeBehavior.php +++ b/src/Model/Behavior/TokenizeBehavior.php @@ -19,7 +19,7 @@ class TokenizeBehavior extends Behavior 'associationAlias' => 'Tokens', 'implementedEvents' => [ 'Model.beforeSave' => 'beforeSave', - ] + ], ]; /** diff --git a/src/Model/Entity/Token.php b/src/Model/Entity/Token.php index 6eb8fba..b27963f 100644 --- a/src/Model/Entity/Token.php +++ b/src/Model/Entity/Token.php @@ -13,7 +13,7 @@ * @property string $foreign_alias * @property string $foreign_table * @property string $foreign_key - * @property string $foreign_data + * @property array $foreign_data * @property bool $status */ class Token extends Entity @@ -34,7 +34,7 @@ public function __construct(array $properties = [], array $options = []) $properties += [ 'token' => self::random(), 'status' => false, - 'expired' => date('Y-m-d H:i:s', strtotime($lifetime)) + 'expired' => date('Y-m-d H:i:s', strtotime($lifetime)), ]; parent::__construct($properties, $options); } diff --git a/src/Model/Table/TokensTable.php b/src/Model/Table/TokensTable.php index fc98b8e..facbe81 100644 --- a/src/Model/Table/TokensTable.php +++ b/src/Model/Table/TokensTable.php @@ -44,7 +44,7 @@ public function findToken(Query $query, array $options) $options += [ 'token' => null, 'expired >' => new DateTime(), - 'status' => false + 'status' => false, ]; return $query->where($options); diff --git a/tests/Fixture/TokensFixture.php b/tests/Fixture/TokensFixture.php index 204d416..643e209 100644 --- a/tests/Fixture/TokensFixture.php +++ b/tests/Fixture/TokensFixture.php @@ -22,7 +22,7 @@ class TokensFixture extends TestFixture 'modified' => ['type' => 'datetime'], '_constraints' => [ 'primary' => ['type' => 'primary', 'columns' => ['id']], - ] + ], ]; public $records = [ diff --git a/tests/Fixture/UsersFixture.php b/tests/Fixture/UsersFixture.php index 978db9f..0cc13cf 100644 --- a/tests/Fixture/UsersFixture.php +++ b/tests/Fixture/UsersFixture.php @@ -15,7 +15,7 @@ class UsersFixture extends TestFixture 'password' => ['type' => 'string'], '_constraints' => [ 'primary' => ['type' => 'primary', 'columns' => ['id']], - ] + ], ]; public $records = [