@@ -167,11 +167,11 @@ discard block |
||
167 | 167 | { |
168 | 168 | foreach ($linkedDocs as $uri) { |
169 | 169 | ++$this->linksCheckedCounter; |
170 | - if (! \is_string($uri)) { |
|
170 | + if (!\is_string($uri)) { |
|
171 | 171 | continue; |
172 | 172 | } |
173 | - if (('/' == $uri[0] && ! $this->uriExist($uri)) |
|
174 | - || (0 === strpos($uri, 'http') && ! $this->urlExist($uri))) { |
|
173 | + if (('/' == $uri[0] && !$this->uriExist($uri)) |
|
174 | + || (0 === strpos($uri, 'http') && !$this->urlExist($uri))) { |
|
175 | 175 | $this->addError('<code>'.$uri.'</code> introuvable'); |
176 | 176 | } |
177 | 177 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | $this->everChecked[$slug] = ( |
218 | 218 | null === $page |
219 | - && ! file_exists($this->webDir.'/'.$slug) |
|
219 | + && !file_exists($this->webDir.'/'.$slug) |
|
220 | 220 | && 'feed.xml' !== $slug |
221 | 221 | ) ? false : true; |
222 | 222 |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $this->apps = $this->params->get('pwc.apps'); |
132 | 132 | $this->parser = HtmlCompressor::construct(); |
133 | 133 | |
134 | - if (! method_exists($this->filesystem, 'dumpFile')) { |
|
134 | + if (!method_exists($this->filesystem, 'dumpFile')) { |
|
135 | 135 | throw new \RuntimeException('Method dumpFile() is not available. Upgrade your Filesystem.'); |
136 | 136 | } |
137 | 137 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | public function generateAll($filter = null) |
143 | 143 | { |
144 | 144 | foreach ($this->apps as $app) { |
145 | - if ($filter && ! \in_array($filter, $app->getHost())) { |
|
145 | + if ($filter && !\in_array($filter, $app->getHost())) { |
|
146 | 146 | continue; |
147 | 147 | } |
148 | 148 | $this->generate($app, $this->mustGetPagesWithoutHost); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | if ('.' == $entry || '..' == $entry) { |
250 | 250 | continue; |
251 | 251 | } |
252 | - if (! \in_array($entry, $this->robotsFiles) && ! \in_array($entry, $this->dontCopy)) { |
|
252 | + if (!\in_array($entry, $this->robotsFiles) && !\in_array($entry, $this->dontCopy)) { |
|
253 | 253 | //$this->symlink( |
254 | 254 | if (true === $symlink) { |
255 | 255 | $this->filesystem->symlink( |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | { |
275 | 275 | $symlink = $this->mustSymlink(); |
276 | 276 | |
277 | - if (! file_exists($this->app->getStaticDir().'/download')) { |
|
277 | + if (!file_exists($this->app->getStaticDir().'/download')) { |
|
278 | 278 | $this->filesystem->mkdir($this->app->getStaticDir().'/download/'); |
279 | 279 | $this->filesystem->mkdir($this->app->getStaticDir().'/download/media'); |
280 | 280 | } |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | continue; |
286 | 286 | } |
287 | 287 | // if the file is an image, it's ever exist (maybe it's slow to check every files) |
288 | - if (! file_exists($this->webDir.'/media/default/'.$entry)) { |
|
288 | + if (!file_exists($this->webDir.'/media/default/'.$entry)) { |
|
289 | 289 | if (true === $symlink) { |
290 | 290 | $this->filesystem->symlink( |
291 | 291 | '../../../media/'.$entry, |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | public function validate($value, Constraint $constraint) |
22 | 22 | { |
23 | - if (! $constraint instanceof PageRendering) { |
|
23 | + if (!$constraint instanceof PageRendering) { |
|
24 | 24 | throw new UnexpectedTypeException($constraint, PageRendering::class); |
25 | 25 | } |
26 | 26 |