File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,9 @@ protected function doParse()
102
102
while ($ this ->expects ('@@ ' )) {
103
103
$ vars = $ this ->consumeRegexp ('/-(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))?/ ' );
104
104
$ rangeOldStart = (int ) $ vars [1 ];
105
- $ rangeOldCount = (int ) $ vars [2 ];
105
+ $ rangeOldCount = (int ) ( $ vars [2 ] ?? 1 ) ;
106
106
$ rangeNewStart = (int ) $ vars [3 ];
107
- $ rangeNewCount = isset ( $ vars [ 4 ]) ? ( int ) $ vars [4 ] : ( int ) $ vars [ 2 ]; // @todo Ici, t'as pris un gros raccourci mon loulou
107
+ $ rangeNewCount = ( int ) ( $ vars [4 ] ?? 1 );
108
108
$ this ->consume (' @@ ' );
109
109
$ this ->consumeTo ("\n" );
110
110
$ this ->consumeNewLine ();
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ public function testGetBlobWithExistingWorks($repository)
43
43
public function testGetSize ($ repository )
44
44
{
45
45
$ size = $ repository ->getSize ();
46
- $ this ->assertGreaterThanOrEqual (53 , $ size , 'Repository is at least 53KB ' );
47
- $ this ->assertLessThan (80 , $ size , 'Repository is less than 80KB ' );
46
+ $ this ->assertGreaterThanOrEqual (57 , $ size , 'Repository is at least 57KB ' );
47
+ $ this ->assertLessThan (84 , $ size , 'Repository is less than 84KB ' );
48
48
}
49
49
50
50
public function testIsBare ()
You can’t perform that action at this time.
0 commit comments