Skip to content

Commit

Permalink
1.4.1 psr-4
Browse files Browse the repository at this point in the history
  • Loading branch information
zelenin committed Jan 10, 2014
1 parent 854e18e commit 80e9d9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "zelenin/smsru",
"description": "PHP-класс для работы с api сервиса [sms.ru](http://sms.ru)",
"version": "1.4.0",
"version": "1.4.1",
"type": "library",
"keywords": ["sms", "sms.ru"],
"keywords": ["sms", "sms.ru", "api"],
"homepage": "https://github.com/zelenin/sms_ru",
"time": "2013-10-31",
"time": "2014-01-10",
"license": "MIT",
"authors": [
{
Expand All @@ -23,7 +23,7 @@
"php": ">=5.3.0"
},
"autoload": {
"psr-0": {
"psr-4": {
"Zelenin\\": "src/"
}
},
Expand Down
12 changes: 6 additions & 6 deletions src/Zelenin/smsru.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
* @author Aleksandr Zelenin <aleksandr@zelenin.me>
* @link https://github.com/zelenin/sms_ru
* @license MIT
* @version 1.4.0
* @version 1.4.1
*/

namespace Zelenin;

class smsru
{
const VERSION = '1.4.0';
const VERSION = '1.4.1';
const HOST = 'http://sms.ru/';
const SEND = 'sms/send?';
const STATUS = 'sms/status?';
Expand Down Expand Up @@ -383,9 +383,9 @@ private function getSha512()

private function getAnswer( $key, $code )
{
if ( isset( $this->response_code[$key][$code] ) ) {
return $this->response_code[$key][$code];
}
return isset( $this->response_code[$key][$code] )
? $this->response_code[$key][$code]
: null;
}

private function curl( $url, $params = array() )
Expand All @@ -402,4 +402,4 @@ private function curl( $url, $params = array() )

return $result;
}
}
}

0 comments on commit 80e9d9d

Please sign in to comment.