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
88555856
Commit
88555856
authored
Mar 10, 2016
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused $command_is_provided variable.
parent
291b90f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
Conversation.php
src/Conversation.php
+1
-10
No files found.
src/Conversation.php
View file @
88555856
...
@@ -60,13 +60,6 @@ class Conversation
...
@@ -60,13 +60,6 @@ class Conversation
*/
*/
protected
$command
;
protected
$command
;
/**
* Command has been provided
*
* @var string
*/
protected
$command_is_provided
;
/**
/**
* Conversation contructor to initialize a new conversation
* Conversation contructor to initialize a new conversation
*
*
...
@@ -80,10 +73,8 @@ class Conversation
...
@@ -80,10 +73,8 @@ class Conversation
$this
->
chat_id
=
$chat_id
;
$this
->
chat_id
=
$chat_id
;
$this
->
command
=
$command
;
$this
->
command
=
$command
;
$this
->
command_is_provided
=
(
$command
!==
null
);
//Try to load an existing conversation if possible
//Try to load an existing conversation if possible
if
(
!
$this
->
load
()
&&
$
this
->
command_is_provided
)
{
if
(
!
$this
->
load
()
&&
$
command
!==
null
)
{
//A new conversation start
//A new conversation start
$this
->
start
();
$this
->
start
();
}
}
...
...
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