Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
b217fa7e
Unverified
Commit
b217fa7e
authored
Apr 21, 2018
by
Avtandil Kikabidze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code style
parent
f64e3154
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
4 deletions
+1
-4
Client.php
src/Http/Client.php
+1
-1
Request.php
src/Http/Request.php
+0
-1
ServerResponse.php
src/Http/ServerResponse.php
+0
-2
No files found.
src/Http/Client.php
View file @
b217fa7e
...
@@ -19,7 +19,7 @@ use Longman\TelegramBot\Telegram;
...
@@ -19,7 +19,7 @@ use Longman\TelegramBot\Telegram;
use
Longman\TelegramBot\TelegramLog
;
use
Longman\TelegramBot\TelegramLog
;
/**
/**
* Class
Reques
t
* Class
Clien
t
*
*
* @method static ServerResponse getUpdates(array $data) Use this method to receive incoming updates using long polling (wiki). An Array of Update
* @method static ServerResponse getUpdates(array $data) Use this method to receive incoming updates using long polling (wiki). An Array of Update
* objects is returned.
* objects is returned.
...
...
src/Http/Request.php
View file @
b217fa7e
...
@@ -12,7 +12,6 @@ namespace Longman\TelegramBot\Http;
...
@@ -12,7 +12,6 @@ namespace Longman\TelegramBot\Http;
use
Illuminate\Http\Request
as
LaravelRequest
;
use
Illuminate\Http\Request
as
LaravelRequest
;
class
Request
extends
LaravelRequest
class
Request
extends
LaravelRequest
{
{
...
...
src/Http/ServerResponse.php
View file @
b217fa7e
...
@@ -187,7 +187,6 @@ class ServerResponse
...
@@ -187,7 +187,6 @@ class ServerResponse
];
];
foreach
(
$result_object_types
as
$type
=>
$object_class
)
{
foreach
(
$result_object_types
as
$type
=>
$object_class
)
{
if
(
isset
(
$result
[
$type
]))
{
if
(
isset
(
$result
[
$type
]))
{
return
new
$object_class
(
$result
);
return
new
$object_class
(
$result
);
}
}
}
}
...
@@ -228,5 +227,4 @@ class ServerResponse
...
@@ -228,5 +227,4 @@ class ServerResponse
return
$results
;
return
$results
;
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment