Completed
Push — master ( 96df1a...267f86 )
by Naveen
09:52
created
vendor/phpunit/php-token-stream/tests/Token/InterfaceTest.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function testGetPackageNamespace() {
118 118
         $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php');
119
-        foreach($tokenStream as $token) {
120
-            if($token instanceOf PHP_Token_INTERFACE) {
119
+        foreach ($tokenStream as $token) {
120
+            if ($token instanceOf PHP_Token_INTERFACE) {
121 121
                 $package = $token->getPackage();
122 122
                 $this->assertSame('Foo\\Bar', $package['namespace']);
123 123
             }
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
     public function testGetPackageNamespaceForFileWithMultipleNamespaces($filepath) {
140 140
         $tokenStream = new PHP_Token_Stream($filepath);
141 141
         $firstClassFound = false;
142
-        foreach($tokenStream as $token) {
143
-            if($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) {
142
+        foreach ($tokenStream as $token) {
143
+            if ($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) {
144 144
                 $package = $token->getPackage();
145 145
                 $this->assertSame('TestClassInBar', $token->getName());
146 146
                 $this->assertSame('Foo\\Bar', $package['namespace']);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                 continue;
149 149
             }
150 150
             // Secound class
151
-            if($token instanceOf PHP_Token_INTERFACE) {
151
+            if ($token instanceOf PHP_Token_INTERFACE) {
152 152
                 $package = $token->getPackage();
153 153
                 $this->assertSame('TestClassInBaz', $token->getName());
154 154
                 $this->assertSame('Foo\\Baz', $package['namespace']);
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     }
160 160
 
161 161
     public function testGetPackageNamespaceIsEmptyForInterfacesThatAreNotWithinNamespaces() {
162
-        foreach($this->interfaces as $token) {
162
+        foreach ($this->interfaces as $token) {
163 163
             $package = $token->getPackage();
164 164
             $this->assertSame("", $package['namespace']);
165 165
         }
@@ -171,15 +171,15 @@  discard block
 block discarded – undo
171 171
     public function testGetPackageNamespaceWhenExtentingFromNamespaceClass() {
172 172
         $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classExtendsNamespacedClass.php');
173 173
         $firstClassFound = false;
174
-        foreach($tokenStream as $token) {
175
-            if($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) {
174
+        foreach ($tokenStream as $token) {
175
+            if ($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) {
176 176
                 $package = $token->getPackage();
177 177
                 $this->assertSame('Baz', $token->getName());
178 178
                 $this->assertSame('Foo\\Bar', $package['namespace']);
179 179
                 $firstClassFound = true;
180 180
                 continue;
181 181
             }
182
-            if($token instanceOf PHP_Token_INTERFACE) {
182
+            if ($token instanceOf PHP_Token_INTERFACE) {
183 183
                 $package = $token->getPackage();
184 184
                 $this->assertSame('Extender', $token->getName());
185 185
                 $this->assertSame('Other\\Space', $package['namespace']);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@
 block discarded – undo
33 33
         foreach ($ts as $token) {
34 34
             if ($token instanceof PHP_Token_CLASS) {
35 35
                 $this->class = $token;
36
-            }
37
-            elseif ($token instanceof PHP_Token_INTERFACE) {
36
+            } elseif ($token instanceof PHP_Token_INTERFACE) {
38 37
                 $this->interfaces[$i] = $token;
39 38
                 $i++;
40 39
             }
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/Token/NamespaceTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function testGetName()
29 29
     {
30 30
         $tokenStream = new PHP_Token_Stream(
31
-          TEST_FILES_PATH . 'classInNamespace.php'
31
+            TEST_FILES_PATH . 'classInNamespace.php'
32 32
         );
33 33
 
34 34
         foreach ($tokenStream as $token) {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
     public function testGetStartLineWithUnscopedNamespace()
42 42
     {
43 43
         $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php');
44
-        foreach($tokenStream as $token) {
45
-            if($token instanceOf PHP_Token_NAMESPACE) {
44
+        foreach ($tokenStream as $token) {
45
+            if ($token instanceOf PHP_Token_NAMESPACE) {
46 46
                 $this->assertSame(2, $token->getLine());
47 47
             }
48 48
         }
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
     public function testGetEndLineWithUnscopedNamespace()
52 52
     {
53 53
         $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php');
54
-        foreach($tokenStream as $token) {
55
-            if($token instanceOf PHP_Token_NAMESPACE) {
54
+        foreach ($tokenStream as $token) {
55
+            if ($token instanceOf PHP_Token_NAMESPACE) {
56 56
                 $this->assertSame(2, $token->getEndLine());
57 57
             }
58 58
         }
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
     public function testGetStartLineWithScopedNamespace()
61 61
     {
62 62
         $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInScopedNamespace.php');
63
-        foreach($tokenStream as $token) {
64
-            if($token instanceOf PHP_Token_NAMESPACE) {
63
+        foreach ($tokenStream as $token) {
64
+            if ($token instanceOf PHP_Token_NAMESPACE) {
65 65
                 $this->assertSame(2, $token->getLine());
66 66
             }
67 67
         }
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
     public function testGetEndLineWithScopedNamespace()
71 71
     {
72 72
         $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInScopedNamespace.php');
73
-        foreach($tokenStream as $token) {
74
-            if($token instanceOf PHP_Token_NAMESPACE) {
73
+        foreach ($tokenStream as $token) {
74
+            if ($token instanceOf PHP_Token_NAMESPACE) {
75 75
                 $this->assertSame(8, $token->getEndLine());
76 76
             }
77 77
         }
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.
tests/_fixture/class_with_method_that_declares_anonymous_class2.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 class Test {
3
-	public function methodOne() {
4
-		$foo = new class {
5
-			public function method_in_anonymous_class() {
6
-				return true;
7
-			}
8
-		};
3
+    public function methodOne() {
4
+        $foo = new class {
5
+            public function method_in_anonymous_class() {
6
+                return true;
7
+            }
8
+        };
9 9
 
10
-		return $foo->method_in_anonymous_class();
11
-	}
10
+        return $foo->method_in_anonymous_class();
11
+    }
12 12
 
13
-	public function methodTwo() {
14
-		return false;
15
-	}
13
+    public function methodTwo() {
14
+        return false;
15
+    }
16 16
 }
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/_fixture/closure.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 $function1 = function($foo, $bar) use ($var) {};
3 3
 $function2 = function(Foo $foo, $bar) use ($var) {};
4
-$function3 = function ($foo, $bar, $baz) {};
5
-$function4 = function (Foo $foo, $bar, $baz) {};
6
-$function5 = function () {};
4
+$function3 = function($foo, $bar, $baz) {};
5
+$function4 = function(Foo $foo, $bar, $baz) {};
6
+$function5 = function() {};
7 7
 $function6 = function() {};
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/_fixture/source.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Some comment
4
- */
3
+     * Some comment
4
+     */
5 5
 class Foo{function foo(){}
6 6
 
7 7
     /**
Please login to merge, or discard this 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/phpunit-mock-objects/src/Framework/MockObject/Matcher.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
 
108 108
         if ($this->afterMatchBuilderId !== null) {
109 109
             $builder = $invocation->object
110
-                                  ->__phpunit_getInvocationMocker()
111
-                                  ->lookupId($this->afterMatchBuilderId);
110
+                                    ->__phpunit_getInvocationMocker()
111
+                                    ->lookupId($this->afterMatchBuilderId);
112 112
 
113 113
             if (!$builder) {
114 114
                 throw new PHPUnit_Framework_Exception(
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
     {
161 161
         if ($this->afterMatchBuilderId !== null) {
162 162
             $builder = $invocation->object
163
-                                  ->__phpunit_getInvocationMocker()
164
-                                  ->lookupId($this->afterMatchBuilderId);
163
+                                    ->__phpunit_getInvocationMocker()
164
+                                    ->lookupId($this->afterMatchBuilderId);
165 165
 
166 166
             if (!$builder) {
167 167
                 throw new PHPUnit_Framework_Exception(
Please login to merge, or discard this patch.
src/Framework/MockObject/Matcher/ConsecutiveParameters.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         if (isset($this->_parameterGroups[$callIndex])) {
89 89
             $parameters = $this->_parameterGroups[$callIndex];
90 90
         } else {
91
-          // no parameter assertion for this call index
91
+            // no parameter assertion for this call index
92 92
             return;
93 93
         }
94 94
 
Please login to merge, or discard this patch.
phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnCallback.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             );
46 46
         } else {
47 47
             return 'return result of user defined callback ' . $this->callback .
48
-                   ' with the passed arguments';
48
+                    ' with the passed arguments';
49 49
         }
50 50
     }
51 51
 }
Please login to merge, or discard this patch.