Skip to content

Commit

Permalink
Update deprecated using ${var} (#2611)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Sep 19, 2022
1 parent 3c5c32a commit f96f0b3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/Zend/Gdata/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -1084,11 +1084,11 @@ public function __call($method, $args)
} else {
#require_once 'Zend/Gdata/App/Exception.php';
throw new Zend_Gdata_App_Exception(
"Unable to find '${class}' in registered packages");
"Unable to find '{$class}' in registered packages");
}
} else {
#require_once 'Zend/Gdata/App/Exception.php';
throw new Zend_Gdata_App_Exception("No such method ${method}");
throw new Zend_Gdata_App_Exception("No such method {$method}");
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Zend/Gdata/App/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public function __get($name)
$method = 'get'.ucfirst($name);
if (method_exists($this, $method)) {
return call_user_func(array(&$this, $method));
} else if (property_exists($this, "_${name}")) {
} else if (property_exists($this, "_{$name}")) {
return $this->{'_' . $name};
} else {
#require_once 'Zend/Gdata/App/InvalidArgumentException.php';
Expand Down
2 changes: 1 addition & 1 deletion lib/Zend/Gdata/App/BaseMediaSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function __get($name)
$method = 'get'.ucfirst($name);
if (method_exists($this, $method)) {
return call_user_func(array(&$this, $method));
} else if (property_exists($this, "_${name}")) {
} else if (property_exists($this, "_{$name}")) {
return $this->{'_' . $name};
} else {
#require_once 'Zend/Gdata/App/InvalidArgumentException.php';
Expand Down
4 changes: 2 additions & 2 deletions lib/Zend/Gdata/App/LoggingHttpClientAdapterSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function log($message)
*/
public function connect($host, $port = 80, $secure = false)
{
$this->log("Connecting to: ${host}:${port}");
$this->log("Connecting to: {$host}:{$port}");
return parent::connect($host, $port, $secure);
}

Expand Down Expand Up @@ -102,7 +102,7 @@ public function write($method, $uri, $http_ver = '1.1', $headers = array(), $bod
public function read()
{
$response = parent::read();
$this->log("${response}\n\n");
$this->log("{$response}\n\n");
return $response;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Zend/Gdata/Gapps.php
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ public function __call($method, $args) {
} else {
#require_once 'Zend/Gdata/App/Exception.php';
throw new Zend_Gdata_App_Exception(
"Unable to find '${class}' in registered packages");
"Unable to find '{$class}' in registered packages");
}
} else {
return parent::__call($method, $args);
Expand Down

0 comments on commit f96f0b3

Please sign in to comment.