-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds phpcs and resolves phpcs errors
- Loading branch information
Chris Nizzardini
committed
Jan 10, 2024
1 parent
7068719
commit 7a57fc8
Showing
7 changed files
with
51 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
- name: Test Suite | ||
run: | | ||
composer test | ||
composer check | ||
# | ||
# CakePHP version compatability | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright (c) 2024, Canadian Mortgages Inc. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace AuditStash\Test; | ||
|
||
use Cake\ORM\Table; | ||
|
||
class AuditLogsTable extends Table | ||
{ | ||
public function initialize(array $config): void | ||
{ | ||
parent::initialize($config); | ||
|
||
$this->setTable('audit_logs'); | ||
$this->setPrimaryKey('id'); | ||
|
||
$this->setSchema([ | ||
'id' => 'integer', | ||
'transaction' => 'string', | ||
'type' => 'string', | ||
'primary_key' => 'integer', | ||
'source' => 'string', | ||
'parent_source' => 'string', | ||
'original' => 'string', | ||
'changed' => 'string', | ||
'meta' => 'string', | ||
'created' => 'datetime', | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace AuditStash\Test; | ||
|
||
use AuditStash\PersisterInterface; | ||
|
||
class DebugPersister implements PersisterInterface | ||
{ | ||
public function logEvents(array $events): void | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters