@@ -1836,7 +1836,7 @@ |
||
| 1836 | 1836 | '', |
| 1837 | 1837 | 'encrypt' |
| 1838 | 1838 | ); |
| 1839 | - } |
|
| 1839 | + } |
|
| 1840 | 1840 | |
| 1841 | 1841 | // Check if status or secret or phone number has changed |
| 1842 | 1842 | if (DB::count() > 0 |
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | * @see https://www.teampass.net |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | - // TO REMOVE |
|
| 32 | - // - selected_items_to_be_imported |
|
| 31 | + // TO REMOVE |
|
| 32 | + // - selected_items_to_be_imported |
|
| 33 | 33 | |
| 34 | 34 | return array( |
| 35 | 35 | 'item_checkbox' => 'Item checkbox', |
@@ -137,9 +137,9 @@ |
||
| 137 | 137 | }); |
| 138 | 138 | |
| 139 | 139 | $bodies = $crawler->filter('div.c-feature:nth-child('.$index.') .c-text-sm') |
| 140 | - ->each(function (Crawler $crawler) { |
|
| 141 | - return $crawler->getNode(0)->textContent; |
|
| 142 | - }); |
|
| 140 | + ->each(function (Crawler $crawler) { |
|
| 141 | + return $crawler->getNode(0)->textContent; |
|
| 142 | + }); |
|
| 143 | 143 | |
| 144 | 144 | return array_combine($headings, $bodies); |
| 145 | 145 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | public $bad_client_secret = "1111111111111111111111111111111111111111"; |
| 26 | 26 | public $bad_api_host = 123456; |
| 27 | 27 | public $good_http_request = ["response" => ["timestamp" => 1607009339], |
| 28 | - "stat" => "OK"]; |
|
| 28 | + "stat" => "OK"]; |
|
| 29 | 29 | public $bad_http_request = ["message" => "invalid_client", |
| 30 | 30 | "code" => 40002, |
| 31 | 31 | "timestamp" => 1607014550, |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | public $short_state = "deadbeefdeadbeefdeadb"; |
| 38 | 38 | public $bad_http_request_exception = "invalid_client: Failed to verify signature."; |
| 39 | 39 | public $expected_good_http_request = array("response" => array("timestamp" => 1607009339), |
| 40 | - "stat" => "OK"); |
|
| 40 | + "stat" => "OK"); |
|
| 41 | 41 | |
| 42 | 42 | |
| 43 | 43 | protected function setUp(): void |
@@ -125,11 +125,11 @@ |
||
| 125 | 125 | $date = new \DateTime(); |
| 126 | 126 | $current_date = $date->getTimestamp(); |
| 127 | 127 | $payload = [ "iss" => $this->client_id, |
| 128 | - "sub" => $this->client_id, |
|
| 129 | - "aud" => $audience, |
|
| 130 | - "jti" => $this->generateRandomString(self::JTI_LENGTH), |
|
| 131 | - "iat" => $current_date, |
|
| 132 | - "exp" => $current_date + self::JWT_EXPIRATION |
|
| 128 | + "sub" => $this->client_id, |
|
| 129 | + "aud" => $audience, |
|
| 130 | + "jti" => $this->generateRandomString(self::JTI_LENGTH), |
|
| 131 | + "iat" => $current_date, |
|
| 132 | + "exp" => $current_date + self::JWT_EXPIRATION |
|
| 133 | 133 | ]; |
| 134 | 134 | return JWT::encode($payload, $this->client_secret, self::SIG_ALGORITHM); |
| 135 | 135 | } |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | $storage[] = new EnumStub([ |
| 209 | 209 | 'object' => $obj, |
| 210 | 210 | 'info' => $clone->getInfo(), |
| 211 | - ]); |
|
| 211 | + ]); |
|
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | $a += [ |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | $map[] = new EnumStub([ |
| 250 | 250 | 'object' => $obj, |
| 251 | 251 | 'data' => $data, |
| 252 | - ]); |
|
| 252 | + ]); |
|
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | $a += [ |
@@ -49,16 +49,16 @@ |
||
| 49 | 49 | |
| 50 | 50 | foreach ($offsets as $offset) { |
| 51 | 51 | $sourceOffsets .= $this->writeLong($offset[1]) |
| 52 | - .$this->writeLong($offset[0] + $sourcesStart); |
|
| 52 | + .$this->writeLong($offset[0] + $sourcesStart); |
|
| 53 | 53 | $targetOffsets .= $this->writeLong($offset[3]) |
| 54 | - .$this->writeLong($offset[2] + $sourcesStart + $sourcesSize); |
|
| 54 | + .$this->writeLong($offset[2] + $sourcesStart + $sourcesSize); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | $output = implode('', array_map($this->writeLong(...), $header)) |
| 58 | - .$sourceOffsets |
|
| 59 | - .$targetOffsets |
|
| 60 | - .$sources |
|
| 61 | - .$targets |
|
| 58 | + .$sourceOffsets |
|
| 59 | + .$targetOffsets |
|
| 60 | + .$sources |
|
| 61 | + .$targets |
|
| 62 | 62 | ; |
| 63 | 63 | |
| 64 | 64 | return $output; |