예제 #1
0
파일: Request.php 프로젝트: Mosaic/Mosaic
 /**
  * {@inheritdoc}
  */
 public function header(string $key = null, $default = null)
 {
     return Arr::unwrap($this->wrapped->getHeader($key), $default);
 }
예제 #2
0
파일: ArrTest.php 프로젝트: Mosaic/Mosaic
 public function test_it_returns_a_default_value_for_empty_arrays()
 {
     $this->assertEquals('bar', Arr::unwrap([], 'bar'));
 }