$diffOp->expects( $this->any() )
->method( 'getOrig' )
->will( $this->returnValue( $orig ) );
- if( $type === 'change' ) {
+ if ( $type === 'change' ) {
$diffOp->expects( $this->any() )
->method( 'getClosing' )
->with( $this->isType( 'integer' ) )
- ->will( $this->returnCallback( function() {
+ ->will( $this->returnCallback( function () {
return 'mockLine';
} ) );
} else {
);
$otherTestCases[] = array(
$this->getMockDiff( array( $this->getMockDiffOp( 'change', array( 'd1' ), array( 'a1' ) ) ) ),
- array( array( 'action' => 'change', 'old' => 'd1', 'new' => 'mockLine', 'newline' => 1, 'oldline' => 1 ) ),
+ array( array(
+ 'action' => 'change',
+ 'old' => 'd1',
+ 'new' => 'mockLine',
+ 'newline' => 1, 'oldline' => 1
+ ) ),
);
$otherTestCases[] = array(
- $this->getMockDiff( array( $this->getMockDiffOp( 'change', array( 'd1', 'd2' ), array( 'a1', 'a2' ) ) ) ),
+ $this->getMockDiff( array( $this->getMockDiffOp(
+ 'change',
+ array( 'd1', 'd2' ),
+ array( 'a1', 'a2' )
+ ) ) ),
array(
- array( 'action' => 'change', 'old' => 'd1', 'new' => 'mockLine', 'newline' => 1, 'oldline' => 1 ),
- array( 'action' => 'change', 'old' => 'd2', 'new' => 'mockLine', 'newline' => 2, 'oldline' => 2 ),
+ array(
+ 'action' => 'change',
+ 'old' => 'd1',
+ 'new' => 'mockLine',
+ 'newline' => 1, 'oldline' => 1
+ ),
+ array(
+ 'action' => 'change',
+ 'old' => 'd2',
+ 'new' => 'mockLine',
+ 'newline' => 2, 'oldline' => 2
+ ),
),
);
$testCases = array();
- foreach( $emptyArrayTestCases as $testCase ) {
+ foreach ( $emptyArrayTestCases as $testCase ) {
$testCases[] = array( $testCase, array() );
}
- foreach( $otherTestCases as $testCase ) {
+ foreach ( $otherTestCases as $testCase ) {
$testCases[] = array( $testCase[0], $testCase[1] );
}
return $testCases;