Completed
Pull Request — develop (#1492)
by Zack
28:58 queued 09:00
created
Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class MultipleStatementAlignmentUnitTest extends AbstractSniffUnitTest
15
-{
14
+class MultipleStatementAlignmentUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
      *
24 23
      * @return array<int, int>
25 24
      */
26
-    public function getErrorList()
27
-    {
25
+    public function getErrorList() {
28 26
         return [];
29 27
 
30 28
     }//end getErrorList()
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
40 38
      *
41 39
      * @return array<int, int>
42 40
      */
43
-    public function getWarningList($testFile='MultipleStatementAlignmentUnitTest.inc')
44
-    {
41
+    public function getWarningList($testFile='MultipleStatementAlignmentUnitTest.inc') {
45 42
         switch ($testFile) {
46 43
         case 'MultipleStatementAlignmentUnitTest.inc':
47 44
             return [
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class SpaceAfterCastUnitTest extends AbstractSniffUnitTest
15
-{
14
+class SpaceAfterCastUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
      *
24 23
      * @return array<int, int>
25 24
      */
26
-    public function getErrorList()
27
-    {
25
+    public function getErrorList() {
28 26
         return [
29 27
             4  => 1,
30 28
             5  => 1,
@@ -77,8 +75,7 @@  discard block
 block discarded – undo
77 75
      *
78 76
      * @return array<int, int>
79 77
      */
80
-    public function getWarningList()
81
-    {
78
+    public function getWarningList() {
82 79
         return [];
83 80
 
84 81
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Formatting/SpaceBeforeCastUnitTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class SpaceBeforeCastUnitTest extends AbstractSniffUnitTest
15
-{
14
+class SpaceBeforeCastUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
      *
24 23
      * @return array<int, int>
25 24
      */
26
-    public function getErrorList()
27
-    {
25
+    public function getErrorList() {
28 26
         return [
29 27
             3  => 1,
30 28
             4  => 1,
@@ -68,8 +66,7 @@  discard block
 block discarded – undo
68 66
      *
69 67
      * @return array<int, int>
70 68
      */
71
-    public function getWarningList()
72
-    {
69
+    public function getWarningList() {
73 70
         return [];
74 71
 
75 72
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class NoSilencedErrorsUnitTest extends AbstractSniffUnitTest
15
-{
14
+class NoSilencedErrorsUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
      *
24 23
      * @return array<int, int>
25 24
      */
26
-    public function getErrorList()
27
-    {
25
+    public function getErrorList() {
28 26
         return [];
29 27
 
30 28
     }//end getErrorList()
@@ -38,8 +36,7 @@  discard block
 block discarded – undo
38 36
      *
39 37
      * @return array<int, int>
40 38
      */
41
-    public function getWarningList()
42
-    {
39
+    public function getWarningList() {
43 40
         return [5 => 1];
44 41
 
45 42
     }//end getWarningList()
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class LowerCaseTypeUnitTest extends AbstractSniffUnitTest
15
-{
14
+class LowerCaseTypeUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
      *
24 23
      * @return array<int, int>
25 24
      */
26
-    public function getErrorList()
27
-    {
25
+    public function getErrorList() {
28 26
         return [
29 27
             14 => 1,
30 28
             15 => 1,
@@ -58,8 +56,7 @@  discard block
 block discarded – undo
58 56
      *
59 57
      * @return array<int, int>
60 58
      */
61
-    public function getWarningList()
62
-    {
59
+    public function getWarningList() {
63 60
         return [];
64 61
 
65 62
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class LowerCaseKeywordUnitTest extends AbstractSniffUnitTest
15
-{
14
+class LowerCaseKeywordUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
      *
24 23
      * @return array<int, int>
25 24
      */
26
-    public function getErrorList()
27
-    {
25
+    public function getErrorList() {
28 26
         return [
29 27
             10 => 3,
30 28
             11 => 4,
@@ -50,8 +48,7 @@  discard block
 block discarded – undo
50 48
      *
51 49
      * @return array<int, int>
52 50
      */
53
-    public function getWarningList()
54
-    {
51
+    public function getWarningList() {
55 52
         return [];
56 53
 
57 54
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc 1 patch
Braces   +12 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,14 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // True
4
-function myFunction($arg1, $arg2=TRUE)
5
-{
4
+function myFunction($arg1, $arg2=TRUE) {
6 5
 }
7
-function myFunction($arg1, $arg2=true)
8
-{
6
+function myFunction($arg1, $arg2=true) {
9 7
 }
10
-function myFunction($arg1, $arg2=True)
11
-{
8
+function myFunction($arg1, $arg2=True) {
12 9
 }
13 10
 
14 11
 if ($variable === TRUE) { }
@@ -17,14 +14,11 @@  discard block
 block discarded – undo
17 14
 
18 15
 
19 16
 // False
20
-function myFunction($arg1, $arg2=FALSE)
21
-{
17
+function myFunction($arg1, $arg2=FALSE) {
22 18
 }
23
-function myFunction($arg1, $arg2=false)
24
-{
19
+function myFunction($arg1, $arg2=false) {
25 20
 }
26
-function myFunction($arg1, $arg2=False)
27
-{
21
+function myFunction($arg1, $arg2=False) {
28 22
 }
29 23
 
30 24
 if ($variable === FALSE) { }
@@ -33,14 +27,11 @@  discard block
 block discarded – undo
33 27
 
34 28
 
35 29
 // Null
36
-function myFunction($arg1, $arg2=NULL)
37
-{
30
+function myFunction($arg1, $arg2=NULL) {
38 31
 }
39
-function myFunction($arg1, $arg2=null)
40
-{
32
+function myFunction($arg1, $arg2=null) {
41 33
 }
42
-function myFunction($arg1, $arg2=Null)
43
-{
34
+function myFunction($arg1, $arg2=Null) {
44 35
 }
45 36
 
46 37
 if ($variable === NULL) { }
@@ -59,10 +50,8 @@  discard block
 block discarded – undo
59 50
 
60 51
 use True\Something;
61 52
 use Something\True;
62
-class MyClass
63
-{
64
-    public function myFunction()
65
-    {
53
+class MyClass {
54
+    public function myFunction() {
66 55
         $var = array('foo' => new True());
67 56
     }
68 57
 }
@@ -70,8 +59,7 @@  discard block
 block discarded – undo
70 59
 $x = $f?false:TRUE;
71 60
 $x = $f? false:TRUE;
72 61
 
73
-class MyClass
74
-{
62
+class MyClass {
75 63
     // Spice things up a little.
76 64
     const true = FALSE;
77 65
 }
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class CharacterBeforePHPOpeningTagUnitTest extends AbstractSniffUnitTest
15
-{
14
+class CharacterBeforePHPOpeningTagUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -25,8 +24,7 @@  discard block
 block discarded – undo
25 24
      *
26 25
      * @return array<int, int>
27 26
      */
28
-    public function getErrorList($testFile='')
29
-    {
27
+    public function getErrorList($testFile='') {
30 28
         switch ($testFile) {
31 29
         case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
32 30
             return [2 => 1];
@@ -47,8 +45,7 @@  discard block
 block discarded – undo
47 45
      *
48 46
      * @return array<int, int>
49 47
      */
50
-    public function getWarningList()
51
-    {
48
+    public function getWarningList() {
52 49
         return [];
53 50
 
54 51
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class LowerCaseConstantUnitTest extends AbstractSniffUnitTest
15
-{
14
+class LowerCaseConstantUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -25,8 +24,7 @@  discard block
 block discarded – undo
25 24
      *
26 25
      * @return array<int, int>
27 26
      */
28
-    public function getErrorList($testFile='LowerCaseConstantUnitTest.inc')
29
-    {
27
+    public function getErrorList($testFile='LowerCaseConstantUnitTest.inc') {
30 28
         switch ($testFile) {
31 29
         case 'LowerCaseConstantUnitTest.inc':
32 30
             return [
@@ -74,8 +72,7 @@  discard block
 block discarded – undo
74 72
      *
75 73
      * @return array<int, int>
76 74
      */
77
-    public function getWarningList()
78
-    {
75
+    public function getWarningList() {
79 76
         return [];
80 77
 
81 78
     }//end getWarningList()
Please login to merge, or discard this patch.