PSR-2 fixes
This commit is contained in:
		
							parent
							
								
									518fe175b8
								
							
						
					
					
						commit
						aaf09e61c1
					
				
					 3 changed files with 5 additions and 4 deletions
				
			
		|  | @ -53,7 +53,7 @@ class FormatTalksExtension extends Twig_Extension | |||
|    */ | ||||
|     public function getUpcoming($talks, array $eventData = []) | ||||
|     { | ||||
|           return $this->format($talks, $eventData) | ||||
|         return $this->format($talks, $eventData) | ||||
|               ->filter(function ($talk) { | ||||
|                   return $talk['event']['date'] >= $this->today; | ||||
|               }) | ||||
|  |  | |||
|  | @ -1,6 +1,7 @@ | |||
| <?php | ||||
| 
 | ||||
| function tap($value, $callback) { | ||||
| function tap($value, $callback) | ||||
| { | ||||
|     $callback($value); | ||||
| 
 | ||||
|     return $value; | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ class FormatTalksTest extends TestCase | |||
|      */ | ||||
|     public function testFormat() | ||||
|     { | ||||
|             $event_data = [ | ||||
|         $event_data = [ | ||||
|                 'event-a' => [ | ||||
|                     'name' => 'Event A', | ||||
|                     'location' => 'Somewhere', | ||||
|  | @ -40,7 +40,7 @@ class FormatTalksTest extends TestCase | |||
|                 ], | ||||
|             ]; | ||||
| 
 | ||||
|             $talks = [ | ||||
|         $talks = [ | ||||
|                 [ | ||||
|                     'title' => 'Talk A', | ||||
|                     'events' => [ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue