Skip to content
Permalink
Browse files

Remove remaining reference operators.

These were left over from the days of 1.x and aren't needed anymore.
  • Loading branch information...
markstory committed Apr 16, 2013
1 parent 247d836 commit 8eb56960d87bb69ba520bd936d6eb4c067a22367
@@ -277,7 +277,7 @@ public function isLoadableClass($package, $class) {
* @param string $class the Classname of the class the test is being generated for.
* @return object And instance of the class that is going to be tested.
*/
public function &buildTestSubject($type, $class) {
public function buildTestSubject($type, $class) {
ClassRegistry::flush();
App::import($type, $class);
$class = $this->getRealClassName($type, $class);
@@ -110,7 +110,7 @@ public function __construct() {
*
* @return I18n
*/
public static function &getInstance() {
public static function getInstance() {
static $instance = array();
if (!$instance) {
$instance[0] = new I18n();
@@ -1083,7 +1083,7 @@ public static function normalize($url = '/') {
*
* @return CakeRoute Matching route object.
*/
public static function &requestRoute() {
public static function requestRoute() {
return self::$_currentRoute[0];
}
@@ -1092,7 +1092,7 @@ public static function &requestRoute() {
*
* @return CakeRoute Matching route object.
*/
public static function &currentRoute() {
public static function currentRoute() {
return self::$_currentRoute[count(self::$_currentRoute) - 1];
}
@@ -58,7 +58,7 @@ class ClassRegistry {
*
* @return ClassRegistry instance
*/
public static function &getInstance() {
public static function getInstance() {
static $instance = array();
if (!$instance) {
$instance[0] = new ClassRegistry();
@@ -259,7 +259,7 @@ public static function keys() {
* @param string $key Key of object to look for
* @return mixed Object stored in registry or boolean false if the object does not exist.
*/
public static function &getObject($key) {
public static function getObject($key) {
$_this = ClassRegistry::getInstance();
$key = Inflector::underscore($key);
$return = false;
@@ -154,7 +154,7 @@ public function __construct() {
* @param string $class
* @return object
*/
public static function &getInstance($class = null) {
public static function getInstance($class = null) {
static $instance = array();
if (!empty($class)) {
if (!$instance || strtolower($class) != strtolower(get_class($instance[0]))) {

0 comments on commit 8eb5696

Please sign in to comment.
You can’t perform that action at this time.