mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Code style fixes
This commit is contained in:
parent
3a7c8fd0d7
commit
e4fd9b4ff7
@ -136,7 +136,7 @@ class ContentNegotiator
|
|||||||
}
|
}
|
||||||
|
|
||||||
$negotiator = new ContentNegotiator();
|
$negotiator = new ContentNegotiator();
|
||||||
$negotiator->$chosenFormat( $response );
|
$negotiator->$chosenFormat($response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -64,5 +64,4 @@ class RateLimitMiddlewareTest extends FunctionalTest
|
|||||||
$this->assertEquals(60, $response->getHeader('retry-after'));
|
$this->assertEquals(60, $response->getHeader('retry-after'));
|
||||||
$this->assertNotEquals('Success', $response->getBody());
|
$this->assertNotEquals('Success', $response->getBody());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,6 @@ class RateLimiterTest extends SapphireTest
|
|||||||
$this->assertEquals(0, $rateLimiter->getNumAttemptsRemaining());
|
$this->assertEquals(0, $rateLimiter->getNumAttemptsRemaining());
|
||||||
$rateLimiter->hit();
|
$rateLimiter->hit();
|
||||||
$this->assertEquals(0, $rateLimiter->getNumAttemptsRemaining());
|
$this->assertEquals(0, $rateLimiter->getNumAttemptsRemaining());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetTimeToReset()
|
public function testGetTimeToReset()
|
||||||
@ -125,5 +124,4 @@ class RateLimiterTest extends SapphireTest
|
|||||||
$rateLimiter->hit();
|
$rateLimiter->hit();
|
||||||
$this->assertFalse($rateLimiter->canAccess());
|
$this->assertFalse($rateLimiter->canAccess());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user