Completed
Pull Request — develop (#1492)
by
unknown
16:55 queued 12s
created
php_codesniffer/src/Standards/Generic/Sniffs/Debug/JSHintSniff.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
 use PHP_CodeSniffer\Files\File;
15 15
 use PHP_CodeSniffer\Config;
16 16
 
17
-class JSHintSniff implements Sniff
18
-{
17
+class JSHintSniff implements Sniff {
19 18
 
20 19
     /**
21 20
      * A list of tokenizers this sniff supports.
@@ -30,8 +29,7 @@  discard block
 block discarded – undo
30 29
      *
31 30
      * @return int[]
32 31
      */
33
-    public function register()
34
-    {
32
+    public function register() {
35 33
         return [T_OPEN_TAG];
36 34
 
37 35
     }//end register()
@@ -47,8 +45,7 @@  discard block
 block discarded – undo
47 45
      * @return void
48 46
      * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jshint.js could not be run
49 47
      */
50
-    public function process(File $phpcsFile, $stackPtr)
51
-    {
48
+    public function process(File $phpcsFile, $stackPtr) {
52 49
         $rhinoPath  = Config::getExecutablePath('rhino');
53 50
         $jshintPath = Config::getExecutablePath('jshint');
54 51
         if ($rhinoPath === null && $jshintPath === null) {
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Sniffs/Debug/ESLintSniff.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
 use PHP_CodeSniffer\Files\File;
14 14
 use PHP_CodeSniffer\Config;
15 15
 
16
-class ESLintSniff implements Sniff
17
-{
16
+class ESLintSniff implements Sniff {
18 17
 
19 18
     /**
20 19
      * A list of tokenizers this sniff supports.
@@ -37,8 +36,7 @@  discard block
 block discarded – undo
37 36
      *
38 37
      * @return int[]
39 38
      */
40
-    public function register()
41
-    {
39
+    public function register() {
42 40
         return [T_OPEN_TAG];
43 41
 
44 42
     }//end register()
@@ -54,8 +52,7 @@  discard block
 block discarded – undo
54 52
      * @return void
55 53
      * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jshint.js could not be run
56 54
      */
57
-    public function process(File $phpcsFile, $stackPtr)
58
-    {
55
+    public function process(File $phpcsFile, $stackPtr) {
59 56
         $eslintPath = Config::getExecutablePath('eslint');
60 57
         if ($eslintPath === null) {
61 58
             return;
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Sniffs/Debug/CSSLintSniff.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
 use PHP_CodeSniffer\Files\File;
14 14
 use PHP_CodeSniffer\Config;
15 15
 
16
-class CSSLintSniff implements Sniff
17
-{
16
+class CSSLintSniff implements Sniff {
18 17
 
19 18
     /**
20 19
      * A list of tokenizers this sniff supports.
@@ -29,8 +28,7 @@  discard block
 block discarded – undo
29 28
      *
30 29
      * @return int[]
31 30
      */
32
-    public function register()
33
-    {
31
+    public function register() {
34 32
         return [T_OPEN_TAG];
35 33
 
36 34
     }//end register()
@@ -45,8 +43,7 @@  discard block
 block discarded – undo
45 43
      *
46 44
      * @return void
47 45
      */
48
-    public function process(File $phpcsFile, $stackPtr)
49
-    {
46
+    public function process(File $phpcsFile, $stackPtr) {
50 47
         $csslintPath = Config::getExecutablePath('csslint');
51 48
         if ($csslintPath === null) {
52 49
             return;
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/WhiteSpace/IncrementDecrementSpacingSniff.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
 use PHP_CodeSniffer\Files\File;
14 14
 use PHP_CodeSniffer\Util\Tokens;
15 15
 
16
-class IncrementDecrementSpacingSniff implements Sniff
17
-{
16
+class IncrementDecrementSpacingSniff implements Sniff {
18 17
 
19 18
 
20 19
     /**
@@ -33,8 +32,7 @@  discard block
 block discarded – undo
33 32
      *
34 33
      * @return array
35 34
      */
36
-    public function register()
37
-    {
35
+    public function register() {
38 36
         return [
39 37
             T_DEC,
40 38
             T_INC,
@@ -52,8 +50,7 @@  discard block
 block discarded – undo
52 50
      *
53 51
      * @return void
54 52
      */
55
-    public function process(File $phpcsFile, $stackPtr)
56
-    {
53
+    public function process(File $phpcsFile, $stackPtr) {
57 54
         $tokens = $phpcsFile->getTokens();
58 55
 
59 56
         $tokenName = 'increment';
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@  discard block
 block discarded – undo
12 12
 use PHP_CodeSniffer\Sniffs\Sniff;
13 13
 use PHP_CodeSniffer\Files\File;
14 14
 
15
-class DisallowTabIndentSniff implements Sniff
16
-{
15
+class DisallowTabIndentSniff implements Sniff {
17 16
 
18 17
     /**
19 18
      * A list of tokenizers this sniff supports.
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
      *
40 39
      * @return array
41 40
      */
42
-    public function register()
43
-    {
41
+    public function register() {
44 42
         return [T_OPEN_TAG];
45 43
 
46 44
     }//end register()
@@ -55,8 +53,7 @@  discard block
 block discarded – undo
55 53
      *
56 54
      * @return void
57 55
      */
58
-    public function process(File $phpcsFile, $stackPtr)
59
-    {
56
+    public function process(File $phpcsFile, $stackPtr) {
60 57
         if ($this->tabWidth === null) {
61 58
             if (isset($phpcsFile->config->tabWidth) === false || $phpcsFile->config->tabWidth === 0) {
62 59
                 // We have no idea how wide tabs are, so assume 4 spaces for metrics.
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/WhiteSpace/DisallowSpaceIndentSniff.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@  discard block
 block discarded – undo
12 12
 use PHP_CodeSniffer\Sniffs\Sniff;
13 13
 use PHP_CodeSniffer\Files\File;
14 14
 
15
-class DisallowSpaceIndentSniff implements Sniff
16
-{
15
+class DisallowSpaceIndentSniff implements Sniff {
17 16
 
18 17
     /**
19 18
      * A list of tokenizers this sniff supports.
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
      *
40 39
      * @return array
41 40
      */
42
-    public function register()
43
-    {
41
+    public function register() {
44 42
         return [T_OPEN_TAG];
45 43
 
46 44
     }//end register()
@@ -55,8 +53,7 @@  discard block
 block discarded – undo
55 53
      *
56 54
      * @return void
57 55
      */
58
-    public function process(File $phpcsFile, $stackPtr)
59
-    {
56
+    public function process(File $phpcsFile, $stackPtr) {
60 57
         $tabsReplaced = false;
61 58
         if ($this->tabWidth === null) {
62 59
             if (isset($phpcsFile->config->tabWidth) === false || $phpcsFile->config->tabWidth === 0) {
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
 use PHP_CodeSniffer\Util\Tokens;
15 15
 use PHP_CodeSniffer\Config;
16 16
 
17
-class ScopeIndentSniff implements Sniff
18
-{
17
+class ScopeIndentSniff implements Sniff {
19 18
 
20 19
     /**
21 20
      * A list of tokenizers this sniff supports.
@@ -104,8 +103,7 @@  discard block
 block discarded – undo
104 103
      *
105 104
      * @return array
106 105
      */
107
-    public function register()
108
-    {
106
+    public function register() {
109 107
         if (defined('PHP_CODESNIFFER_IN_TESTS') === true) {
110 108
             $this->debug = false;
111 109
         }
@@ -124,8 +122,7 @@  discard block
 block discarded – undo
124 122
      *
125 123
      * @return void
126 124
      */
127
-    public function process(File $phpcsFile, $stackPtr)
128
-    {
125
+    public function process(File $phpcsFile, $stackPtr) {
129 126
         $debug = Config::getConfigData('scope_indent_debug');
130 127
         if ($debug !== null) {
131 128
             $this->debug = (bool) $debug;
@@ -1399,8 +1396,7 @@  discard block
 block discarded – undo
1399 1396
      *
1400 1397
      * @return bool
1401 1398
      */
1402
-    protected function adjustIndent(File $phpcsFile, $stackPtr, $length, $change)
1403
-    {
1399
+    protected function adjustIndent(File $phpcsFile, $stackPtr, $length, $change) {
1404 1400
         $tokens = $phpcsFile->getTokens();
1405 1401
 
1406 1402
         // We don't adjust indents outside of PHP.
Please login to merge, or discard this patch.
Standards/Generic/Sniffs/WhiteSpace/ArbitraryParenthesesSpacingSniff.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
 use PHP_CodeSniffer\Files\File;
17 17
 use PHP_CodeSniffer\Util\Tokens;
18 18
 
19
-class ArbitraryParenthesesSpacingSniff implements Sniff
20
-{
19
+class ArbitraryParenthesesSpacingSniff implements Sniff {
21 20
 
22 21
     /**
23 22
      * The number of spaces desired on the inside of the parentheses.
@@ -47,8 +46,7 @@  discard block
 block discarded – undo
47 46
      *
48 47
      * @return array
49 48
      */
50
-    public function register()
51
-    {
49
+    public function register() {
52 50
         $this->ignoreTokens = Tokens::$functionNameTokens;
53 51
 
54 52
         $this->ignoreTokens[T_VARIABLE]            = T_VARIABLE;
@@ -83,8 +81,7 @@  discard block
 block discarded – undo
83 81
      *
84 82
      * @return void
85 83
      */
86
-    public function process(File $phpcsFile, $stackPtr)
87
-    {
84
+    public function process(File $phpcsFile, $stackPtr) {
88 85
         $tokens = $phpcsFile->getTokens();
89 86
 
90 87
         if (isset($tokens[$stackPtr]['parenthesis_owner']) === true) {
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/WhiteSpace/LanguageConstructSpacingSniff.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
 use PHP_CodeSniffer\Util\Common;
15 15
 use PHP_CodeSniffer\Util\Tokens;
16 16
 
17
-class LanguageConstructSpacingSniff implements Sniff
18
-{
17
+class LanguageConstructSpacingSniff implements Sniff {
19 18
 
20 19
 
21 20
     /**
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
      *
24 23
      * @return array
25 24
      */
26
-    public function register()
27
-    {
25
+    public function register() {
28 26
         return [
29 27
             T_ECHO,
30 28
             T_PRINT,
@@ -53,8 +51,7 @@  discard block
 block discarded – undo
53 51
      *
54 52
      * @return void
55 53
      */
56
-    public function process(File $phpcsFile, $stackPtr)
57
-    {
54
+    public function process(File $phpcsFile, $stackPtr) {
58 55
         $tokens = $phpcsFile->getTokens();
59 56
 
60 57
         $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
Please login to merge, or discard this patch.