-
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 (#77)
* Adds phpcs and resolves phpcs errors * oops * move github actions into single ci file --------- Co-authored-by: Chris Nizzardini <chris.nizzardini@thecmigroupa.ca>
- Loading branch information
1 parent
d8bb554
commit 68d1ee1
Showing
8 changed files
with
140 additions
and
150 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
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
<?php | ||
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