@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | public function loginAsAdmin($user = '', $password = '', $dir = '') |
| 32 | 32 | { |
| 33 | - if(!$user || !$password) { |
|
| 33 | + if (!$user || !$password) { |
|
| 34 | 34 | $account = Fixtures::get('admin_account'); |
| 35 | 35 | $user = $account['member']; |
| 36 | 36 | $password = $account['password']; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | public function setStock($pid, $stock = 0) |
| 99 | 99 | { |
| 100 | - if(!$pid) { |
|
| 100 | + if (!$pid) { |
|
| 101 | 101 | return; |
| 102 | 102 | } |
| 103 | 103 | $entityManager = Fixtures::get('entityManager'); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | public function getLastDownloadFile($fileNameRegex, $retryCount = 3) |
| 154 | 154 | { |
| 155 | - $downloadDir = __DIR__ . '/_downloads/'; |
|
| 155 | + $downloadDir = __DIR__.'/_downloads/'; |
|
| 156 | 156 | $files = scandir($downloadDir); |
| 157 | 157 | $files = array_map(function($fileName) use ($downloadDir) { |
| 158 | 158 | return $downloadDir.$fileName; |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | { |
| 182 | 182 | $this->wait(1); |
| 183 | 183 | $this->executeInSelenium(function($webdriver) { |
| 184 | - $handles=$webdriver->getWindowHandles(); |
|
| 184 | + $handles = $webdriver->getWindowHandles(); |
|
| 185 | 185 | $last_window = end($handles); |
| 186 | 186 | $webdriver->switchTo()->window($last_window); |
| 187 | 187 | }); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | public function 規格選択($array) |
| 64 | 64 | { |
| 65 | 65 | foreach ($array as $index=>$option) { |
| 66 | - $this->tester->selectOption(['id' => 'classcategory_id'.($index+1)], $option); |
|
| 66 | + $this->tester->selectOption(['id' => 'classcategory_id'.($index + 1)], $option); |
|
| 67 | 67 | } |
| 68 | 68 | return $this; |
| 69 | 69 | } |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | |
| 115 | 115 | public function 受注ステータス検索($value = '') |
| 116 | 116 | { |
| 117 | - $this->tester->checkOption(['id' => 'admin_search_order_status_' . $value]); |
|
| 117 | + $this->tester->checkOption(['id' => 'admin_search_order_status_'.$value]); |
|
| 118 | 118 | $this->tester->click('#search_form #search_submit'); |
| 119 | 119 | return $this; |
| 120 | 120 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | { |
| 64 | 64 | $this->tester->click(self::$詳細検索ボタン); |
| 65 | 65 | $this->tester->wait(1); |
| 66 | - $this->tester->checkOption(['id' => 'admin_search_product_status_' . $value]); |
|
| 66 | + $this->tester->checkOption(['id' => 'admin_search_product_status_'.$value]); |
|
| 67 | 67 | $this->tester->click(self::$検索ボタン); |
| 68 | 68 | $this->tester->see('商品マスター商品管理', '.c-pageTitle'); |
| 69 | 69 | return $this; |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | public function インストール($fileName) |
| 31 | 31 | { |
| 32 | - $this->tester->attachFile(['id' => 'plugin_local_install_plugin_archive'], $fileName); |
|
| 32 | + $this->tester->attachFile(['id' => 'plugin_local_install_plugin_archive'], $fileName); |
|
| 33 | 33 | $this->tester->click('#aside_column button'); |
| 34 | 34 | return $this; |
| 35 | 35 | } |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | return "body > div > div.c-contentsArea > div.c-contentsArea__cols > div.c-contentsArea__primaryCol > div > div > div > div > ul > li:nth-child($rowNum) > div > div.col.d-flex.align-items-center > a"; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - public static function XPathでタグを取得する($textEl){ |
|
| 101 | + public static function XPathでタグを取得する($textEl) { |
|
| 102 | 102 | return '//*[@id="page_admin_product_category"]/div[1]/div[3]/div[3]/div[1]/div/div/div/div/ul/li/div/div[2]/a[contains(text(), "'.$textEl.'")]'; |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | \ No newline at end of file |
@@ -12,10 +12,10 @@ |
||
| 12 | 12 | |
| 13 | 13 | private function clearDownloadDir() |
| 14 | 14 | { |
| 15 | - $downloadDir = dirname(__DIR__) . '/_downloads/'; |
|
| 15 | + $downloadDir = dirname(__DIR__).'/_downloads/'; |
|
| 16 | 16 | if (file_exists($downloadDir)) { |
| 17 | 17 | $files = scandir($downloadDir); |
| 18 | - $files = array_filter($files, function ($fileName) use ($downloadDir) { |
|
| 18 | + $files = array_filter($files, function($fileName) use ($downloadDir) { |
|
| 19 | 19 | return is_file($downloadDir.$fileName) && (strpos($fileName, '.') != 0); |
| 20 | 20 | }); |
| 21 | 21 | foreach ($files as $f) { |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | $trustedProxies = isset($_SERVER['TRUSTED_PROXIES']) ? $_SERVER['TRUSTED_PROXIES'] : false; |
| 43 | 43 | if ($trustedProxies) { |
| 44 | - Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST); |
|
| 44 | + Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL^Request::HEADER_X_FORWARDED_HOST); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | $trustedHosts = isset($_SERVER['TRUSTED_HOSTS']) ? $_SERVER['TRUSTED_HOSTS'] : false; |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | $app->extend( |
| 14 | 14 | 'form.type.extensions', |
| 15 | - function ($extensions) { |
|
| 15 | + function($extensions) { |
|
| 16 | 16 | $extensions[] = new EntryTypeExtension(); |
| 17 | 17 | |
| 18 | 18 | return $extensions; |