Skip to content

Commit

Permalink
Merge pull request #8 from javanile/analysis-lKoLON
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
francescobianco authored Sep 21, 2020
2 parents 7b20019 + 2a553b3 commit 42fc65b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct()
}

/**
* @param mixed $second
* @param mixed $second
* @param string $message
*
* @return string
Expand All @@ -37,12 +37,12 @@ public function waiting($second = 10, $message = 'Waiting...')
{
$freq = 5;
for ($i = 0; $i < $second * $freq; $i++) {
$text = '['.substr($this->loader, 0, -1).'] ' . $message;
$text = '['.substr($this->loader, 0, -1).'] '.$message;
$this->print($text);
usleep(1000000 / $freq);
$this->loader = substr($this->loader, -1) . substr($this->loader, 0, -1);
$this->loader = substr($this->loader, -1).substr($this->loader, 0, -1);
$cleaner = str_repeat("\010", strlen($text));
$this->print($cleaner . str_repeat(' ', strlen($text)) . $cleaner);
$this->print($cleaner.str_repeat(' ', strlen($text)).$cleaner);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/MysqlImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ protected function writeLockFile()
{
$json = [
'database' => $this->database,
'force' => $this->force,
'force' => $this->force,
];

file_put_contents($this->lockFile, json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
Expand Down
6 changes: 3 additions & 3 deletions tests/DatabaseAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class DatabaseAdapterTest extends TestCase
public function testDatabaseAdapter()
{
$properties = [
'host' => 'localhost',
'port' => '1080',
'database' => 'db_0'
'host' => 'localhost',
'port' => '1080',
'database' => 'db_0',
];

$databaseAdapter = new DatabaseAdapter($properties);
Expand Down

0 comments on commit 42fc65b

Please sign in to comment.