Completed
Push — master ( fd88a6...8479c6 )
by Naveen
15:14 queued 06:42
created
diff/src/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
         $j = $toLength;
55 55
 
56 56
         while ($i > 0 && $j > 0) {
57
-            if ($from[$i-1] === $to[$j-1]) {
58
-                $common[] = $from[$i-1];
57
+            if ($from[$i - 1] === $to[$j - 1]) {
58
+                $common[] = $from[$i - 1];
59 59
                 --$i;
60 60
                 --$j;
61 61
             } else {
Please login to merge, or discard this patch.
vendor/sebastian/diff/tests/LCS/TimeEfficientImplementationTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -101,15 +101,15 @@
 block discarded – undo
101 101
 
102 102
     public function testCommonSubsequence()
103 103
     {
104
-        $from     = array('A',      'C',      'E', 'F', 'G');
105
-        $to       = array('A', 'B',      'D', 'E',           'H');
106
-        $expected = array('A',                'E');
104
+        $from     = array('A', 'C', 'E', 'F', 'G');
105
+        $to       = array('A', 'B', 'D', 'E', 'H');
106
+        $expected = array('A', 'E');
107 107
         $common   = $this->implementation->calculate($from, $to);
108 108
         $this->assertEquals($expected, $common);
109 109
 
110
-        $from     = array('A',      'C',      'E', 'F', 'G');
111
-        $to       = array('B', 'C', 'D', 'E', 'F',      'H');
112
-        $expected = array('C',                'E', 'F');
110
+        $from     = array('A', 'C', 'E', 'F', 'G');
111
+        $to       = array('B', 'C', 'D', 'E', 'F', 'H');
112
+        $expected = array('C', 'E', 'F');
113 113
         $common   = $this->implementation->calculate($from, $to);
114 114
         $this->assertEquals($expected, $common);
115 115
 
Please login to merge, or discard this patch.
vendor/sebastian/exporter/tests/ExporterTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $obj2 = new \stdClass;
31 31
         $obj2->foo = 'bar';
32 32
 
33
-        $obj3 = (object)array(1,2,"Test\r\n",4,5,6,7,8);
33
+        $obj3 = (object) array(1, 2, "Test\r\n", 4, 5, 6, 7, 8);
34 34
 
35 35
         $obj = new \stdClass;
36 36
         //@codingStandardsIgnoreStart
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             array(1.2, '1.2'),
60 60
             array(fopen('php://memory', 'r'), 'resource(%d) of type (stream)'),
61 61
             array('1', "'1'"),
62
-            array(array(array(1,2,3), array(3,4,5)),
62
+            array(array(array(1, 2, 3), array(3, 4, 5)),
63 63
         <<<EOF
64 64
 Array &0 (
65 65
     0 => Array &1 (
Please login to merge, or discard this patch.
vendor/sebastian/global-state/tests/SnapshotTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function testStaticAttributes()
22 22
     {
23 23
         $blacklist = $this->getBlacklist();
24
-        $blacklist->method('isStaticAttributeBlacklisted')->willReturnCallback(function ($class) {
24
+        $blacklist->method('isStaticAttributeBlacklisted')->willReturnCallback(function($class) {
25 25
             return $class !== 'SebastianBergmann\GlobalState\TestFixture\SnapshotClass';
26 26
         });
27 27
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function testFunctions()
47 47
     {
48
-        require_once __DIR__.'/_fixture/SnapshotFunctions.php';
48
+        require_once __DIR__ . '/_fixture/SnapshotFunctions.php';
49 49
 
50 50
         $snapshot = new Snapshot($this->getBlacklist(), false, false, false, true, false, false, false, false, false);
51 51
         $functions = $snapshot->functions();
Please login to merge, or discard this patch.
vendor/sebastian/global-state/tests/_fixture/SnapshotClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public static function init()
29 29
     {
30 30
         self::$dom = new DomDocument();
31
-        self::$closure = function () {};
31
+        self::$closure = function() {};
32 32
         self::$arrayObject = new ArrayObject(array(1, 2, 3));
33 33
         self::$snapshotDomDocument = new SnapshotDomDocument();
34 34
         self::$resource = fopen('php://memory', 'r');
Please login to merge, or discard this patch.
vendor/sebastian/recursion-context/tests/ContextTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $obj2 = new \stdClass();
46 46
         $obj2->foo = 'bar';
47 47
 
48
-        $obj3 = (object) array(1,2,"Test\r\n",4,5,6,7,8);
48
+        $obj3 = (object) array(1, 2, "Test\r\n", 4, 5, 6, 7, 8);
49 49
 
50 50
         $obj = new \stdClass();
51 51
         //@codingStandardsIgnoreStart
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $obj->object = $obj2;
60 60
         $obj->objectagain = $obj2;
61 61
         $obj->array = array('foo' => 'bar');
62
-        $obj->array2 = array(1,2,3,4,5,6);
62
+        $obj->array2 = array(1, 2, 3, 4, 5, 6);
63 63
         $obj->array3 = array($obj, $obj2, $obj3);
64 64
         $obj->self = $obj;
65 65
 
Please login to merge, or discard this patch.
vendor/symfony/yaml/Dumper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $prefix = $indent ? str_repeat(' ', $indent) : '';
53 53
 
54 54
         if ($inline <= 0 || !is_array($input) || empty($input)) {
55
-            $output .= $prefix.Inline::dump($input, $exceptionOnInvalidType, $objectSupport);
55
+            $output .= $prefix . Inline::dump($input, $exceptionOnInvalidType, $objectSupport);
56 56
         } else {
57 57
             $isAHash = array_keys($input) !== range(0, count($input) - 1);
58 58
 
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
 
62 62
                 $output .= sprintf('%s%s%s%s',
63 63
                     $prefix,
64
-                    $isAHash ? Inline::dump($key, $exceptionOnInvalidType, $objectSupport).':' : '-',
64
+                    $isAHash ? Inline::dump($key, $exceptionOnInvalidType, $objectSupport) . ':' : '-',
65 65
                     $willBeInlined ? ' ' : "\n",
66 66
                     $this->dump($value, $inline - 1, $willBeInlined ? 0 : $indent + $this->indentation, $exceptionOnInvalidType, $objectSupport)
67
-                ).($willBeInlined ? "\n" : '');
67
+                ) . ($willBeInlined ? "\n" : '');
68 68
             }
69 69
         }
70 70
 
Please login to merge, or discard this patch.
vendor/symfony/yaml/Escaper.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,16 +29,16 @@  discard block
 block discarded – undo
29 29
     // on the input arrays. This ordering of the characters avoids the use of strtr,
30 30
     // which performs more slowly.
31 31
     private static $escapees = array('\\', '\\\\', '\\"', '"',
32
-                                     "\x00",  "\x01",  "\x02",  "\x03",  "\x04",  "\x05",  "\x06",  "\x07",
33
-                                     "\x08",  "\x09",  "\x0a",  "\x0b",  "\x0c",  "\x0d",  "\x0e",  "\x0f",
34
-                                     "\x10",  "\x11",  "\x12",  "\x13",  "\x14",  "\x15",  "\x16",  "\x17",
35
-                                     "\x18",  "\x19",  "\x1a",  "\x1b",  "\x1c",  "\x1d",  "\x1e",  "\x1f",
32
+                                     "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07",
33
+                                     "\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f",
34
+                                     "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17",
35
+                                     "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f",
36 36
                                      "\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9");
37 37
     private static $escaped = array('\\\\', '\\"', '\\\\', '\\"',
38
-                                     '\\0',   '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a',
39
-                                     '\\b',   '\\t',   '\\n',   '\\v',   '\\f',   '\\r',   '\\x0e', '\\x0f',
38
+                                     '\\0', '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a',
39
+                                     '\\b', '\\t', '\\n', '\\v', '\\f', '\\r', '\\x0e', '\\x0f',
40 40
                                      '\\x10', '\\x11', '\\x12', '\\x13', '\\x14', '\\x15', '\\x16', '\\x17',
41
-                                     '\\x18', '\\x19', '\\x1a', '\\e',   '\\x1c', '\\x1d', '\\x1e', '\\x1f',
41
+                                     '\\x18', '\\x19', '\\x1a', '\\e', '\\x1c', '\\x1d', '\\x1e', '\\x1f',
42 42
                                      '\\N', '\\_', '\\L', '\\P');
43 43
 
44 44
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function requiresDoubleQuoting($value)
52 52
     {
53
-        return preg_match('/'.self::REGEX_CHARACTER_TO_ESCAPE.'/u', $value);
53
+        return preg_match('/' . self::REGEX_CHARACTER_TO_ESCAPE . '/u', $value);
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
vendor/symfony/yaml/Inline.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                 return 'null';
106 106
             case is_object($value):
107 107
                 if ($objectSupport) {
108
-                    return '!php/object:'.serialize($value);
108
+                    return '!php/object:' . serialize($value);
109 109
                 }
110 110
 
111 111
                 if ($exceptionOnInvalidType) {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                         $repr = str_ireplace('INF', '.Inf', $repr);
135 135
                     } elseif (floor($value) == $value && $repr == $value) {
136 136
                         // Preserve float data type since storing a whole number will result in integer value.
137
-                        $repr = '!!float '.$repr;
137
+                        $repr = '!!float ' . $repr;
138 138
                     }
139 139
                 } else {
140 140
                     $repr = is_string($value) ? "'$value'" : (string) $value;
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         $keys = array_keys($value);
173 173
         $keysCount = count($keys);
174 174
         if ((1 === $keysCount && '0' == $keys[0])
175
-            || ($keysCount > 1 && array_reduce($keys, function ($v, $w) { return (int) $v + $w; }, 0) === $keysCount * ($keysCount - 1) / 2)
175
+            || ($keysCount > 1 && array_reduce($keys, function($v, $w) { return (int) $v + $w; }, 0) === $keysCount * ($keysCount - 1) / 2)
176 176
         ) {
177 177
             $output = array();
178 178
             foreach ($value as $val) {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
                 if (preg_match('/[ \t]+#/', $output, $match, PREG_OFFSET_CAPTURE)) {
230 230
                     $output = substr($output, 0, $match[0][1]);
231 231
                 }
232
-            } elseif (preg_match('/^(.+?)('.implode('|', $delimiters).')/', substr($scalar, $i), $match)) {
232
+            } elseif (preg_match('/^(.+?)(' . implode('|', $delimiters) . ')/', substr($scalar, $i), $match)) {
233 233
                 $output = $match[1];
234 234
                 $i += strlen($output);
235 235
             } else {
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
      */
262 262
     private static function parseQuotedScalar($scalar, &$i)
263 263
     {
264
-        if (!preg_match('/'.self::REGEX_QUOTED_STRING.'/Au', substr($scalar, $i), $match)) {
264
+        if (!preg_match('/' . self::REGEX_QUOTED_STRING . '/Au', substr($scalar, $i), $match)) {
265 265
             throw new ParseException(sprintf('Malformed inline YAML string (%s).', substr($scalar, $i)));
266 266
         }
267 267
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
                         // embedded mapping?
322 322
                         try {
323 323
                             $pos = 0;
324
-                            $value = self::parseMapping('{'.$value.'}', $pos, $references);
324
+                            $value = self::parseMapping('{' . $value . '}', $pos, $references);
325 325
                         } catch (\InvalidArgumentException $e) {
326 326
                             // no, it's not
327 327
                         }
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
                         return '0' == $scalar[1] ? octdec($scalar) : (((string) $raw === (string) $cast) ? $cast : $raw);
511 511
                     case is_numeric($scalar):
512 512
                     case preg_match(self::getHexRegex(), $scalar):
513
-                        return '0x' === $scalar[0].$scalar[1] ? hexdec($scalar) : (float) $scalar;
513
+                        return '0x' === $scalar[0] . $scalar[1] ? hexdec($scalar) : (float) $scalar;
514 514
                     case '.inf' === $scalarLower:
515 515
                     case '.nan' === $scalarLower:
516 516
                         return -log(0);
Please login to merge, or discard this patch.