@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | protected $languages; |
67 | 67 | |
68 | - public function __construct(eZRepository $repository, $entityManager, array $settings=array(), $contentTypeIdentifier='') |
|
68 | + public function __construct(eZRepository $repository, $entityManager, array $settings = array(), $contentTypeIdentifier = '') |
|
69 | 69 | { |
70 | 70 | $this->repository = $repository; |
71 | 71 | $this->entityManager = $entityManager; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | return $this; |
86 | 86 | } |
87 | 87 | |
88 | - public function setLogger(LoggerInterface $logger=null) |
|
88 | + public function setLogger(LoggerInterface $logger = null) |
|
89 | 89 | { |
90 | 90 | $this->logger = $logger; |
91 | 91 | return $this; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | public function __call($method, $args) |
123 | 123 | { |
124 | - switch($method) { |
|
124 | + switch ($method) { |
|
125 | 125 | case 'emergency': |
126 | 126 | case 'alert': |
127 | 127 | case 'critical': |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param array $settings used to pass to the Entity instance anything that would be done via DIC if it was a service |
43 | 43 | * @throws \InvalidArgumentException |
44 | 44 | */ |
45 | - public function __construct(eZRepository $repository, Content $content=null, Location $location=null, array $settings = array()) |
|
45 | + public function __construct(eZRepository $repository, Content $content = null, Location $location = null, array $settings = array()) |
|
46 | 46 | { |
47 | 47 | if ($content == null && $location == null) { |
48 | 48 | throw new \InvalidArgumentException('Trying to create Entity with no content or location'); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function content() |
83 | 83 | { |
84 | - if($this->content == null){ |
|
84 | + if ($this->content == null) { |
|
85 | 85 | $this->content = $this->repository->getContentService()->loadContent($this->location->contentId, $this->languages); |
86 | 86 | } |
87 | 87 | return $this->content; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public function location() |
95 | 95 | { |
96 | - if($this->location == null){ |
|
96 | + if ($this->location == null) { |
|
97 | 97 | $this->location = $this->repository->getLocationService()->loadLocation($this->content->contentInfo->mainLocationId); |
98 | 98 | } |
99 | 99 | return $this->location; |