| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Mojolicious::Plugin::Images::Service::Dest; | 
| 2 | 7 |  |  | 7 |  | 31 | use Mojo::Base 'Mojolicious::Plugin::Images::Service'; | 
|  | 7 |  |  |  |  | 7 |  | 
|  | 7 |  |  |  |  | 31 |  | 
| 3 | 7 |  |  | 7 |  | 829 | use 5.20.0; | 
|  | 7 |  |  |  |  | 18 |  | 
|  | 7 |  |  |  |  | 202 |  | 
| 4 | 7 |  |  | 7 |  | 28 | use experimental 'signatures'; | 
|  | 7 |  |  |  |  | 7 |  | 
|  | 7 |  |  |  |  | 27 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | has from => sub { die "You have to define a 'from' attribute value" }; | 
| 7 |  |  |  |  |  |  |  | 
| 8 | 0 | 0 |  | 0 | 1 |  | sub sync($self, $id) { | 
|  | 0 | 0 |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 9 | 0 |  |  |  |  |  | my $from = $self->controller->images->${\$self->from}; | 
|  | 0 |  |  |  |  |  |  | 
| 10 | 0 |  |  |  |  |  | $self->write($id, $from->read($id)); | 
| 11 |  |  |  |  |  |  | } | 
| 12 |  |  |  |  |  |  |  | 
| 13 | 0 | 0 |  | 0 | 1 |  | sub read ($self, $id) { | 
|  | 0 | 0 |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 14 | 0 | 0 |  |  |  |  | $self->SUPER::read($id) or $self->sync($id); | 
| 15 |  |  |  |  |  |  | } | 
| 16 |  |  |  |  |  |  |  | 
| 17 |  |  |  |  |  |  | 1; | 
| 18 |  |  |  |  |  |  |  | 
| 19 |  |  |  |  |  |  | __END__ |