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
e986a12d
Commit
e986a12d
authored
Aug 24, 2016
by
Avtandil Kikabidze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed minor code style issues
parent
613de34d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Botan.php
src/Botan.php
+1
-1
ServerResponse.php
src/Entities/ServerResponse.php
+1
-1
Telegram.php
src/Telegram.php
+1
-1
No files found.
src/Botan.php
View file @
e986a12d
...
...
@@ -195,7 +195,7 @@ class Botan
if
(
!
filter_var
(
$response
,
FILTER_VALIDATE_URL
)
===
false
)
{
BotanDB
::
insertShortUrl
(
$user_id
,
$url
,
$response
);
}
else
{
// @
FIXME
: Add telegram log
// @
TODO
: Add telegram log
error_log
(
'Botan.io API replied with error: '
.
$response
);
return
$url
;
}
...
...
src/Entities/ServerResponse.php
View file @
e986a12d
...
...
@@ -132,7 +132,7 @@ class ServerResponse extends Entity
*/
protected
function
isAssoc
(
array
$array
)
{
return
(
bool
)
count
(
array_filter
(
array_keys
(
$array
),
'is_string'
));
return
(
bool
)
count
(
array_filter
(
array_keys
(
$array
),
'is_string'
));
}
/**
...
...
src/Telegram.php
View file @
e986a12d
...
...
@@ -316,7 +316,7 @@ class Telegram
if
(
$response
->
isOk
())
{
//Process all updates
foreach
((
array
)
$response
->
getResult
()
as
$result
)
{
foreach
((
array
)
$response
->
getResult
()
as
$result
)
{
$this
->
processUpdate
(
$result
);
}
}
...
...
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