diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/bootstrap/CapabilitiesContext.php | 2 | ||||
-rw-r--r-- | build/integration/features/bootstrap/FakeSMTPHelper.php | 8 | ||||
-rw-r--r-- | build/integration/features/bootstrap/Provisioning.php | 2 | ||||
-rw-r--r-- | build/license.php | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/build/integration/features/bootstrap/CapabilitiesContext.php b/build/integration/features/bootstrap/CapabilitiesContext.php index 19da7bc62c1..bba85e3c65e 100644 --- a/build/integration/features/bootstrap/CapabilitiesContext.php +++ b/build/integration/features/bootstrap/CapabilitiesContext.php @@ -53,7 +53,7 @@ class CapabilitiesContext implements Context, SnippetAcceptingContext { } $answeredValue = (string)$answeredValue; Assert::assertEquals( - $row['value']==="EMPTY" ? '' : $row['value'], + $row['value'] === "EMPTY" ? '' : $row['value'], $answeredValue, "Failed field " . $row['capability'] . " " . $row['path_to_element'] ); diff --git a/build/integration/features/bootstrap/FakeSMTPHelper.php b/build/integration/features/bootstrap/FakeSMTPHelper.php index d8f6be4dc23..1cc1a5fe7a7 100644 --- a/build/integration/features/bootstrap/FakeSMTPHelper.php +++ b/build/integration/features/bootstrap/FakeSMTPHelper.php @@ -113,7 +113,7 @@ class fakeSMTP { $this->mail['emailBody'] = $splitmail[1]; $headers = preg_replace("/ \s+/", ' ', preg_replace("/\n\s/", ' ', $this->mail['emailHeaders'])); $headerlines = explode("\n", $headers); - for ($i=0; $i<count($headerlines); $i++) { + for ($i = 0; $i < count($headerlines); $i++) { if (preg_match('/^Subject: (.*)/i', $headerlines[$i], $matches)) { $this->mail['emailSubject'] = trim($matches[1]); } @@ -152,13 +152,13 @@ class fakeSMTP { return preg_match('/^[_a-z0-9-+]+(\.[_a-z0-9-+]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/', strtolower($email)); } - private function generateRandom($length=8) { + private function generateRandom($length = 8) { $password = ''; $possible = '2346789BCDFGHJKLMNPQRTVWXYZ'; $maxlength = strlen($possible); $i = 0; - for ($i=0; $i < $length; $i++) { - $char = substr($possible, mt_rand(0, $maxlength-1), 1); + for ($i = 0; $i < $length; $i++) { + $char = substr($possible, mt_rand(0, $maxlength - 1), 1); if (!strstr($password, $char)) { $password .= $char; } diff --git a/build/integration/features/bootstrap/Provisioning.php b/build/integration/features/bootstrap/Provisioning.php index 31331092ae7..56d75c058aa 100644 --- a/build/integration/features/bootstrap/Provisioning.php +++ b/build/integration/features/bootstrap/Provisioning.php @@ -422,7 +422,7 @@ trait Provisioning { 'groupid' => $group, ]; - $this->response =$client->post($fullUrl, $options); + $this->response = $client->post($fullUrl, $options); } diff --git a/build/license.php b/build/license.php index 7bd9e1054c0..e736419e2ac 100644 --- a/build/license.php +++ b/build/license.php @@ -287,7 +287,7 @@ With help from many libraries and frameworks including: chdir($buildDir); } $timestampChanges = explode(PHP_EOL, $out); - $timestampChanges = array_slice($timestampChanges, 0, count($timestampChanges)-1); + $timestampChanges = array_slice($timestampChanges, 0, count($timestampChanges) - 1); foreach ($timestampChanges as $timestamp) { if ((int)$timestamp < $deadlineTimestamp) { return; |