@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | protected function initHasAcceptsMediaWithValidation() |
26 | 26 | { |
27 | - $this->acceptsMedia(function ($file) { |
|
27 | + $this->acceptsMedia(function($file) { |
|
28 | 28 | /** @var AbstractValidator $validator */ |
29 | 29 | $validator = $this->getValidator(); |
30 | 30 | $constraint = $this->getConstraint(); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | protected function initHasAcceptsMediaEmpty() |
41 | 41 | { |
42 | - $this->acceptsMedia(function () { |
|
42 | + $this->acceptsMedia(function() { |
|
43 | 43 | return true; |
44 | 44 | }); |
45 | 45 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function persistDefaultMediaFromName($mediaName) |
35 | 35 | { |
36 | - $media = $this->get($mediaName,null); |
|
36 | + $media = $this->get($mediaName, null); |
|
37 | 37 | if ($media) { |
38 | 38 | $this->setDefaultMedia($media); |
39 | 39 | return $this->persistDefaultMedia(); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * @param ViolationsBag $bag |
22 | 22 | * @return FileUnacceptableForCollection |
23 | 23 | */ |
24 | - public static function createFromViolationsBag( $file, Collection $collection, ViolationsBag $bag) |
|
24 | + public static function createFromViolationsBag($file, Collection $collection, ViolationsBag $bag) |
|
25 | 25 | { |
26 | 26 | $exception = new static( |
27 | 27 | "The media was not accepted into the collection" |
@@ -42,7 +42,7 @@ |
||
42 | 42 | protected function hydrateMediaRepository($mediaRepository) |
43 | 43 | { |
44 | 44 | $mediaRepository->setRecord($this); |
45 | - if (method_exists($this,'hydrateMediaRepositoryCustom')) { |
|
45 | + if (method_exists($this, 'hydrateMediaRepositoryCustom')) { |
|
46 | 46 | $this->hydrateMediaRepositoryCustom($mediaRepository); |
47 | 47 | } |
48 | 48 | return $mediaRepository; |