Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Commit

Permalink
PSR4 and naming convention standardisation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshepherd-hydrant committed Oct 29, 2015
1 parent b2ad6a6 commit e4b8371
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"minimum-stability": "stable",
"license": "GPL-3.0",
"autoload": {
"psr-0": {
"": "src/"
"psr-4": {
"Snider\\CloudDns\\": "src/"
}
},
"authors": [
Expand Down Expand Up @@ -48,4 +48,4 @@
"url": "https://github.com/snider/php-cloudDNS"
}
]
}
}
12 changes: 6 additions & 6 deletions src/rackDNS.php → src/RackDns.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php namespace Snider\CloudDns;

/**
* NOTE: THE API OF THE create_domain() FUNCTION HAS BEEN UPDATED AND YOU WILL NEED TO UPDATE ITS USE IN YOUR CODE
*
Expand Down Expand Up @@ -29,9 +30,9 @@
* @contributor Alon Ben David @ CoolGeex.com
* @contributor zeut @ GitHub - reported a fix for limiting... totally forgot that bit!
* @contributor idfbobby @ github - updated the create_domain() function to include comments and ttl
*/
*/

class rackDNS
class RackDns
{

private $apiEndpoint;
Expand Down Expand Up @@ -401,7 +402,7 @@ public function domain_export($domainID = false)

$call = $this->makeApiCall('/status' . array_pop($url));
}

$callbackUrl = $call['callbackUrl'];
$results = $this->makeCallback($callbackUrl, true);
return $results;
Expand Down Expand Up @@ -746,7 +747,7 @@ private function makeApiCall($url, $postData = NULL, $method = NULL)

return json_decode($jsonResponse, true);
}

/**
* Makes a call to the callbackUrl returned from an API call
*
Expand Down Expand Up @@ -944,4 +945,3 @@ public function getLastResponseStatus()
}

}

0 comments on commit e4b8371

Please sign in to comment.