Completed
Push — master ( 52755b...6c4366 )
by smiley
02:13
created
tests/_fixture/class_with_multiple_anonymous_classes_and_functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
             }
16 16
         };
17 17
 
18
-        $f = function ($a, $b) {
18
+        $f = function($a, $b) {
19 19
             return $a + $b;
20 20
         };
21 21
 
22
-        $g = function ($a, $b) {
22
+        $g = function($a, $b) {
23 23
             return $a - $b;
24 24
         };
25 25
     }
Please login to merge, or discard this patch.
tests/_fixture/class_with_method_that_declares_anonymous_class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     public function method()
8 8
     {
9 9
         $o = new class { public function foo() {} };
10
-        $o = new class{public function foo(){}};
10
+        $o = new class{public function foo() {}};
11 11
         $o = new class extends stdClass {};
12 12
         $o = new class extends stdClass {};
13 13
         $o = new class implements foo {};
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/_fixture/source.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 /**
3 3
  * Some comment
4 4
  */
5
-class Foo{function foo(){}
5
+class Foo {function foo() {}
6 6
 
7 7
     /**
8 8
      * @param Baz $baz
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
  * For the full copyright and license information, please view the LICENSE
8 8
  * file that was distributed with this source code.
9 9
  */
10
-require __DIR__ . '/../vendor/autoload.php';
10
+require __DIR__.'/../vendor/autoload.php';
11 11
 
12 12
 define(
13 13
     'TEST_FILES_PATH',
14
-    __DIR__ . DIRECTORY_SEPARATOR . '_fixture' . DIRECTORY_SEPARATOR
14
+    __DIR__.DIRECTORY_SEPARATOR.'_fixture'.DIRECTORY_SEPARATOR
15 15
 );
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/Token/NamespaceTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     public function testGetName()
19 19
     {
20 20
         $tokenStream = new PHP_Token_Stream(
21
-          TEST_FILES_PATH . 'classInNamespace.php'
21
+          TEST_FILES_PATH.'classInNamespace.php'
22 22
         );
23 23
 
24 24
         foreach ($tokenStream as $token) {
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function testGetStartLineWithUnscopedNamespace()
32 32
     {
33
-        $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php');
33
+        $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH.'classInNamespace.php');
34 34
         foreach ($tokenStream as $token) {
35 35
             if ($token instanceof PHP_Token_NAMESPACE) {
36 36
                 $this->assertSame(2, $token->getLine());
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function testGetEndLineWithUnscopedNamespace()
42 42
     {
43
-        $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php');
43
+        $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH.'classInNamespace.php');
44 44
         foreach ($tokenStream as $token) {
45 45
             if ($token instanceof PHP_Token_NAMESPACE) {
46 46
                 $this->assertSame(2, $token->getEndLine());
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     }
50 50
     public function testGetStartLineWithScopedNamespace()
51 51
     {
52
-        $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInScopedNamespace.php');
52
+        $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH.'classInScopedNamespace.php');
53 53
         foreach ($tokenStream as $token) {
54 54
             if ($token instanceof PHP_Token_NAMESPACE) {
55 55
                 $this->assertSame(2, $token->getLine());
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function testGetEndLineWithScopedNamespace()
61 61
     {
62
-        $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInScopedNamespace.php');
62
+        $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH.'classInScopedNamespace.php');
63 63
         foreach ($tokenStream as $token) {
64 64
             if ($token instanceof PHP_Token_NAMESPACE) {
65 65
                 $this->assertSame(8, $token->getEndLine());
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/Token/InterfaceTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     protected function setUp()
26 26
     {
27
-        $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source4.php');
27
+        $ts = new PHP_Token_Stream(TEST_FILES_PATH.'source4.php');
28 28
         $i  = 0;
29 29
 
30 30
         foreach ($ts as $token) {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function testGetPackageNamespace()
115 115
     {
116
-        $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php');
116
+        $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH.'classInNamespace.php');
117 117
         foreach ($tokenStream as $token) {
118 118
             if ($token instanceof PHP_Token_INTERFACE) {
119 119
                 $package = $token->getPackage();
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
     public function provideFilesWithClassesWithinMultipleNamespaces()
127 127
     {
128 128
         return [
129
-            [TEST_FILES_PATH . 'multipleNamespacesWithOneClassUsingBraces.php'],
130
-            [TEST_FILES_PATH . 'multipleNamespacesWithOneClassUsingNonBraceSyntax.php'],
129
+            [TEST_FILES_PATH.'multipleNamespacesWithOneClassUsingBraces.php'],
130
+            [TEST_FILES_PATH.'multipleNamespacesWithOneClassUsingNonBraceSyntax.php'],
131 131
         ];
132 132
     }
133 133
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function testGetPackageNamespaceWhenExtentingFromNamespaceClass()
174 174
     {
175
-        $tokenStream     = new PHP_Token_Stream(TEST_FILES_PATH . 'classExtendsNamespacedClass.php');
175
+        $tokenStream     = new PHP_Token_Stream(TEST_FILES_PATH.'classExtendsNamespacedClass.php');
176 176
         $firstClassFound = false;
177 177
         foreach ($tokenStream as $token) {
178 178
             if ($firstClassFound === false && $token instanceof PHP_Token_INTERFACE) {
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/Token/ClassTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     protected function setUp()
26 26
     {
27
-        $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source2.php');
27
+        $ts = new PHP_Token_Stream(TEST_FILES_PATH.'source2.php');
28 28
 
29 29
         foreach ($ts as $token) {
30 30
             if ($token instanceof PHP_Token_CLASS) {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function testIssue19()
66 66
     {
67
-        $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'issue19.php');
67
+        $ts = new PHP_Token_Stream(TEST_FILES_PATH.'issue19.php');
68 68
 
69 69
         foreach ($ts as $token) {
70 70
             if ($token instanceof PHP_Token_CLASS) {
@@ -75,13 +75,13 @@  discard block
 block discarded – undo
75 75
 
76 76
     public function testIssue30()
77 77
     {
78
-        $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'issue30.php');
78
+        $ts = new PHP_Token_Stream(TEST_FILES_PATH.'issue30.php');
79 79
         $this->assertCount(1, $ts->getClasses());
80 80
     }
81 81
 
82 82
     public function testAnonymousClassesAreHandledCorrectly()
83 83
     {
84
-        $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'class_with_method_that_declares_anonymous_class.php');
84
+        $ts = new PHP_Token_Stream(TEST_FILES_PATH.'class_with_method_that_declares_anonymous_class.php');
85 85
 
86 86
         $classes = $ts->getClasses();
87 87
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function testAnonymousClassesAreHandledCorrectly2()
105 105
     {
106
-        $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'class_with_method_that_declares_anonymous_class2.php');
106
+        $ts = new PHP_Token_Stream(TEST_FILES_PATH.'class_with_method_that_declares_anonymous_class2.php');
107 107
 
108 108
         $classes = $ts->getClasses();
109 109
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
     public function testImportedFunctionsAreHandledCorrectly()
117 117
     {
118
-        $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'classUsesNamespacedFunction.php');
118
+        $ts = new PHP_Token_Stream(TEST_FILES_PATH.'classUsesNamespacedFunction.php');
119 119
 
120 120
         $this->assertEmpty($ts->getFunctions());
121 121
         $this->assertCount(1, $ts->getClasses());
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function testClassWithMultipleAnonymousClassesAndFunctionsIsHandledCorrectly()
128 128
     {
129
-        $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'class_with_multiple_anonymous_classes_and_functions.php');
129
+        $ts = new PHP_Token_Stream(TEST_FILES_PATH.'class_with_multiple_anonymous_classes_and_functions.php');
130 130
 
131 131
         $classes = $ts->getClasses();
132 132
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function testClassWithMethodNamedEmptyIsHandledCorrectly()
145 145
     {
146
-        $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'class_with_method_named_empty.php');
146
+        $ts = new PHP_Token_Stream(TEST_FILES_PATH.'class_with_method_named_empty.php');
147 147
 
148 148
         $classes = $ts->getClasses();
149 149
 
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/Token/IncludeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     protected function setUp()
21 21
     {
22
-        $this->ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source3.php');
22
+        $this->ts = new PHP_Token_Stream(TEST_FILES_PATH.'source3.php');
23 23
     }
24 24
 
25 25
     /**
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/Token/ClosureTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     protected function setUp()
21 21
     {
22
-        $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'closure.php');
22
+        $ts = new PHP_Token_Stream(TEST_FILES_PATH.'closure.php');
23 23
 
24 24
         foreach ($ts as $token) {
25 25
             if ($token instanceof PHP_Token_FUNCTION) {
Please login to merge, or discard this patch.