Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jadell committed Mar 7, 2013
1 parent 0cb4895 commit 437b6ea
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/Everyman/Neo4j/Transport/Curl.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Everyman\Neo4j\Transport;
use Everyman\Neo4j\Transport as BaseTransport,
Everyman\Neo4j\Version;
Everyman\Neo4j\Version;

/**
* Class for communicating with an HTTP JSON endpoint
Expand Down Expand Up @@ -64,16 +64,16 @@ public function makeRequest($method, $path, $data=array())
break;

case self::POST :
case self::PUT :
$dataString = $this->encodeData($data);
$options[CURLOPT_CUSTOMREQUEST] = $method;
$options[CURLOPT_POSTFIELDS] = $dataString;
$options[CURLOPT_HTTPHEADER][] = 'Content-Length: '.strlen($dataString);

if (self::POST == $method) {
$options[CURLOPT_POST] = true;
}
break;
case self::PUT :
$dataString = $this->encodeData($data);
$options[CURLOPT_CUSTOMREQUEST] = $method;
$options[CURLOPT_POSTFIELDS] = $dataString;
$options[CURLOPT_HTTPHEADER][] = 'Content-Length: '.strlen($dataString);

if (self::POST == $method) {
$options[CURLOPT_POST] = true;
}
break;
}

$ch = $this->getHandle();
Expand Down

0 comments on commit 437b6ea

Please sign in to comment.