Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Model/Behavior/TokenizeBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TokenizeBehavior extends Behavior
'associationAlias' => 'Tokens',
'implementedEvents' => [
'Model.beforeSave' => 'beforeSave',
]
],
];

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Entity/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Table/TokensTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixture/TokensFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TokensFixture extends TestFixture
'modified' => ['type' => 'datetime'],
'_constraints' => [
'primary' => ['type' => 'primary', 'columns' => ['id']],
]
],
];

public $records = [
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixture/UsersFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class UsersFixture extends TestFixture
'password' => ['type' => 'string'],
'_constraints' => [
'primary' => ['type' => 'primary', 'columns' => ['id']],
]
],
];

public $records = [
Expand Down