From c3a969205944c384aaf06a5fc16a18c4f69defc8 Mon Sep 17 00:00:00 2001 From: Simon Males Date: Thu, 8 Nov 2012 14:24:42 +1100 Subject: [PATCH] PHP 5.4 Strict Standards --- Controller/Component/CakeDjjobComponent.php | 4 ++-- Model/Behavior/CakeDjjobBehavior.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Controller/Component/CakeDjjobComponent.php b/Controller/Component/CakeDjjobComponent.php index bc38b01..9167885 100644 --- a/Controller/Component/CakeDjjobComponent.php +++ b/Controller/Component/CakeDjjobComponent.php @@ -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') { @@ -143,4 +143,4 @@ public function status($queue = "default") { return DJJob::status($queue); } -} \ No newline at end of file +} diff --git a/Model/Behavior/CakeDjjobBehavior.php b/Model/Behavior/CakeDjjobBehavior.php index a6bd1a1..056d3a8 100644 --- a/Model/Behavior/CakeDjjobBehavior.php +++ b/Model/Behavior/CakeDjjobBehavior.php @@ -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']); @@ -145,4 +145,4 @@ public function status(&$Model, $queue = "default") { return DJJob::status($queue); } -} \ No newline at end of file +}