Skip to content

Commit

Permalink
Removed explicit string casting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Achatz committed May 19, 2018
1 parent dccef22 commit be0f798
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion core/benchmark/HtmlReport.php
Expand Up @@ -228,7 +228,7 @@ private function createReport4Process(Process $process) {
*/
private function getMarkedUpProcessTimeClass($time) {

$class = (string) '';
$class = '';
if ($time > $this->criticalTime) {
$class .= 'warn';
} else {
Expand Down
Expand Up @@ -39,7 +39,7 @@ public function transformContent() {
$entryList = $gS->loadPagedEntryList();

$tmpl_entry = $this->getTemplate('entry');
$buffer = (string) '';
$buffer = '';
foreach ($entryList as $entry) {

$editor = $entry->getEditor();
Expand Down
2 changes: 1 addition & 1 deletion modules/pager/biz/PageItem.php
Expand Up @@ -67,7 +67,7 @@ final class PageItem {

public function __construct() {
$this->page = (int) 0;
$this->link = (string) '';
$this->link = '';
$this->isSelected = false;
$this->entriesCount = (int) 0;
$this->pageCount = (int) 0;
Expand Down
Expand Up @@ -159,7 +159,7 @@ public function transformContent() {

$entriesPerPageConfig = [5, 10, 15, 20];
$entriesPerPage = $this->getRequest()->getParameter($countUrlParameterName, $entriesPerPage);
$buffer = (string) '';
$buffer = '';

foreach ($entriesPerPageConfig as $count) {

Expand Down
2 changes: 1 addition & 1 deletion modules/socialbookmark/biz/SocialBookmarkBarManager.php
Expand Up @@ -157,7 +157,7 @@ public function getBookmarkCode() {
);
}

$output = (string) '';
$output = '';

for ($i = 0; $i < count($this->bookmarkServices); $i++) {
$output .= $this->generateBookmarkEntry($this->bookmarkServices[$i]);
Expand Down
Expand Up @@ -38,7 +38,7 @@ public function transformContent() {
$groups = $this->getManager()->getPagedGroupList();

// display group list
$buffer = (string) '';
$buffer = '';
$template = $this->getTemplate('Group');

foreach ($groups as $group) {
Expand Down
Expand Up @@ -38,7 +38,7 @@ public function transformContent() {
$permissionList = $uM->getPagedPermissionList();

// display list
$buffer = (string) '';
$buffer = '';
$template = $this->getTemplate('Permission');
foreach ($permissionList as $permission) {
$template->setPlaceHolder('DisplayName', $permission->getDisplayName());
Expand Down
Expand Up @@ -41,7 +41,7 @@ public function transformContent() {

// load visibility permission list for the current permission
$template = $this->getTemplate('listitem');
$buffer = (string) '';
$buffer = '';
$list = $uM->loadUsersAndGroupsWithVisibilityDefinition($proxy);

// sort list with respect to the display name of the current element
Expand Down
Expand Up @@ -68,7 +68,7 @@ public function transformContent() {
$proxies = $uM->getPagedVisibilityDefinitionList();
}

$buffer = (string) '';
$buffer = '';
$template = $this->getTemplate('Proxy');
foreach ($proxies as $proxy) {

Expand Down
Expand Up @@ -36,7 +36,7 @@ public function transformContent() {

$uM = $this->getManager();

$buffer = (string) '';
$buffer = '';
$template = $this->getTemplate('Type');

$list = $uM->loadVisibilityDefinitionTypes();
Expand Down
Expand Up @@ -39,7 +39,7 @@ public function transformContent() {
$roleList = $uM->getPagedRoleList();

// display list
$buffer = (string) '';
$buffer = '';
$template = $this->getTemplate('Role');
foreach ($roleList as $role) {

Expand Down
4 changes: 2 additions & 2 deletions modules/weather/pres/documentcontroller/WeatherController.php
Expand Up @@ -71,7 +71,7 @@ public function transformContent() {

// Display items of current channel
$count = count($Channel);
$Buffer = (string) '';
$Buffer = '';

for ($i = 0; $i < $count; $i++) {

Expand Down Expand Up @@ -143,7 +143,7 @@ protected function getRSSFeed() {
fwrite($Socket, $Query);

// Fetch response
$response = (string) '';
$response = '';
while (!feof($Socket)) {
$response .= fgets($Socket, 128);
}
Expand Down

0 comments on commit be0f798

Please sign in to comment.