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
ce439368
Unverified
Commit
ce439368
authored
Jun 13, 2019
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code style fixes, remove unused `use` definitions, set YAML indentation to 2
parent
fd813acc
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
69 additions
and
70 deletions
+69
-70
.editorconfig
.editorconfig
+3
-0
.scrutinizer.yml
.scrutinizer.yml
+17
-17
phpunit.xml.dist
phpunit.xml.dist
+21
-21
DebugCommand.php
src/Commands/AdminCommands/DebugCommand.php
+8
-8
GenericCommand.php
src/Commands/SystemCommands/GenericCommand.php
+0
-1
GenericmessageCommand.php
src/Commands/SystemCommands/GenericmessageCommand.php
+1
-1
InlinequeryCommand.php
src/Commands/SystemCommands/InlinequeryCommand.php
+0
-2
StartCommand.php
src/Commands/SystemCommands/StartCommand.php
+0
-1
Keyboard.php
src/Entities/Keyboard.php
+1
-1
Telegram.php
src/Telegram.php
+3
-3
ConversationTest.php
tests/unit/ConversationTest.php
+6
-6
ServerResponseTest.php
tests/unit/Entities/ServerResponseTest.php
+4
-4
TestHelpers.php
tests/unit/TestHelpers.php
+1
-1
importFromLog.php
utils/importFromLog.php
+4
-4
No files found.
.editorconfig
View file @
ce439368
...
...
@@ -7,3 +7,6 @@ charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.{yml, yaml}]
indent_size = 2
.scrutinizer.yml
View file @
ce439368
phpunit.xml.dist
View file @
ce439368
...
...
@@ -19,9 +19,9 @@
timeoutForMediumTests=
"10"
timeoutForSmallTests=
"1"
verbose=
"false"
>
>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<ini
name=
"error_reporting"
value=
"-1"
/>
<const
name=
"PHPUNIT_TESTSUITE"
value=
"true"
/>
<const
name=
"PHPUNIT_DB_HOST"
value=
"127.0.0.1"
/>
<const
name=
"PHPUNIT_DB_NAME"
value=
"telegrambot"
/>
...
...
src/Commands/AdminCommands/DebugCommand.php
View file @
ce439368
src/Commands/SystemCommands/GenericCommand.php
View file @
ce439368
...
...
@@ -11,7 +11,6 @@
namespace
Longman\TelegramBot\Commands\SystemCommands
;
use
Longman\TelegramBot\Commands\SystemCommand
;
use
Longman\TelegramBot\Request
;
/**
* Generic command
...
...
src/Commands/SystemCommands/GenericmessageCommand.php
View file @
ce439368
...
...
@@ -10,9 +10,9 @@
namespace
Longman\TelegramBot\Commands\SystemCommands
;
use
Longman\TelegramBot\Commands\SystemCommand
;
use
Longman\TelegramBot\Conversation
;
use
Longman\TelegramBot\Request
;
use
Longman\TelegramBot\Commands\SystemCommand
;
/**
* Generic message command
...
...
src/Commands/SystemCommands/InlinequeryCommand.php
View file @
ce439368
...
...
@@ -11,8 +11,6 @@
namespace
Longman\TelegramBot\Commands\SystemCommands
;
use
Longman\TelegramBot\Commands\SystemCommand
;
use
Longman\TelegramBot\Entities\InlineQuery\InlineQueryResultArticle
;
use
Longman\TelegramBot\Entities\InputMessageContent\InputTextMessageContent
;
use
Longman\TelegramBot\Request
;
/**
...
...
src/Commands/SystemCommands/StartCommand.php
View file @
ce439368
...
...
@@ -11,7 +11,6 @@
namespace
Longman\TelegramBot\Commands\SystemCommands
;
use
Longman\TelegramBot\Commands\SystemCommand
;
use
Longman\TelegramBot\Request
;
/**
* Start command
...
...
src/Entities/Keyboard.php
View file @
ce439368
src/Telegram.php
View file @
ce439368
tests/unit/ConversationTest.php
View file @
ce439368
tests/unit/Entities/ServerResponseTest.php
View file @
ce439368
tests/unit/TestHelpers.php
View file @
ce439368
utils/importFromLog.php
View file @
ce439368
<?php
require
__DIR__
.
'/../vendor/autoload.php'
;
$filename
=
'logfile.log'
;
$filename
=
'logfile.log'
;
$API_KEY
=
'random'
;
$BOT_NAME
=
'bot_name'
;
define
(
'PHPUNIT_TESTSUITE'
,
'some value'
);
$CREDENTIALS
=
array
(
'host'
=>
'localhost'
,
'user'
=>
''
,
'password'
=>
''
,
'database'
=>
''
)
;
$CREDENTIALS
=
[
'host'
=>
'localhost'
,
'user'
=>
''
,
'password'
=>
''
,
'database'
=>
''
]
;
$update
=
null
;
try
{
...
...
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