Completed
Pull Request — develop (#1492)
by Zack
28:58 queued 09:00
created
php_codesniffer/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.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 DiscourageGotoUnitTest extends AbstractSniffUnitTest
15
-{
14
+class DiscourageGotoUnitTest 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 [
44 41
             3  => 1,
45 42
             6  => 1,
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.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 DeprecatedFunctionsUnitTest extends AbstractSniffUnitTest
15
-{
14
+class DeprecatedFunctionsUnitTest 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
         $errors = [];
29 27
 
30 28
         if (PHP_VERSION_ID >= 70200) {
@@ -48,8 +46,7 @@  discard block
 block discarded – undo
48 46
      *
49 47
      * @return array<int, int>
50 48
      */
51
-    public function getWarningList()
52
-    {
49
+    public function getWarningList() {
53 50
         return [];
54 51
 
55 52
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 /**
3 3
  * @see something
4 4
  */
5
-if (@in_array($array, $needle))
6
-{
5
+if (@in_array($array, $needle)) {
7 6
     echo '@';
8 7
 }
9 8
 ?>
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php 1 patch
Braces   +4 added lines, -8 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 DisallowShortOpenTagUnitTest extends AbstractSniffUnitTest
15
-{
14
+class DisallowShortOpenTagUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -22,8 +21,7 @@  discard block
 block discarded – undo
22 21
      *
23 22
      * @return string[]
24 23
      */
25
-    protected function getTestFiles($testFileBase)
26
-    {
24
+    protected function getTestFiles($testFileBase) {
27 25
         $testFiles = [$testFileBase.'1.inc'];
28 26
 
29 27
         $option = (bool) ini_get('short_open_tag');
@@ -48,8 +46,7 @@  discard block
 block discarded – undo
48 46
      *
49 47
      * @return array<int, int>
50 48
      */
51
-    public function getErrorList($testFile='')
52
-    {
49
+    public function getErrorList($testFile='') {
53 50
         switch ($testFile) {
54 51
         case 'DisallowShortOpenTagUnitTest.1.inc':
55 52
             return [
@@ -82,8 +79,7 @@  discard block
 block discarded – undo
82 79
      *
83 80
      * @return array<int, int>
84 81
      */
85
-    public function getWarningList($testFile='')
86
-    {
82
+    public function getWarningList($testFile='') {
87 83
         switch ($testFile) {
88 84
         case 'DisallowShortOpenTagUnitTest.1.inc':
89 85
             return [];
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.inc 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,9 @@
 block discarded – undo
8 8
 
9 9
 for($i=0,$j=50; $i<100; $i++) {
10 10
     while($j--) {
11
-        if($j==17) goto end;
11
+        if($j==17) {
12
+        	goto end;
13
+        }
12 14
     }
13 15
 }
14 16
 echo "i = $i";
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.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 ForbiddenFunctionsUnitTest extends AbstractSniffUnitTest
15
-{
14
+class ForbiddenFunctionsUnitTest 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
         $errors = [
29 27
             2 => 1,
30 28
             4 => 1,
@@ -44,8 +42,7 @@  discard block
 block discarded – undo
44 42
      *
45 43
      * @return array<int, int>
46 44
      */
47
-    public function getWarningList()
48
-    {
45
+    public function getWarningList() {
49 46
         return [];
50 47
 
51 48
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.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 BacktickOperatorUnitTest extends AbstractSniffUnitTest
15
-{
14
+class BacktickOperatorUnitTest 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 [2 => 2];
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 [];
44 41
 
45 42
     }//end getWarningList()
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.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 SAPIUsageUnitTest extends AbstractSniffUnitTest
15
-{
14
+class SAPIUsageUnitTest 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 [2 => 1];
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 [];
44 41
 
45 42
     }//end getWarningList()
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.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
 
13 13
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
14 14
 
15
-class SyntaxUnitTest extends AbstractSniffUnitTest
16
-{
15
+class SyntaxUnitTest extends AbstractSniffUnitTest {
17 16
 
18 17
 
19 18
     /**
@@ -24,8 +23,7 @@  discard block
 block discarded – undo
24 23
      *
25 24
      * @return array<int, int>
26 25
      */
27
-    public function getErrorList()
28
-    {
26
+    public function getErrorList() {
29 27
         return [3 => 1];
30 28
 
31 29
     }//end getErrorList()
@@ -39,8 +37,7 @@  discard block
 block discarded – undo
39 37
      *
40 38
      * @return array<int, int>
41 39
      */
42
-    public function getWarningList()
43
-    {
40
+    public function getWarningList() {
44 41
         return [];
45 42
 
46 43
     }//end getWarningList()
Please login to merge, or discard this patch.