Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated using ${var} in lib/Zend #2611

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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