@@ -193,7 +193,7 @@  | 
                                                    ||
| 193 | 193 | * @param bool $isCommand Boolean flag which indicates that passed entity should  | 
                                                        
| 194 | 194 | * be treated as a command  | 
                                                        
| 195 | 195 | *  | 
                                                        
| 196 | - * @return bool  | 
                                                        |
| 196 | + * @return boolean|null  | 
                                                        |
| 197 | 197 | */  | 
                                                        
| 198 | 198 | protected function triggerEvent(AbstractEntity $entity, AbstractEntity $parent = null, $isCommand = false)  | 
                                                        
| 199 | 199 |      { | 
                                                        
@@ -276,7 +276,7 @@  | 
                                                    ||
| 276 | 276 | |
| 277 | 277 | $className = $this->config->getCommandNamespace() . "\\" . $name;  | 
                                                        
| 278 | 278 |          } elseif ($entity instanceof AbstractEntity) { | 
                                                        
| 279 | - $className = $this->config->getEntityEventNamespace() . "\\". $entity->getEntityType();  | 
                                                        |
| 279 | + $className = $this->config->getEntityEventNamespace() . "\\" . $entity->getEntityType();  | 
                                                        |
| 280 | 280 | }  | 
                                                        
| 281 | 281 | |
| 282 | 282 |          if ($className && class_exists($className)) { | 
                                                        
@@ -42,7 +42,7 @@ discard block  | 
                                                    ||
| 42 | 42 | }  | 
                                                        
| 43 | 43 | |
| 44 | 44 | /**  | 
                                                        
| 45 | - * @return mixed  | 
                                                        |
| 45 | + * @return string  | 
                                                        |
| 46 | 46 | */  | 
                                                        
| 47 | 47 | public function getName()  | 
                                                        
| 48 | 48 |      { | 
                                                        
@@ -50,7 +50,7 @@ discard block  | 
                                                    ||
| 50 | 50 | }  | 
                                                        
| 51 | 51 | |
| 52 | 52 | /**  | 
                                                        
| 53 | - * @return mixed  | 
                                                        |
| 53 | + * @return string  | 
                                                        |
| 54 | 54 | */  | 
                                                        
| 55 | 55 | public function getArgs()  | 
                                                        
| 56 | 56 |      { | 
                                                        
@@ -76,6 +76,9 @@ discard block  | 
                                                    ||
| 76 | 76 | return $command;  | 
                                                        
| 77 | 77 | }  | 
                                                        
| 78 | 78 | |
| 79 | + /**  | 
                                                        |
| 80 | + * @param string $command  | 
                                                        |
| 81 | + */  | 
                                                        |
| 79 | 82 | protected function getArgsFromText($command, $text)  | 
                                                        
| 80 | 83 |      { | 
                                                        
| 81 | 84 | $length = strlen(static::PREFIX . $command);  | 
                                                        
@@ -4,7 +4,7 @@  | 
                                                    ||
| 4 | 4 | |
| 5 | 5 | class Command extends AbstractEntity  | 
                                                        
| 6 | 6 |  { | 
                                                        
| 7 | - const ENTITY_TYPE = 'Command';  | 
                                                        |
| 7 | + const ENTITY_TYPE = 'Command';  | 
                                                        |
| 8 | 8 | |
| 9 | 9 | const PREFIX = '/';  | 
                                                        
| 10 | 10 | |
@@ -134,7 +134,7 @@  | 
                                                    ||
| 134 | 134 |      { | 
                                                        
| 135 | 135 |          foreach ($this->supportedProperties as $propertyName => $isRequired) { | 
                                                        
| 136 | 136 |              if ($isRequired === true && empty($properties[$propertyName])) { | 
                                                        
| 137 | -                throw new Critical('Required property "'.$propertyName.'" is not set!'); | 
                                                        |
| 137 | +                throw new Critical('Required property "' . $propertyName . '" is not set!'); | 
                                                        |
| 138 | 138 | }  | 
                                                        
| 139 | 139 | }  | 
                                                        
| 140 | 140 | }  | 
                                                        
@@ -40,7 +40,7 @@  | 
                                                    ||
| 40 | 40 | echo sprintf(  | 
                                                        
| 41 | 41 | $pattern,  | 
                                                        
| 42 | 42 | $e->getMessage()  | 
                                                        
| 43 | - ). "\n";  | 
                                                        |
| 43 | + ) . "\n";  | 
                                                        |
| 44 | 44 | }  | 
                                                        
| 45 | 45 | |
| 46 | 46 |          if ($e instanceof Fatal) { | 
                                                        
@@ -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 | |