Skip to content

Commit

Permalink
Merge pull request banago#234 from JayBizzle/patch-1
Browse files Browse the repository at this point in the history
Use short array syntax
  • Loading branch information
banago committed Apr 14, 2016
2 parents 9e6a56d + 280a5f3 commit c0cefb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PHPloy.php
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ public function copy($copyDirs)
$this->cli->out("<red> × {$item['path']} is copied to {$newPath}");
} elseif ($item['type'] === 'dir') {
$dirParts = explode('/', $item['path']);
$this->copy(array($fromDir.'/'.end($dirParts).'->'.$toDir.'/'.end($dirParts)));
$this->copy([$fromDir.'/'.end($dirParts).'->'.$toDir.'/'.end($dirParts)]);
}
}

Expand Down Expand Up @@ -1251,7 +1251,7 @@ public function debug($message)
*/
public function directoryToArray($directory, $recursive = true, $listDirs = false, $listFiles = true, $exclude = '')
{
$arrayItems = array();
$arrayItems = [];
$skipByExclude = false;
$handle = opendir($directory);
if ($handle) {
Expand Down

0 comments on commit c0cefb0

Please sign in to comment.