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 @@
*
* @ingroup ajax
*/
class RemoveCommand Implements CommandInterface {
class RemoveCommand implements CommandInterface {
/**
* The CSS selector for the element(s) to be removed.
......
......@@ -59,7 +59,7 @@ public function remove($file_path) {
/**
* {@inheritdoc}
*/
public function extract($path, Array $files = array()) {
public function extract($path, array $files = array()) {
if ($files) {
$this->zip->extractTo($path, $files);
}
......
......@@ -17,7 +17,7 @@
* @see hook_config_schema_info_alter()
* @see https://www.drupal.org/node/1905070
*/
Interface TypedConfigManagerInterface extends TypedDataManagerInterface {
interface TypedConfigManagerInterface extends TypedDataManagerInterface {
/**
* Gets typed configuration data.
......
......@@ -88,7 +88,7 @@ function testModuleList() {
* The expected values, sorted by weight and module name.
* @param $condition
*/
protected function assertModuleList(Array $expected_values, $condition) {
protected function assertModuleList(array $expected_values, $condition) {
$expected_values = array_values(array_unique($expected_values));
$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)));
......
......@@ -128,7 +128,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
*/
public function validateForm(array &$form, FormStateInterface $form_state) {
$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.'));
}
}
......
......@@ -536,7 +536,7 @@ public function providerTestIsMethodType() {
* @covers ::setTemporaryValue
*/
public function testTemporaryValue() {
$form_state = New FormState();
$form_state = new FormState();
$this->assertFalse($form_state->hasTemporaryValue('rainbow_sparkles'));
$form_state->setTemporaryValue('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