style changes

I'll do the nitpicks, sorry @jdelong.
Esse commit está contido em:
Paul Tarjan
2013-04-19 16:51:14 -07:00
commit de Sara Golemon
commit be05d0d87a
14 arquivos alterados com 11 adições e 29 exclusões
+6 -7
Ver Arquivo
@@ -58,14 +58,13 @@ function error($message) {
function hphp_home() {
static $ret;
if (!$ret) {
$top_level = system('git rev-parse --show-toplevel', $status);
if ($status === 0) {
return $ret = rtrim($top_level, '/');
}
error("Couldn't determine the root of your fbcode repository.\n");
if ($ret) { return $ret; }
$top_level = system('git rev-parse --show-toplevel', $status);
if ($status === 0) {
return $ret = rtrim($top_level, '/');
}
return $ret;
error("Couldn't determine the root of your fbcode repository.\n");
}
function idx($array, $key, $default = null) {
-2
Ver Arquivo
@@ -1,7 +1,5 @@
<?php
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
$d = dir(__DIR__."/../../sample_dir/");
echo "Path: " . $d->path . "\n";
$files = array(); // order changes per machine
-2
Ver Arquivo
@@ -1,7 +1,5 @@
<?php
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
$sample_dir = __DIR__.'/../../sample_dir';
$files = array();
-2
Ver Arquivo
@@ -1,7 +1,5 @@
<?php
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
$dir = new DirectoryIterator(__DIR__.'/../../sample_dir');
$files = array(); // order changes per machine
while($dir->valid()) {
-3
Ver Arquivo
@@ -1,7 +1,5 @@
<?php
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
$ite=new RecursiveDirectoryIterator(__DIR__.'/../../sample_dir/');
$bytestotal=0;
$nbfiles=0;
@@ -15,5 +13,4 @@ foreach ($ite as $filename=>$cur) {
}
asort($files);
var_dump(array_values($files));
$bytestotal=number_format($bytestotal);
echo "Total: $nbfiles files, $bytestotal bytes\n";
+2 -2
Ver Arquivo
@@ -1,6 +1,6 @@
array(5) {
[0]=>
string(%d) "%s../../sample_dir/dir => 18
string(%d) "%s../../sample_dir/dir => %d
"
[1]=>
string(%d) "%s../../sample_dir/empty => 0
@@ -15,4 +15,4 @@ array(5) {
string(%d) "%s../../sample_dir/symlink => 3
"
}
Total: 5 files, 483 bytes
Total: 5 files, %d bytes
-2
Ver Arquivo
@@ -1,7 +1,5 @@
<?php
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
$ite=new RecursiveDirectoryIterator(__DIR__.'/../../sample_dir/');
$bytestotal=0;
$nbfiles=0;
-2
Ver Arquivo
@@ -1,7 +1,5 @@
<?php
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
$path = __DIR__."/../../sample_dir/";
$files = array(); // order changes per machine
foreach (new RecursiveIteratorIterator(
-2
Ver Arquivo
@@ -1,7 +1,5 @@
<?php
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
$directory = __DIR__."/../../sample_dir";
$fileSPLObjects = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($directory),
-2
Ver Arquivo
@@ -1,7 +1,5 @@
<?php
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
function getFiles(&$rdi,$depth=0) {
if (!is_object($rdi)) return;
$files = array(); // order changes per machine
+1 -1
Ver Arquivo
@@ -9,7 +9,7 @@
}
function test($options) {
return new MySoap(__DIR__.'/../../test.wsdl', $options);
return new MySoap(__DIR__.'/1809.wsdl', $options);
}
var_dump(test(array('foo' => 'bar'))->pub);
+1 -1
Ver Arquivo
@@ -23147,7 +23147,7 @@ bool TestCodeRun::TestExtSoap() {
" }"
"}"
"function test($options) {"
" return new MySoap('test/test.wsdl', $options);"
" return new MySoap('test/slow/ext_soap/1809.wsdl', $options);"
"}"
"var_dump(test(array('foo' => 'bar'))->pub);");
+1 -1
Ver Arquivo
@@ -129,7 +129,7 @@ bool TestExtSoap::test_SoapServerArrayParam() {
bool TestExtSoap::test_SoapServerWSDL() {
m_server = p_SoapServer(NEWOBJ(c_SoapServer)());
m_server->t___construct("test/test.wsdl",
m_server->t___construct("test/slow/ext_soap/1809.wsdl",
CREATE_MAP1("uri", "http://testuri.org"));
m_server->t_addfunction("Add");