Commit a461ac76 authored by MBoretto's avatar MBoretto

resolve conflict

parents 6baf1730 9c43213f
......@@ -22,12 +22,14 @@ If you develop a new feature please create a new branch.
Version
-------
Version number: 0.#version.#hotfix
Further code convention adopted
-------------------------------
- Each method and class is documented with a docblock
Example for a function or methods:
```
/**
......@@ -39,10 +41,9 @@ Example for a function or methods:
*/
```
- Each file is provided with the following header:
```
/*
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
......@@ -53,10 +54,9 @@ Example for a function or methods:
```
- No empty line after class declaration
- No empty line after `<?php`
- Last element of array must end with coma
- One empty line after the dockblock header
- Array and use statement must be written in alphabetical order
- Last element of a multi-line array must be followed by a comma
- One empty line after the docblock header
- Array elements and `use` statements should be written in a logical order, preferrably alphabetically
- Use [] instead of array()
- Use '' for string
- Use single quotes (`'`) for string
- Leave space in front and behind the concatenation operator `.`
......@@ -15,8 +15,7 @@ use Longman\TelegramBot\Entities\Update;
use Longman\TelegramBot\Entities\User;
/**
* Class Commad.
*
* Class Command
*/
abstract class Command
{
......@@ -180,8 +179,8 @@ abstract class Command
/**
* Get command config
*
* Look for paramenter $name if found return it, if not return null.
* If $name is not set return the all params setted
* Look for parameter $name if found return it, if not return null.
* If $name is not set return the all set params
*
* @param string|null $name
* @return mixed
......
......@@ -7,6 +7,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\TelegramBot;
define('BASE_PATH', dirname(__FILE__));
......@@ -61,8 +62,7 @@ class Telegram
/**
* Row custom update (json)
*
* Used to inject a custom update fot testing purpose in the
* request class
* Used to inject a custom update for testing purposes in the Request class
*
* @var string
*/
......@@ -376,8 +376,8 @@ class Telegram
/**
* Handle bot request from wekhook
*
* @todo Should return the executed command result (true,false) but we shoud check if all commands return a value.
* Furthermore this function is the tween of handleGetUpdates for webhook, but the first return the ServerResponse
* @todo Should return the executed command result (true|false) but we shoud check if all commands return a value.
* Furthermore this function is the twin of handleGetUpdates for webhook, but the first returns the ServerResponse
* instead the latter return if the command has failed or not (true|false).
* We shoud use the same convention for both.
*
......@@ -514,11 +514,11 @@ class Telegram
/**
* Get command class
*
* @todo check return
*
* @param string $command
* @param \Longman\TelegramBot\Entities\ServerResponse|null $update
*
* @TODO check return
*
* @return object
*/
public function getCommandClass($command, Update $update = null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment