[Pkg-owncloud-commits] [php-sabre-vobject] 14/65: Fixed short array syntax for PHP < 5.4
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:57:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit e08b33a5282e0f7dcd347d1444a8292918b59392
Author: Rick den Haan <rick at capirussa.nl>
Date: Thu Jan 22 20:29:04 2015 +0100
Fixed short array syntax for PHP < 5.4
---
bin/fetch_windows_zones.php | 2 +-
bin/generate_vcards | 40 ++++++++++++++++++++--------------------
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/bin/fetch_windows_zones.php b/bin/fetch_windows_zones.php
index 7cd638c..a577c52 100755
--- a/bin/fetch_windows_zones.php
+++ b/bin/fetch_windows_zones.php
@@ -10,7 +10,7 @@ $data = file_get_contents($windowsZonesUrl);
$xml = simplexml_load_string($data);
-$map = [];
+$map = array();
foreach($xml->xpath('//mapZone') as $mapZone) {
diff --git a/bin/generate_vcards b/bin/generate_vcards
index 6520359..638f63b 100755
--- a/bin/generate_vcards
+++ b/bin/generate_vcards
@@ -64,10 +64,10 @@ fwrite(STDERR, "Generating " . $count . " vcards in vCard 4.0 format\n");
* Send us PR's and don't be shy adding your own first and last name for fun.
*/
-$sets = [
- "nl" => [
+$sets = array(
+ "nl" => array(
"country" => "Netherlands",
- "boys" => [
+ "boys" => array(
"Anno",
"Bram",
"Daan",
@@ -84,8 +84,8 @@ $sets = [
"Sem",
"Sibrand",
"Willem",
- ],
- "girls" => [
+ ),
+ "girls" => array(
"Celia",
"Emma",
"Fenna",
@@ -99,8 +99,8 @@ $sets = [
"Sophie",
"Tess",
"Zoë",
- ],
- "last" => [
+ ),
+ "last" => array(
"Bakker",
"Bos",
"De Boer",
@@ -117,11 +117,11 @@ $sets = [
"Van den Berg",
"Visser",
"Vos",
- ],
- ],
- "us" => [
+ ),
+ ),
+ "us" => array(
"country" => "United States",
- "boys" => [
+ "boys" => array(
"Aiden",
"Alexander",
"Charles",
@@ -140,8 +140,8 @@ $sets = [
"Robert",
"Thomas",
"William",
- ],
- "girls" => [
+ ),
+ "girls" => array(
"Ava",
"Barbara",
"Chloe",
@@ -163,8 +163,8 @@ $sets = [
"Sophia",
"Susan",
"Zoe",
- ],
- "last" => [
+ ),
+ "last" => array(
"Smith",
"Johnson",
"Williams",
@@ -185,9 +185,9 @@ $sets = [
"Garcia",
"Martinez",
"Robinson",
- ],
- ],
-];
+ ),
+ ),
+);
$current = 0;
@@ -208,11 +208,11 @@ while($current < $count) {
$country = array_rand($sets);
$gender = mt_rand(0,1)?'girls':'boys';
- $vcard = new Component\VCard([
+ $vcard = new Component\VCard(array(
'VERSION' => '4.0',
'FN' => $r($sets[$country][$gender]) . ' ' . $r($sets[$country]['last']),
'UID' => UUIDUtil::getUUID(),
- ]);
+ ));
$bdayRatio = mt_rand(0,9);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list