summaryrefslogtreecommitdiffstats
path: root/tests/acceptance
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 09:22:29 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 10:16:08 +0200
commit2fbad1ed72bc9ef591a6f35558eb02e7b76ffd1b (patch)
treea3da09ffec08d6c8abc3bf0fabb7f8c8a1c830f6 /tests/acceptance
parent1575bd838f2e938b18b04bcdcc28e2fc24d95c45 (diff)
downloadnextcloud-server-2fbad1ed72bc9ef591a6f35558eb02e7b76ffd1b.tar.gz
nextcloud-server-2fbad1ed72bc9ef591a6f35558eb02e7b76ffd1b.zip
Fix (array) indent style to always use one tab
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/features/bootstrap/FilesAppContext.php14
-rw-r--r--tests/acceptance/features/bootstrap/ThemingAppContext.php12
2 files changed, 13 insertions, 13 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesAppContext.php b/tests/acceptance/features/bootstrap/FilesAppContext.php
index 32b01916189..6a816d7f368 100644
--- a/tests/acceptance/features/bootstrap/FilesAppContext.php
+++ b/tests/acceptance/features/bootstrap/FilesAppContext.php
@@ -33,13 +33,13 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public static function sections() {
return [ "All files" => "files",
- "Recent" => "recent",
- "Favorites" => "favorites",
- "Shared with you" => "sharingin",
- "Shared with others" => "sharingout",
- "Shared by link" => "sharinglinks",
- "Tags" => "systemtagsfilter",
- "Deleted files" => "trashbin" ];
+ "Recent" => "recent",
+ "Favorites" => "favorites",
+ "Shared with you" => "sharingin",
+ "Shared with others" => "sharingout",
+ "Shared by link" => "sharinglinks",
+ "Tags" => "systemtagsfilter",
+ "Deleted files" => "trashbin" ];
}
/**
diff --git a/tests/acceptance/features/bootstrap/ThemingAppContext.php b/tests/acceptance/features/bootstrap/ThemingAppContext.php
index 4791a70e813..79d140b2694 100644
--- a/tests/acceptance/features/bootstrap/ThemingAppContext.php
+++ b/tests/acceptance/features/bootstrap/ThemingAppContext.php
@@ -97,7 +97,7 @@ class ThemingAppContext implements Context, ActorAwareInterface {
$colorSelectorValue = $this->getRGBArray($actor->getSession()->evaluateScript("return $('#theming-color')[0].value;"));
$inputBgColor = $this->getRGBArray($actor->getSession()->evaluateScript("return $('#theming-color').css('background-color');"));
if ($colorSelectorValue == $inputBgColor) {
- return true;
+ return true;
}
return false;
@@ -109,19 +109,19 @@ class ThemingAppContext implements Context, ActorAwareInterface {
}
private function getRGBArray ($color) {
- if (preg_match("/rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\)/", $color, $matches)) {
+ if (preg_match("/rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\)/", $color, $matches)) {
// Already an RGB (R, G, B) color
// Convert from "rgb(R, G, B)" string to RGB array
$tmpColor = array_splice($matches, 1);
- } else if ($color[0] === '#') {
+ } else if ($color[0] === '#') {
$color = substr($color, 1);
// HEX Color, convert to RGB array.
$tmpColor = sscanf($color, "%02X%02X%02X");
- } else {
+ } else {
PHPUnit_Framework_Assert::fail("The acceptance test does not know how to handle the color string : '$color'. "
. "Please provide # before HEX colors in your features.");
- }
- return $tmpColor;
+ }
+ return $tmpColor;
}
/**