Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Fixing coding standards in SoftDeleteBehavior.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Dec 8, 2013
1 parent 8ab99d0 commit e9a99f3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Model/Behavior/SoftDeleteBehavior.php
Expand Up @@ -24,7 +24,9 @@ class SoftDeleteBehavior extends ModelBehavior {
*
* @var array $default
*/
public $default = array('deleted' => 'deleted_date');
public $default = array(
'deleted' => 'deleted_date'
);

/**
* Holds activity flags for models
Expand Down Expand Up @@ -98,10 +100,12 @@ public function beforeFind(Model $model, $query) {

/**
* Check if a record exists for the given id
* @param object $model
*
* @param Model $model
* @param id
* @return mixed
*/
public function existsAndNotDeleted($model, $id) {
public function existsAndNotDeleted(Model $model, $id) {
if ($id === null) {
$id = $model->getID();
}
Expand Down

0 comments on commit e9a99f3

Please sign in to comment.