@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | class UserProfilePhotos extends AbstractEntity |
6 | 6 | { |
7 | - const ENTITY_TYPE = 'UserProfilePhotos'; |
|
7 | + const ENTITY_TYPE = 'UserProfilePhotos'; |
|
8 | 8 | |
9 | 9 | protected $total_count; |
10 | 10 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | class Message extends AbstractEntity |
6 | 6 | { |
7 | - const ENTITY_TYPE = 'Message'; |
|
7 | + const ENTITY_TYPE = 'Message'; |
|
8 | 8 | |
9 | 9 | protected $messageType = self::ENTITY_TYPE; |
10 | 10 |
@@ -159,7 +159,7 @@ |
||
159 | 159 | } |
160 | 160 | |
161 | 161 | /** |
162 | - * @return array |
|
162 | + * @return MessageEntityArray |
|
163 | 163 | */ |
164 | 164 | public function getEntities() |
165 | 165 | { |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Teebot\Entity; |
4 | 4 | |
5 | -use Teebot\Command\Handler; |
|
6 | -use Teebot\Config; |
|
7 | - |
|
8 | 5 | class Message extends AbstractEntity |
9 | 6 | { |
10 | 7 | const ENTITY_TYPE = 'Message'; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | protected function initFileForUpload() |
22 | 22 | { |
23 | 23 | if (!$this->isFileReadable($this->file)) { |
24 | - throw new Critical('File "' . $this->file . '" is not readable or does not exist!'); |
|
24 | + throw new Critical('File "'.$this->file.'" is not readable or does not exist!'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | return new \CURLFile($this->file); |
@@ -90,13 +90,13 @@ |
||
90 | 90 | return null; |
91 | 91 | } |
92 | 92 | |
93 | - return $basePath . $this->file_path; |
|
93 | + return $basePath.$this->file_path; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | public function download($storePath) |
97 | 97 | { |
98 | 98 | if (file_exists($storePath) && !is_writable($storePath)) { |
99 | - throw new Critical('File "' . $storePath . '" is already exist!"'); |
|
99 | + throw new Critical('File "'.$storePath.'" is already exist!"'); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | $filePath = $this->getFullPath(); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | protected function getSetGetMethodName($prefix, $name) |
27 | 27 | { |
28 | - $setter = $prefix . str_replace("_", "", ucwords($name, "_")); |
|
28 | + $setter = $prefix.str_replace("_", "", ucwords($name, "_")); |
|
29 | 29 | |
30 | 30 | if (method_exists($this, $setter)) { |
31 | 31 | return $setter; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | echo sprintf( |
47 | 47 | $pattern, |
48 | 48 | $e->getMessage() |
49 | - ). "\n"; |
|
49 | + )."\n"; |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | if ($e instanceof Fatal) { |
@@ -150,7 +150,7 @@ |
||
150 | 150 | ); |
151 | 151 | |
152 | 152 | if (!empty($args)) { |
153 | - $url .= '?' . $args; |
|
153 | + $url .= '?'.$args; |
|
154 | 154 | } |
155 | 155 | |
156 | 156 | return $url; |
@@ -137,7 +137,7 @@ |
||
137 | 137 | $entity = null; |
138 | 138 | |
139 | 139 | if (!class_exists($entityClass)) { |
140 | - Output::log(new Critical('Entity "' . $entityClass . '" does not exists or not supported yet!')); |
|
140 | + Output::log(new Critical('Entity "'.$entityClass.'" does not exists or not supported yet!')); |
|
141 | 141 | } |
142 | 142 | /** @var AbstractEntity $entity */ |
143 | 143 | $entity = new $entityClass($rawItemData); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @author Stan Drozdov <[email protected]> |
6 | 6 | */ |
7 | 7 | |
8 | -require_once realpath(__DIR__) . '/vendor/autoload.php'; |
|
8 | +require_once realpath(__DIR__).'/vendor/autoload.php'; |
|
9 | 9 | |
10 | 10 | $client = new \Teebot\Client(['n' => 'Example']); |
11 | 11 | $response = $client->webhook(); |