@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | { |
| 42 | 42 | $this->bucket = $bucket; |
| 43 | 43 | |
| 44 | - if (!is_callable([$bucket, 'manager'])) { |
|
| 44 | + if ( ! is_callable([$bucket, 'manager'])) { |
|
| 45 | 45 | // Manager is required to flush cache and pull stats. |
| 46 | 46 | throw new \RuntimeException('ext-couchbase:^2.3.0 is required.'); |
| 47 | 47 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | if ($document instanceof Document) { |
| 86 | - return !$document->error; |
|
| 86 | + return ! $document->error; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | return false; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | if ($document instanceof Document) { |
| 115 | - return !$document->error; |
|
| 115 | + return ! $document->error; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | return false; |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | if ($document instanceof Document) { |
| 140 | - return !$document->error; |
|
| 140 | + return ! $document->error; |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | return false; |
@@ -197,7 +197,7 @@ |
||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | /** |
| 200 | - * @param mixed $value |
|
| 200 | + * @param string $value |
|
| 201 | 201 | * @return string |
| 202 | 202 | */ |
| 203 | 203 | private function encode($value) : string |