Skip to content

Commit 641f36a

Browse files
committed
Fix short array syntax code
1 parent 37ad070 commit 641f36a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

bin/install.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct() {
2121
$this->tmp_dir = __DIR__ . '/tmp';
2222
@mkdir($this->tmp_dir);
2323

24-
$this->packages = [
24+
$this->packages = array(
2525
'translations' => array(
2626
'site' => 'github',
2727
'user' => 'bcit-ci',
@@ -81,7 +81,7 @@ public function __construct() {
8181
'dir' => 'controllers',
8282
'msg' => 'See https://github.com/kenjis/codeigniter3-filename-checker',
8383
),
84-
];
84+
);
8585
}
8686

8787
public function usage($self)
@@ -152,15 +152,15 @@ private function downloadFromGithub($package, $version)
152152
if (is_string($dir)) {
153153
$src = realpath(dirname($filepath) . "/$repos-$version/$pre$dir");
154154
$dst = realpath(__DIR__ . "/../application/$dir");
155-
return [$src, $dst];
155+
return array($src, $dst);
156156
}
157157

158158
foreach ($dir as $directory) {
159159
$src[] = realpath(dirname($filepath) . "/$repos-$version/$pre$directory");
160160
@mkdir(__DIR__ . "/../application/$directory");
161161
$dst[] = realpath(__DIR__ . "/../application/$directory");
162162
}
163-
return [$src, $dst];
163+
return array($src, $dst);
164164
}
165165

166166
private function downloadFromBitbucket($package, $version)
@@ -177,15 +177,15 @@ private function downloadFromBitbucket($package, $version)
177177
if (is_string($dir)) {
178178
$src = realpath(dirname($filepath) . "/$dirname/$dir");
179179
$dst = realpath(__DIR__ . "/../application/$dir");
180-
return [$src, $dst];
180+
return array($src, $dst);
181181
}
182182

183183
foreach ($dir as $directory) {
184184
$src[] = realpath(dirname($filepath) . "/$dirname/$directory");
185185
@mkdir(__DIR__ . "/../application/$directory");
186186
$dst[] = realpath(__DIR__ . "/../application/$directory");
187187
}
188-
return [$src, $dst];
188+
return array($src, $dst);
189189
}
190190

191191
private function download($url)

0 commit comments

Comments
 (0)