Skip to content

Commit f96f0b3

Browse files
authored
Update deprecated using ${var} (OpenMage#2611)
1 parent 3c5c32a commit f96f0b3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

lib/Zend/Gdata/App.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,11 +1084,11 @@ public function __call($method, $args)
10841084
} else {
10851085
#require_once 'Zend/Gdata/App/Exception.php';
10861086
throw new Zend_Gdata_App_Exception(
1087-
"Unable to find '${class}' in registered packages");
1087+
"Unable to find '{$class}' in registered packages");
10881088
}
10891089
} else {
10901090
#require_once 'Zend/Gdata/App/Exception.php';
1091-
throw new Zend_Gdata_App_Exception("No such method ${method}");
1091+
throw new Zend_Gdata_App_Exception("No such method {$method}");
10921092
}
10931093
}
10941094

lib/Zend/Gdata/App/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public function __get($name)
480480
$method = 'get'.ucfirst($name);
481481
if (method_exists($this, $method)) {
482482
return call_user_func(array(&$this, $method));
483-
} else if (property_exists($this, "_${name}")) {
483+
} else if (property_exists($this, "_{$name}")) {
484484
return $this->{'_' . $name};
485485
} else {
486486
#require_once 'Zend/Gdata/App/InvalidArgumentException.php';

lib/Zend/Gdata/App/BaseMediaSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function __get($name)
113113
$method = 'get'.ucfirst($name);
114114
if (method_exists($this, $method)) {
115115
return call_user_func(array(&$this, $method));
116-
} else if (property_exists($this, "_${name}")) {
116+
} else if (property_exists($this, "_{$name}")) {
117117
return $this->{'_' . $name};
118118
} else {
119119
#require_once 'Zend/Gdata/App/InvalidArgumentException.php';

lib/Zend/Gdata/App/LoggingHttpClientAdapterSocket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function log($message)
7373
*/
7474
public function connect($host, $port = 80, $secure = false)
7575
{
76-
$this->log("Connecting to: ${host}:${port}");
76+
$this->log("Connecting to: {$host}:{$port}");
7777
return parent::connect($host, $port, $secure);
7878
}
7979

@@ -102,7 +102,7 @@ public function write($method, $uri, $http_ver = '1.1', $headers = array(), $bod
102102
public function read()
103103
{
104104
$response = parent::read();
105-
$this->log("${response}\n\n");
105+
$this->log("{$response}\n\n");
106106
return $response;
107107
}
108108

lib/Zend/Gdata/Gapps.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ public function __call($method, $args) {
879879
} else {
880880
#require_once 'Zend/Gdata/App/Exception.php';
881881
throw new Zend_Gdata_App_Exception(
882-
"Unable to find '${class}' in registered packages");
882+
"Unable to find '{$class}' in registered packages");
883883
}
884884
} else {
885885
return parent::__call($method, $args);

0 commit comments

Comments
 (0)