Commit f0869990 authored by catch's avatar catch

Issue #2666112 by alexpott: phpcs has a new sniff: Generic.PHP.LowerCaseKeyword

parent 65c72068
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* *
* @ingroup ajax * @ingroup ajax
*/ */
class RemoveCommand Implements CommandInterface { class RemoveCommand implements CommandInterface {
/** /**
* The CSS selector for the element(s) to be removed. * The CSS selector for the element(s) to be removed.
......
...@@ -59,7 +59,7 @@ public function remove($file_path) { ...@@ -59,7 +59,7 @@ public function remove($file_path) {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function extract($path, Array $files = array()) { public function extract($path, array $files = array()) {
if ($files) { if ($files) {
$this->zip->extractTo($path, $files); $this->zip->extractTo($path, $files);
} }
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* @see hook_config_schema_info_alter() * @see hook_config_schema_info_alter()
* @see https://www.drupal.org/node/1905070 * @see https://www.drupal.org/node/1905070
*/ */
Interface TypedConfigManagerInterface extends TypedDataManagerInterface { interface TypedConfigManagerInterface extends TypedDataManagerInterface {
/** /**
* Gets typed configuration data. * Gets typed configuration data.
......
...@@ -88,7 +88,7 @@ function testModuleList() { ...@@ -88,7 +88,7 @@ function testModuleList() {
* The expected values, sorted by weight and module name. * The expected values, sorted by weight and module name.
* @param $condition * @param $condition
*/ */
protected function assertModuleList(Array $expected_values, $condition) { protected function assertModuleList(array $expected_values, $condition) {
$expected_values = array_values(array_unique($expected_values)); $expected_values = array_values(array_unique($expected_values));
$enabled_modules = array_keys($this->container->get('module_handler')->getModuleList()); $enabled_modules = array_keys($this->container->get('module_handler')->getModuleList());
$this->assertEqual($expected_values, $enabled_modules, format_string('@condition: extension handler returns correct results', array('@condition' => $condition))); $this->assertEqual($expected_values, $enabled_modules, format_string('@condition: extension handler returns correct results', array('@condition' => $condition)));
......
...@@ -128,7 +128,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -128,7 +128,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
*/ */
public function validateForm(array &$form, FormStateInterface $form_state) { public function validateForm(array &$form, FormStateInterface $form_state) {
$uploaded_file = $this->getRequest()->files->get('files[project_upload]', NULL, TRUE); $uploaded_file = $this->getRequest()->files->get('files[project_upload]', NULL, TRUE);
if (!($form_state->getValue('project_url') XOR !empty($uploaded_file))) { if (!($form_state->getValue('project_url') xor !empty($uploaded_file))) {
$form_state->setErrorByName('project_url', $this->t('You must either provide a URL or upload an archive file to install.')); $form_state->setErrorByName('project_url', $this->t('You must either provide a URL or upload an archive file to install.'));
} }
} }
......
...@@ -536,7 +536,7 @@ public function providerTestIsMethodType() { ...@@ -536,7 +536,7 @@ public function providerTestIsMethodType() {
* @covers ::setTemporaryValue * @covers ::setTemporaryValue
*/ */
public function testTemporaryValue() { public function testTemporaryValue() {
$form_state = New FormState(); $form_state = new FormState();
$this->assertFalse($form_state->hasTemporaryValue('rainbow_sparkles')); $this->assertFalse($form_state->hasTemporaryValue('rainbow_sparkles'));
$form_state->setTemporaryValue('rainbow_sparkles', 'yes please'); $form_state->setTemporaryValue('rainbow_sparkles', 'yes please');
$this->assertSame($form_state->getTemporaryValue('rainbow_sparkles'), 'yes please'); $this->assertSame($form_state->getTemporaryValue('rainbow_sparkles'), 'yes please');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment