Skip to content

Commit 0cee535

Browse files
committed
PSR-2
1 parent aa5ecb3 commit 0cee535

4 files changed

Lines changed: 17 additions & 9 deletions

File tree

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1+
vendor/
12
.project
2-
.vscode/
3-
/vendor/
3+
.vscode/

composer.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
"name": "dframe/activitylog",
33
"description": "user, system activity log",
44
"license": "MIT",
5-
"keywords": ["logsystem", "activitylogs", "dframe", "log", "logs"],
5+
"keywords": [
6+
"logsystem",
7+
"activitylogs",
8+
"dframe",
9+
"log",
10+
"logs"
11+
],
612
"homepage": "https://dframeframework.com",
713
"type": "library",
814
"authors": [
@@ -12,13 +18,15 @@
1218
}
1319
],
1420
"autoload": {
15-
"psr-4": { "Dframe\\ActivityLog\\": "src/" }
21+
"psr-4": {
22+
"Dframe\\ActivityLog\\": "src/"
23+
}
1624
},
1725
"require": {},
1826
"scripts": {
1927
"test": [
2028
"@phpunit"
2129
],
2230
"phpunit": "php vendor/bin/phpunit"
23-
}
24-
}
31+
}
32+
}

example/app/Libs/Extensions/ActivityLog/Change.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function build($before, $after)
3333
unset($after[$key]);
3434
}
3535
}
36-
36+
3737
$this->changes = array('before' => $before, 'after' => $after);
3838
return $this;
3939
}

example/app/Model/ActivityLog/Drivers/Log.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public function push($loggedId, $on, $entity, $log)
2121
'log_message' => $log
2222
);
2323

24-
if (isset($on['table']) AND isset($on['id'])) {
24+
if (isset($on['table']) and isset($on['id'])) {
2525
$data['log_type'] = $on['table'];
26-
$data['changed_id'] = $on['id'];
26+
$data['changed_id'] = $on['id'];
2727
}
2828

2929
$getLastInsertId = $this->baseClass->db->insert('logs', $data)->getLastInsertId();

0 commit comments

Comments
 (0)