@@ -1,9 +1,9 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -define('PROJECT_BASE_PATH', __DIR__.'/..'); |
|
| 3 | +define('PROJECT_BASE_PATH', __DIR__ . '/..'); |
|
| 4 | 4 | define('TEST_BASE_PATH', __DIR__); |
| 5 | 5 | define('CURRENT_URL', ''); |
| 6 | -define('TEST_FIXTURE_PATH', __DIR__.DIRECTORY_SEPARATOR.'fixtures'); |
|
| 6 | +define('TEST_FIXTURE_PATH', __DIR__ . DIRECTORY_SEPARATOR . 'fixtures'); |
|
| 7 | 7 | |
| 8 | 8 | use Nip\Application\Application; |
| 9 | 9 | use Nip\Cache\Stores\Repository; |
@@ -17,16 +17,16 @@ discard block |
||
| 17 | 17 | app()->share('app', new Application()); |
| 18 | 18 | app()->share('translator', new Translator('en')); |
| 19 | 19 | |
| 20 | -$cachePath = TEST_FIXTURE_PATH.'/storage/cache'; |
|
| 21 | -array_map(function ($path) { |
|
| 20 | +$cachePath = TEST_FIXTURE_PATH . '/storage/cache'; |
|
| 21 | +array_map(function($path) { |
|
| 22 | 22 | if (is_file($path)) { |
| 23 | 23 | unlink($path); |
| 24 | 24 | } |
| 25 | -}, glob($cachePath.'/@/*')); |
|
| 25 | +}, glob($cachePath . '/@/*')); |
|
| 26 | 26 | |
| 27 | 27 | $adapter = new FilesystemAdapter('', 600, $cachePath); |
| 28 | 28 | $store = new Repository($adapter); |
| 29 | 29 | $store->clear(); |
| 30 | 30 | Container::getInstance()->set('cache.store', $store); |
| 31 | 31 | |
| 32 | -require dirname(__DIR__).'/vendor/autoload.php'; |
|
| 32 | +require dirname(__DIR__) . '/vendor/autoload.php'; |
|
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | return $consumer->getTable(); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - return (string)$consumer; |
|
| 62 | + return (string) $consumer; |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | return new $this->type; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - $consumer = GetConsumerForForm::for($this->form)->handle(); |
|
| 42 | + $consumer = GetConsumerForForm::for ($this->form)->handle(); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | public function getConsumer(): Consumer |
| 60 | 60 | { |
| 61 | 61 | if ($this->consumer === null) { |
| 62 | - $this->consumer = GetConsumerForForm::for($this->form)->handle(); |
|
| 62 | + $this->consumer = GetConsumerForForm::for ($this->form)->handle(); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | return $this->consumer; |