Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit 461bb13

Browse files
committed
CS fixes
1 parent 428056c commit 461bb13

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

module/ZfModule/src/ZfModule/Controller/IndexController.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,18 @@ public function indexAction()
8989
'direction' => 'desc',
9090
];
9191

92-
$viewModel = new ViewModel(array(
92+
$viewModel = new ViewModel([
9393
'repositories' => [],
9494
'error_message' => '',
95-
));
95+
]);
9696
$viewModel->setTerminal(true);
9797

9898
try {
9999
$repos = $this->repositoryRetriever->getAuthenticatedUserRepositories($params);
100100
$repositories = $this->fetchModules($repos);
101101
$viewModel->setVariable('repositories', $repositories);
102102
} catch (GithubException $ex) {
103-
$viewModel->setVariable('error_message', $ex->getMessage());
103+
$viewModel->setVariable('errorMessage', $ex->getMessage());
104104
}
105105

106106
return $viewModel;
@@ -120,10 +120,10 @@ public function organizationAction()
120120
];
121121

122122

123-
$viewModel = new ViewModel(array(
123+
$viewModel = new ViewModel([
124124
'repositories' => [],
125125
'error_message' => '',
126-
));
126+
]);
127127
$viewModel->setTerminal(true);
128128
$viewModel->setTemplate('zf-module/index/index.phtml');
129129

@@ -132,7 +132,7 @@ public function organizationAction()
132132
$repositories = $this->fetchModules($repos);
133133
$viewModel->setVariable('repositories', $repositories);
134134
} catch (GithubException $ex) {
135-
$viewModel->setVariable('error_message', $ex->getMessage());
135+
$viewModel->setVariable('errorMessage', $ex->getMessage());
136136
}
137137

138138
return $viewModel;

module/ZfModule/view/zf-module/index/index.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<?php if (!empty($this->error_message)): ?>
2-
<div class="alert alert-block"><?php echo $this->escapeHtml($this->error_message); ?></div>
1+
<?php if (!empty($this->errorMessage)): ?>
2+
<div class="alert alert-block"><?php echo $this->escapeHtml($this->errorMessage); ?></div>
33
<?php elseif (empty($this->repositories)): ?>
44
<div class="alert alert-block">No modules found</div>
55
<?php endif; ?>

0 commit comments

Comments
 (0)