@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $this->connection = $this->getConnection(); |
78 | 78 | $this->cacheTableName = $tableName; |
79 | 79 | |
80 | - $this->nextAdapter = (InMemoryAdapter::getInstance() === $next) ? null : $next; |
|
80 | + $this->nextAdapter = (InMemoryAdapter::getInstance() === $next) ? null : $next; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | ? $this->parameters[AbstractPDOConnection::USER] : null, |
110 | 110 | (!empty($this->parameters[AbstractPDOConnection::PASSWORD])) |
111 | 111 | ? $this->parameters[AbstractPDOConnection::PASSWORD] : null, |
112 | - (!empty($this->parameters[AbstractPDOConnection::DRIVER_OPTIONS])) ? : [], |
|
112 | + (!empty($this->parameters[AbstractPDOConnection::DRIVER_OPTIONS])) ?: [], |
|
113 | 113 | ]; |
114 | 114 | |
115 | 115 | $pdo = $class->newInstanceArgs($parameters); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function __construct(array $connections, CacheAdapter $next = null) |
20 | 20 | { |
21 | - $this->nextAdapter = (InMemoryAdapter::getInstance() === $next) ? null: $next; |
|
21 | + $this->nextAdapter = (InMemoryAdapter::getInstance() === $next) ? null : $next; |
|
22 | 22 | |
23 | 23 | try { |
24 | 24 | $this->connected = true; |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Author: Nil Portugués Calderó <[email protected]> |
|
4 | - * Date: 12/9/15 |
|
5 | - * Time: 4:41 PM |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Author: Nil Portugués Calderó <[email protected]> |
|
4 | + * Date: 12/9/15 |
|
5 | + * Time: 4:41 PM |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace NilPortugues\Cache\Adapter; |
12 | 12 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function __construct($cacheDir, CacheAdapter $next = null) |
29 | 29 | { |
30 | - $this->nextAdapter = (InMemoryAdapter::getInstance() === $next) ? null : $next; |
|
30 | + $this->nextAdapter = (InMemoryAdapter::getInstance() === $next) ? null : $next; |
|
31 | 31 | |
32 | 32 | $cacheDir = \realpath($cacheDir); |
33 | 33 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $this->connected = false; |
35 | 35 | } |
36 | 36 | |
37 | - $this->nextAdapter = (InMemoryAdapter::getInstance() === $next) ? null: $next; |
|
37 | + $this->nextAdapter = (InMemoryAdapter::getInstance() === $next) ? null : $next; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 |