Passed
Push — master ( 04f1df...1c876c )
by Dev
47:54 queued 33:07
created
src/EventListener/MediaListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 
124 124
             $this->eventDispatcher->addListener(
125 125
                 KernelEvents::TERMINATE,
126
-                function () use ($media) {
126
+                function() use ($media) {
127 127
                     $this->cacheGenerator->generateCache($media);
128 128
                 }
129 129
             );
Please login to merge, or discard this patch.
src/Service/MediaCacheGeneratorService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $pathWebP = $this->projectDir.'/public/'.$media->getRelativeDir().'/'.$filter.'/'.$media->getSlug().'.webp';
119 119
         $webPConverterOptions = self::$webPConverterOptions;
120 120
 
121
-        $this->pool->add(function () use ($pathJpg, $pathWebP, $webPConverterOptions, $filter) {
121
+        $this->pool->add(function() use ($pathJpg, $pathWebP, $webPConverterOptions, $filter) {
122 122
             // took 46s (vs 43s) to add liip generation in async
123 123
             //exec($projectDir.'/bin/console liip:imagine:cache:resolve "'.$path.'" --force --filter='.$filter
124 124
             //.' >/dev/null 2>&1 &');
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $source = $this->projectDir.$media->getPath();
133 133
         //self::createWebPStatic($destination, $source);
134 134
 
135
-        $this->pool->add(function () use ($destination, $source) {
135
+        $this->pool->add(function() use ($destination, $source) {
136 136
             self::createWebPStatic($destination, $source);
137 137
         });
138 138
     }
Please login to merge, or discard this patch.
src/Extension/Admin/PageAdmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $columnFields = [
62 62
             'admin.page.state.label' => ['createdAt', 'metaRobots'],
63 63
             'admin.page.permanlien.label' => ['host', 'slug', 'parentPage'],
64
-            'admin.page.extended.label' => ['expand' => true, 'fields' => ['mainImage', 'name', 'title',  'excrept']],
64
+            'admin.page.extended.label' => ['expand' => true, 'fields' => ['mainImage', 'name', 'title', 'excrept']],
65 65
             'admin.page.translations.label' => ['locale', 'translations'],
66 66
             'admin.page.otherProperties.label' => ['expand' => true, 'fields' => ['otherProperties']],
67 67
             'admin.page.images.label' => ['images'],
Please login to merge, or discard this patch.
src/Security/UserAuthenticator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,13 +65,13 @@
 block discarded – undo
65 65
     public function getUser($credentials, UserProviderInterface $userProvider)
66 66
     {
67 67
         $token = new CsrfToken('authenticate', $credentials['csrf_token']);
68
-        if (! $this->csrfTokenManager->isTokenValid($token)) {
68
+        if (!$this->csrfTokenManager->isTokenValid($token)) {
69 69
             throw new InvalidCsrfTokenException();
70 70
         }
71 71
 
72 72
         $user = $this->entityManager->getRepository(User::class)->findOneBy(['email' => $credentials['email']]);
73 73
 
74
-        if (! $user) {
74
+        if (!$user) {
75 75
             // fail authentication with a custom error
76 76
             throw new CustomUserMessageAuthenticationException('security.login.email_not_found');
77 77
         }
Please login to merge, or discard this patch.
src/DependencyInjection/PiedWebCMSExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     {
60 60
         $result = [];
61 61
         foreach ($apps as $app) {
62
-            if (! $app['template']) {
62
+            if (!$app['template']) {
63 63
                 $app['template'] = $pwcTemplate;
64 64
             }
65 65
             $result[$app['hosts'][0]] = $app;
Please login to merge, or discard this patch.
src/EventListener/PageListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function preRemove(Page $page)
40 40
     {
41 41
         // method_exists($page, 'getChildrenPages') &&
42
-        if (! $page->getChildrenPages()->isEmpty()) {
42
+        if (!$page->getChildrenPages()->isEmpty()) {
43 43
             foreach ($page->getChildrenPages() as $cPage) {
44 44
                 $cPage->setParentPage(null);
45 45
             }
Please login to merge, or discard this patch.
src/Service/PageMainContentManager/Raw.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         preg_match_all('/(?:!\[(.*?)\]\((.*?)\))/', $body, $matches);
147 147
 
148
-        if (! isset($matches[1])) {
148
+        if (!isset($matches[1])) {
149 149
             return;
150 150
         }
151 151
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
     protected function render($string)
169 169
     {
170
-        if (! $string) {
170
+        if (!$string) {
171 171
             return '';
172 172
         }
173 173
 
Please login to merge, or discard this patch.
src/Service/WebPConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         $defaultConverterOptions = [];
66 66
 
67 67
         foreach ($this->options2->getOptionsMap() as $id => $option) {
68
-            if ($option->isValueExplicitlySet() && ! ($option instanceof GhostOption)) {
68
+            if ($option->isValueExplicitlySet() && !($option instanceof GhostOption)) {
69 69
                 //$this->logLn('hi' . $id);
70 70
                 $defaultConverterOptions[$id] = $option->getValue();
71 71
             }
Please login to merge, or discard this patch.
src/Utils/LastTime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function get($default = false)
37 37
     {
38
-        if (! file_exists($this->filePath)) {
38
+        if (!file_exists($this->filePath)) {
39 39
             return false === $default ? false : new DateTime($default);
40 40
         }
41 41
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function setWasRun($datetime = 'now', $setIfNotExist = true): void
46 46
     {
47
-        if (! file_exists($this->filePath)) {
47
+        if (!file_exists($this->filePath)) {
48 48
             if (false === $setIfNotExist) {
49 49
                 return;
50 50
             }
Please login to merge, or discard this patch.