diff --git a/src/Loader.php b/src/Loader.php index a9bb85c..4a3aa0e 100644 --- a/src/Loader.php +++ b/src/Loader.php @@ -28,7 +28,7 @@ public function __construct() } /** - * @param mixed $second + * @param mixed $second * @param string $message * * @return string @@ -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); } } diff --git a/src/MysqlImport.php b/src/MysqlImport.php index 37bd625..854956b 100644 --- a/src/MysqlImport.php +++ b/src/MysqlImport.php @@ -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)); diff --git a/tests/DatabaseAdapterTest.php b/tests/DatabaseAdapterTest.php index e280777..f8d5603 100644 --- a/tests/DatabaseAdapterTest.php +++ b/tests/DatabaseAdapterTest.php @@ -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);