Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Commit

Permalink
PHP 5.4 Strict Standards
Browse files Browse the repository at this point in the history
  • Loading branch information
sime committed Nov 8, 2012
1 parent 2c45c50 commit c3a9692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Controller/Component/CakeDjjobComponent.php
Expand Up @@ -40,7 +40,7 @@ public function __construct(ComponentCollection $collection, $settings = array()
* @access public
* @link http://book.cakephp.org/view/65/MVC-Class-Access-Within-Components
*/
public function initialize(&$Controller) {
public function initialize(Controller $controller) {
$connection = ConnectionManager::getDataSource($this->settings['connection']);

if ($this->settings['type'] == 'mysql') {
Expand Down Expand Up @@ -143,4 +143,4 @@ public function status($queue = "default") {
return DJJob::status($queue);
}

}
}
4 changes: 2 additions & 2 deletions Model/Behavior/CakeDjjobBehavior.php
Expand Up @@ -38,7 +38,7 @@ class CakeDjjobBehavior extends ModelBehavior {
* @return void
* @access public
*/
public function setup(&$Model, $config = array()) {
public function setup(Model $model, $config = array()) {
$this->settings = array_merge($this->settings, $config);
$connection = ConnectionManager::getDataSource($this->settings['connection']);

Expand Down Expand Up @@ -145,4 +145,4 @@ public function status(&$Model, $queue = "default") {
return DJJob::status($queue);
}

}
}

0 comments on commit c3a9692

Please sign in to comment.