Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some code formatting

  • Loading branch information...
commit 66971875d77f80d321b21863926f8503613248e4 1 parent ad9c4e0
@dluc dluc authored
Showing with 3 additions and 98 deletions.
  1. +0 −2  api.php
  2. +0 −2  mashape/configuration/helpers/loadMethods.php
  3. +0 −2  mashape/configuration/helpers/loadObjects.php
  4. +0 −2  mashape/configuration/restConfiguration.php
  5. +0 −2  mashape/configuration/restConfigurationLoader.php
  6. +0 −2  mashape/configuration/restField.php
  7. +0 −2  mashape/configuration/restMethod.php
  8. +0 −2  mashape/configuration/restObject.php
  9. +0 −2  mashape/exceptions/exceptionMessages.php
  10. +0 −2  mashape/exceptions/mashapeException.php
  11. +0 −2  mashape/init/headers.php
  12. +0 −1  mashape/init/init.php
  13. +0 −2  mashape/init/json.php
  14. +0 −2  mashape/init/session.php
  15. +3 −6 mashape/json/jsonImpl.php
  16. +0 −2  mashape/json/jsonUtils.php
  17. +0 −2  mashape/mashape.php
  18. +0 −2  mashape/mashapeAPIError.php
  19. +0 −2  mashape/methods/IMethodHandler.php
  20. +0 −2  mashape/methods/call/call.php
  21. +0 −2  mashape/methods/call/helpers/callHelper.php
  22. +0 −2  mashape/methods/call/helpers/routeHelper.php
  23. +0 −4 mashape/methods/call/helpers/serializeArray.php
  24. +0 −2  mashape/methods/call/helpers/serializeMethodResult.php
  25. +0 −2  mashape/methods/call/helpers/serializeObject.php
  26. +0 −2  mashape/methods/call/helpers/validateParameters.php
  27. +0 −3  mashape/methods/discover/discover.php
  28. +0 −2  mashape/methods/discover/helpers/discoverMethods.php
  29. +0 −2  mashape/methods/discover/helpers/discoverObjects.php
  30. +0 −2  mashape/methods/discover/helpers/updateHtaccess.php
  31. +0 −2  mashape/methods/handler.php
  32. +0 −3  mashape/net/httpUtils.php
  33. +0 −2  mashape/settings.php
  34. +0 −4 mashape/utils/arrayUtils.php
  35. +0 −3  mashape/utils/routeUtils.php
  36. +0 −1  mashape/xml/xmlParser.php
  37. +0 −3  mashape/xml/xmlParserUtils.php
  38. +0 −2  tests/configuration/restConfigurationLoaderTest.php
  39. +0 −2  tests/json/jsonImplTest.php
  40. +0 −2  tests/json/jsonUtilsTest.php
  41. +0 −2  tests/methods/call/helpers/callHelperTest.php
  42. +0 −2  tests/methods/discover/discoverTest.php
  43. +0 −2  tests/net/httpUtilsTest.php
  44. +0 −2  tests/utils/arrayUtilsTest.php
View
2  api.php
@@ -24,5 +24,3 @@ public function sayHello($name) {
// Init the library
MashapeHandler::handleApi(new ComponentAPI(), SERVER_KEY);
-
-?>
View
2  mashape/configuration/helpers/loadMethods.php
@@ -157,5 +157,3 @@ function existMethod($methods, $name) {
}
return false;
}
-
-?>
View
2  mashape/configuration/helpers/loadObjects.php
@@ -118,5 +118,3 @@ function existFieldName($fields, $fieldName) {
}
return false;
}
-
-?>
View
2  mashape/configuration/restConfiguration.php
@@ -41,5 +41,3 @@ public function setObjects($x) {
$this->objects = $x;
}
}
-
-?>
View
2  mashape/configuration/restConfigurationLoader.php
@@ -103,5 +103,3 @@ private static function getXmlDoc($path) {
}
}
-
-?>
View
2  mashape/configuration/restField.php
@@ -62,5 +62,3 @@ public function setOptional($x) {
$this->optional = $x;
}
}
-
-?>
View
2  mashape/configuration/restMethod.php
@@ -69,5 +69,3 @@ public function isArray() {
return $this->array;
}
}
-
-?>
View
2  mashape/configuration/restObject.php
@@ -41,5 +41,3 @@ public function setFields($x) {
$this->fields = $x;
}
}
-
-?>
View
2  mashape/exceptions/exceptionMessages.php
@@ -92,5 +92,3 @@
define("EXCEPTION_INVALID_APIKEY_CODE", 2001);
define("EXCEPTION_EXCEEDED_LIMIT_CODE", 2002);
define("EXCEPTION_SYSTEM_ERROR_CODE", 2000);
-
-?>
View
2  mashape/exceptions/mashapeException.php
@@ -33,5 +33,3 @@ function __construct($message, $code) {
}
}
-
-?>
View
2  mashape/init/headers.php
@@ -35,5 +35,3 @@ function apache_request_headers() {
return $headers;
}
}
-
-?>
View
1  mashape/init/init.php
@@ -32,4 +32,3 @@
define("LIBRARY_LANGUAGE", "PHP");
define("LIBRARY_VERSION", "V06");
-?>
View
2  mashape/init/json.php
@@ -49,5 +49,3 @@ function json_encode($content, $assoc=false) {
return $json->encode($content);
}
}
-
-?>
View
2  mashape/init/session.php
@@ -26,5 +26,3 @@
// Start the session. If already started do nothing.
if (!session_id()) session_start();
-
-?>
View
9 mashape/json/jsonImpl.php
@@ -768,7 +768,7 @@ function isError($data, $code = null)
if (class_exists('pear')) {
return PEAR::isError($data, $code);
} elseif (is_object($data) && (get_class($data) == 'services_json_error' ||
- is_subclass_of($data, 'services_json_error'))) {
+ is_subclass_of($data, 'services_json_error'))) {
return true;
}
@@ -781,7 +781,7 @@ function isError($data, $code = null)
class Services_JSON_Error extends PEAR_Error
{
function Services_JSON_Error($message = 'unknown error', $code = null,
- $mode = null, $options = null, $userinfo = null)
+ $mode = null, $options = null, $userinfo = null)
{
parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
}
@@ -795,12 +795,9 @@ function Services_JSON_Error($message = 'unknown error', $code = null,
class Services_JSON_Error
{
function Services_JSON_Error($message = 'unknown error', $code = null,
- $mode = null, $options = null, $userinfo = null)
+ $mode = null, $options = null, $userinfo = null)
{
}
}
-
}
-
-?>
View
2  mashape/json/jsonUtils.php
@@ -54,5 +54,3 @@ public static function removeLastChar($array, $object) {
return $result;
}
}
-
-?>
View
2  mashape/mashape.php
@@ -76,5 +76,3 @@ public static function getErrors() {
return self::$errors;
}
}
-
-?>
View
2  mashape/mashapeAPIError.php
@@ -40,5 +40,3 @@ public function getMessage() {
return $this->message;
}
}
-
-?>
View
2  mashape/methods/IMethodHandler.php
@@ -27,5 +27,3 @@
interface IMethodHandler {
public function handle($instance, $serverKey, $parameters, $httpRequestMethod);
}
-
-?>
View
2  mashape/methods/call/call.php
@@ -136,6 +136,4 @@ private function validateRequest($serverKey, $token, $method, $language, $versio
}
}
}
-
}
-?>
View
2  mashape/methods/call/helpers/callHelper.php
@@ -61,5 +61,3 @@ function doCall($method, $parameters, $instance, $serverKey) {
$resultJson .= '}';
return $resultJson;
}
-
-?>
View
2  mashape/methods/call/helpers/routeHelper.php
@@ -121,5 +121,3 @@ function findRoute($requestUri, &$routeParameters, $httpRequestMethod, $serverKe
return $routeMethod;
}
-
-?>
View
4 mashape/methods/call/helpers/serializeArray.php
@@ -68,7 +68,3 @@ function serializeArray($result, $instance, $isSimpleResult, $serverKey) {
function checkIfSimpleResult($value) {
//if (is_string($value) || is_bool($value) || is_numeric($value) || )
}
-
-
-
-?>
View
2  mashape/methods/call/helpers/serializeMethodResult.php
@@ -76,5 +76,3 @@ function isSimpleResult($method) {
}
return true;
}
-
-?>
View
2  mashape/methods/call/helpers/serializeObject.php
@@ -120,5 +120,3 @@ function isSimpleField($field) {
$object = $field->getObject();
return empty($object);
}
-
-?>
View
2  mashape/methods/call/helpers/validateParameters.php
@@ -82,5 +82,3 @@ function validateCallParameters($method, $parameters, $instance) {
return $callParameters;
}
-
-?>
View
3  mashape/methods/discover/discover.php
@@ -94,7 +94,4 @@ private function validateRequest($serverKey) {
return false;
}
}
-
}
-
-?>
View
2  mashape/methods/discover/helpers/discoverMethods.php
@@ -108,5 +108,3 @@ function serializeParameters($method, $instance) {
$result .= ']';
return $result;
}
-
-?>
View
2  mashape/methods/discover/helpers/discoverObjects.php
@@ -84,5 +84,3 @@ function discoverObjects($configuration, $objectsFound) {
return $result;
}
-
-?>
View
2  mashape/methods/discover/helpers/updateHtaccess.php
@@ -61,5 +61,3 @@ function parseRoute($route) {
preg_match_all($pattern, $route, $matches, PREG_OFFSET_CAPTURE);
return $matches;
}
-
-?>
View
2  mashape/methods/handler.php
@@ -164,5 +164,3 @@ public static function handleAPI($instance, $serverKey) {
}
}
}
-
-?>
View
3  mashape/net/httpUtils.php
@@ -73,7 +73,4 @@ private static function getRealIpAddr()
}
return $ip;
}
-
}
-
-?>
View
2  mashape/settings.php
@@ -28,5 +28,3 @@
// By default it's "mashape_api_configuration"
define("SESSION_VARNAME", "mashape_api_configuration");
define("UID", "mashape_uid");
-
-?>
View
4 mashape/utils/arrayUtils.php
@@ -38,9 +38,5 @@ public function isAssociative($array) {
return false;
}
return array_keys($array) !== range(0, count($array) - 1);
-
}
-
}
-
-?>
View
3  mashape/utils/routeUtils.php
@@ -38,7 +38,4 @@ public static function isRoutePlaceholder($val) {
}
return false;
}
-
}
-
-?>
View
1  mashape/xml/xmlParser.php
@@ -432,4 +432,3 @@ function DeleteChildren()
}
}
}
-?>
View
3  mashape/xml/xmlParserUtils.php
@@ -39,7 +39,4 @@ public static function getChildren($document, $tagName) {
}
return $result;
}
-
}
-
-?>
View
2  tests/configuration/restConfigurationLoaderTest.php
@@ -37,5 +37,3 @@ function testLoadConfiguration() {
$this->assertEquals(0, count($configuration->getObjects()));
}
}
-
-?>
View
2  tests/json/jsonImplTest.php
@@ -40,5 +40,3 @@ function testSerializeError() {
$this->assertEquals($obj->code, 2);
}
}
-
-?>
View
2  tests/json/jsonUtilsTest.php
@@ -35,5 +35,3 @@ function testSerializeError() {
$this->assertEquals('{"errors":[{"message":"this is a \"great\" error","code":2}], "result":null}', JsonUtils::serializeError('this is a "great" error', 2));
}
}
-
-?>
View
2  tests/methods/call/helpers/callHelperTest.php
@@ -305,5 +305,3 @@ public function touchError() {
return null;
}
}
-
-?>
View
2  tests/methods/discover/discoverTest.php
@@ -55,5 +55,3 @@ public function sayHello($name) {
return "Hi, " . $name;
}
}
-
-?>
View
2  tests/net/httpUtilsTest.php
@@ -33,5 +33,3 @@ function testMakeHttpRequest() {
$this->assertFalse(empty($response));
}
}
-
-?>
View
2  tests/utils/arrayUtilsTest.php
@@ -36,5 +36,3 @@ function testIsAssociative() {
$this->assertTrue(ArrayUtils::isAssociative(array("key1"=>"value1", "key2"=>"value2")));
}
}
-
-?>
Please sign in to comment.
Something went wrong with that request. Please try again.