Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
292
Merge Requests
292
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
b264dd2b
Commit
b264dd2b
authored
Apr 27, 2016
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2710081
by alexpott: Fix 'Drupal.Formatting.SpaceInlineIf' coding standard
parent
1b3ffe2a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
core/modules/block_content/src/Tests/BlockContentTestBase.php
.../modules/block_content/src/Tests/BlockContentTestBase.php
+1
-1
core/modules/block_content/src/Tests/BlockContentTranslationUITest.php
...block_content/src/Tests/BlockContentTranslationUITest.php
+2
-2
core/modules/views/src/Plugin/ViewsHandlerManager.php
core/modules/views/src/Plugin/ViewsHandlerManager.php
+1
-1
core/phpcs.xml.dist
core/phpcs.xml.dist
+1
-0
No files found.
core/modules/block_content/src/Tests/BlockContentTestBase.php
View file @
b264dd2b
...
...
@@ -74,7 +74,7 @@ protected function setUp() {
* Created custom block.
*/
protected
function
createBlockContent
(
$title
=
FALSE
,
$bundle
=
'basic'
,
$save
=
TRUE
)
{
$title
=
(
$title
?
:
$this
->
randomMachineName
()
);
$title
=
$title
?:
$this
->
randomMachineName
(
);
$block_content
=
BlockContent
::
create
(
array
(
'info'
=>
$title
,
'type'
=>
$bundle
,
...
...
core/modules/block_content/src/Tests/BlockContentTranslationUITest.php
View file @
b264dd2b
...
...
@@ -91,8 +91,8 @@ public function getTranslatorPermissions() {
* Created custom block.
*/
protected
function
createBlockContent
(
$title
=
FALSE
,
$bundle
=
FALSE
)
{
$title
=
(
$title
?
:
$this
->
randomMachineName
()
);
$bundle
=
(
$bundle
?
:
$this
->
bundle
)
;
$title
=
$title
?:
$this
->
randomMachineName
(
);
$bundle
=
$bundle
?:
$this
->
bundle
;
$block_content
=
BlockContent
::
create
(
array
(
'info'
=>
$title
,
'type'
=>
$bundle
,
...
...
core/modules/views/src/Plugin/ViewsHandlerManager.php
View file @
b264dd2b
...
...
@@ -101,7 +101,7 @@ public function getHandler($item, $override = NULL) {
}
// @todo This is crazy. Find a way to remove the override functionality.
$plugin_id
=
$override
?
:
$definition
[
'id'
];
$plugin_id
=
$override
?:
$definition
[
'id'
];
// Try to use the overridden handler.
$handler
=
$this
->
createInstance
(
$plugin_id
,
$definition
);
if
(
$override
&&
method_exists
(
$handler
,
'broken'
)
&&
$handler
->
broken
())
{
...
...
core/phpcs.xml.dist
View file @
b264dd2b
...
...
@@ -20,6 +20,7 @@
<rule
ref=
"Drupal.ControlStructures.ElseIf"
/>
<rule
ref=
"Drupal.Files.EndFileNewline"
/>
<rule
ref=
"Drupal.Files.TxtFileLineLength"
/>
<rule
ref=
"Drupal.Formatting.SpaceInlineIf"
/>
<rule
ref=
"Drupal.Functions.DiscouragedFunctions"
/>
<rule
ref=
"Drupal.Functions.FunctionDeclaration.SpaceAfter"
/>
<rule
ref=
"Drupal.Functions.FunctionDeclaration.SpaceBeforeParenthesis"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment