Passed
Push — master ( 9d4e3e...5a9663 )
by Dev
98:16 queued 83:19
created
src/Extension/Admin/PageHasMedia.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     protected function getMedialHelp($media)
21 21
     {
22
-        if (! ($media && $media->getMedia() && false !== strpos($media->getMimeType(), 'image/'))) {
22
+        if (!($media && $media->getMedia() && false !== strpos($media->getMimeType(), 'image/'))) {
23 23
             return null;
24 24
         }
25 25
 
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
                 'required' => false,
54 54
                 'btn_delete' => false,
55 55
                 'btn_edit' => false,
56
-                'btn_add' => (! $media) ? ' ' : false,
57
-                'btn_list' => (! $media) ? ' ' : false,
56
+                'btn_add' => (!$media) ? ' ' : false,
57
+                'btn_list' => (!$media) ? ' ' : false,
58 58
                 'sonata_help' => $this->getMedialHelp($media),
59 59
                 ]
60 60
             )
Please login to merge, or discard this patch.
src/Extension/TemplateEditor/ElementAdmin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         if (null !== $encodedPath) {
32 32
             $element = $this->getElements()->getOneByEncodedPath($encodedPath);
33
-            if (! $element) {
33
+            if (!$element) {
34 34
                 throw $this->createNotFoundException('This element does not exist...');
35 35
             }
36 36
         }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $process = new Process(['rm', '-rf', $twigCacheFolder]);
46 46
         $process->run();
47 47
 
48
-        if (! $process->isSuccessful()) {
48
+        if (!$process->isSuccessful()) {
49 49
             throw new ProcessFailedException($process);
50 50
         }
51 51
     }
Please login to merge, or discard this patch.
src/Extension/UpdateNotification/PageUpdateMailNotifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
     public function send()
69 69
     {
70
-        if (! $this->emailTo) {
70
+        if (!$this->emailTo) {
71 71
             return;
72 72
         }
73 73
 
Please login to merge, or discard this patch.
src/Extension/PageScanner/PageScannerService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -167,11 +167,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Extension/StaticGenerator/StaticAppGenerator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Validator/Constraints/PageRenderingValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.