Completed
Push — symfony4 ( 6bce00...4f08c4 )
by
unknown
26s
created
src/SWP/Bundle/ContentBundle/Controller/AbstractMediaController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     public function getMedia(string $mediaId, string $extension): Response
53 53
     {
54 54
         $cacheKey = md5(serialize(['media_file', $mediaId]));
55
-        $media = $this->cacheProvider->get($cacheKey, function () use ($mediaId, $extension) {
55
+        $media = $this->cacheProvider->get($cacheKey, function() use ($mediaId, $extension) {
56 56
             return $this->fileProvider->getFile(ArticleMedia::handleMediaId($mediaId), $extension);
57 57
         });
58 58
 
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Twig/Cache/CacheBlockTagsCollector.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
     public function getSavedCacheBlockTags(string $cacheKey)
61 61
     {
62
-        return $this->cache->get($cacheKey, function () {
62
+        return $this->cache->get($cacheKey, function() {
63 63
             if (null !== $this->currentCacheBlockKey) {
64 64
                 $this->currentCacheBlockKey = null;
65 65
 
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Migrations/Version20180605111249.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * @param Schema $schema
41 41
      */
42
-   public function postUp(Schema $schema) : void
42
+    public function postUp(Schema $schema) : void
43 43
     {
44 44
         $entityManager = $this->container->get('doctrine.orm.default_entity_manager');
45 45
         $query = $entityManager
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/TenantAwareThemeContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
             return $this->themes[$key];
75 75
         }
76 76
 
77
-        return $this->cacheService->get('theme_'.$key, function () use ($tenant, $key) {
77
+        return $this->cacheService->get('theme_'.$key, function() use ($tenant, $key) {
78 78
             $themeName = $this->resolveThemeName($tenant);
79 79
             if (null === $themeName) {
80 80
                 return null;
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/GeoIp/CachedGeoIpChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $geoIpPlaces = $article->getGeoIpPlaces();
45 45
         $cacheKey = $this->generateCacheKey($ipAddress, $article, $geoIpPlaces);
46 46
 
47
-        return $this->cacheProvider->get($cacheKey, function () use ($ipAddress, $geoIpPlaces) {
47
+        return $this->cacheProvider->get($cacheKey, function() use ($ipAddress, $geoIpPlaces) {
48 48
             return $this->geoIpChecker->isGranted($ipAddress, $geoIpPlaces);
49 49
         });
50 50
     }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/WebSocket/Topic/PackageTopic.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
     public function registerPeriodicTimer(Topic $topic): void
66 66
     {
67 67
         $n = 1;
68
-        $this->periodicTimer->addPeriodicTimer($this, 'ping', 5, function () use ($topic, &$n) {
68
+        $this->periodicTimer->addPeriodicTimer($this, 'ping', 5, function() use ($topic, &$n) {
69 69
             $topic->broadcast(['ping' => $n]);
70 70
 
71 71
             ++$n;
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Service/RouteService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,6 +162,6 @@
 block discarded – undo
162 162
      */
163 163
     private function dispatchRouteEvent($eventName, RouteInterface $route)
164 164
     {
165
-        $this->eventDispatcher->dispatch(new RouteEvent($route, $eventName),  $eventName);
165
+        $this->eventDispatcher->dispatch(new RouteEvent($route, $eventName), $eventName);
166 166
     }
167 167
 }
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Model/ArticleInterface.php 1 patch
Indentation   +118 added lines, -118 removed lines patch added patch discarded remove patch
@@ -25,166 +25,166 @@
 block discarded – undo
25 25
 use SWP\Component\Storage\Model\PersistableInterface;
26 26
 
27 27
 interface ArticleInterface extends TimestampableInterface, TimestampableCancelInterface, RuleSubjectInterface, TranslatableInterface, PersistableInterface, SoftDeletableInterface, MetadataAwareInterface, MediaAwareInterface, AuthorsAwareInterface, KeywordAwareInterface, RelatedArticlesAwareInterface, SeoMetadataAwareInterface {
28
-  const STATUS_NEW = 'new';
29
-
30
-  const STATUS_PUBLISHED = 'published';
31
-
32
-  const STATUS_UNPUBLISHED = 'unpublished';
33
-
34
-  const STATUS_CANCELED = 'canceled';
35
-
36
-  /**
37
-   * @return mixed
38
-   */
39
-  public function getId();
40
-
41
-  /**
42
-   * @return string
43
-   */
44
-  public function getBody();
45
-
46
-  /**
47
-   * @param string $body
48
-   */
49
-  public function setBody($body);
28
+    const STATUS_NEW = 'new';
29
+
30
+    const STATUS_PUBLISHED = 'published';
31
+
32
+    const STATUS_UNPUBLISHED = 'unpublished';
33
+
34
+    const STATUS_CANCELED = 'canceled';
35
+
36
+    /**
37
+     * @return mixed
38
+     */
39
+    public function getId();
40
+
41
+    /**
42
+     * @return string
43
+     */
44
+    public function getBody();
45
+
46
+    /**
47
+     * @param string $body
48
+     */
49
+    public function setBody($body);
50 50
 
51
-  /**
52
-   * @return string
53
-   */
54
-  public function getTitle();
51
+    /**
52
+     * @return string
53
+     */
54
+    public function getTitle();
55 55
 
56
-  /**
57
-   * @param string $title
58
-   */
59
-  public function setTitle($title);
56
+    /**
57
+     * @param string $title
58
+     */
59
+    public function setTitle($title);
60 60
 
61
-  /**
62
-   * @return string
63
-   */
64
-  public function getSlug();
61
+    /**
62
+     * @return string
63
+     */
64
+    public function getSlug();
65 65
 
66
-  /**
67
-   * @param string $slug
68
-   */
69
-  public function setSlug($slug);
66
+    /**
67
+     * @param string $slug
68
+     */
69
+    public function setSlug($slug);
70 70
 
71
-  /**
72
-   * @return \DateTime
73
-   */
74
-  public function getPublishedAt();
71
+    /**
72
+     * @return \DateTime
73
+     */
74
+    public function getPublishedAt();
75 75
 
76
-  /**
77
-   * @param string $publishedAt
78
-   *
79
-   * @return \DateTime
80
-   */
81
-  public function setPublishedAt(\DateTime $publishedAt);
76
+    /**
77
+     * @param string $publishedAt
78
+     *
79
+     * @return \DateTime
80
+     */
81
+    public function setPublishedAt(\DateTime $publishedAt);
82 82
 
83
-  /**
84
-   * @return bool
85
-   */
86
-  public function isPublished();
83
+    /**
84
+     * @return bool
85
+     */
86
+    public function isPublished();
87 87
 
88
-  /**
89
-   * @param string $status
90
-   *
91
-   * @return string
92
-   */
93
-  public function setStatus($status);
88
+    /**
89
+     * @param string $status
90
+     *
91
+     * @return string
92
+     */
93
+    public function setStatus($status);
94 94
 
95
-  /**
96
-   * @return string
97
-   */
98
-  public function getStatus();
95
+    /**
96
+     * @return string
97
+     */
98
+    public function getStatus();
99 99
 
100
-  /**
101
-   * @return string
102
-   */
103
-  public function getTemplateName();
100
+    /**
101
+     * @return string
102
+     */
103
+    public function getTemplateName();
104 104
 
105
-  /**
106
-   * @param string $templateName
107
-   */
108
-  public function setTemplateName($templateName);
105
+    /**
106
+     * @param string $templateName
107
+     */
108
+    public function setTemplateName($templateName);
109 109
 
110
-  /**
111
-   * @param RouteInterface|void $route
112
-   */
113
-  public function setRoute(RouteInterface $route = null);
110
+    /**
111
+     * @param RouteInterface|void $route
112
+     */
113
+    public function setRoute(RouteInterface $route = null);
114 114
 
115
-  /**
116
-   * @return RouteInterface
117
-   */
118
-  public function getRoute();
115
+    /**
116
+     * @return RouteInterface
117
+     */
118
+    public function getRoute();
119 119
 
120
-  /**
121
-   * @return string
122
-   */
123
-  public function getLead();
120
+    /**
121
+     * @return string
122
+     */
123
+    public function getLead();
124 124
 
125
-  /**
126
-   * @param string $lead
127
-   */
128
-  public function setLead($lead);
125
+    /**
126
+     * @param string $lead
127
+     */
128
+    public function setLead($lead);
129 129
 
130
-  public function getCode(): string;
130
+    public function getCode(): string;
131 131
 
132
-  public function setCode(string $code);
132
+    public function setCode(string $code);
133 133
 
134
-  public function addSourceReference(ArticleSourceReferenceInterface $source);
134
+    public function addSourceReference(ArticleSourceReferenceInterface $source);
135 135
 
136
-  public function removeSourceReference(ArticleSourceReferenceInterface $source);
136
+    public function removeSourceReference(ArticleSourceReferenceInterface $source);
137 137
 
138
-  public function hasSourceReference(ArticleSourceReferenceInterface $source): bool;
138
+    public function hasSourceReference(ArticleSourceReferenceInterface $source): bool;
139 139
 
140
-  /**
141
-   * @return Collection|ArticleSourceReferenceInterface[]
142
-   */
143
-  public function getSources(): Collection;
140
+    /**
141
+     * @return Collection|ArticleSourceReferenceInterface[]
142
+     */
143
+    public function getSources(): Collection;
144 144
 
145
-  public function getExtra(): array;
145
+    public function getExtra(): array;
146 146
 
147
-  public function setExtra(?array $extra): void;
147
+    public function setExtra(?array $extra): void;
148 148
 
149
-  public function getSlideshows(): Collection;
149
+    public function getSlideshows(): Collection;
150 150
 
151
-  public function hasSlideshow(SlideshowInterface $slideshow): bool;
151
+    public function hasSlideshow(SlideshowInterface $slideshow): bool;
152 152
 
153
-  public function addSlideshow(SlideshowInterface $slideshow): void;
153
+    public function addSlideshow(SlideshowInterface $slideshow): void;
154 154
 
155
-  public function removeSlideshow(SlideshowInterface $slideshow): void;
155
+    public function removeSlideshow(SlideshowInterface $slideshow): void;
156 156
 
157
-  public function getPreviousRelativeUrl(): Collection;
157
+    public function getPreviousRelativeUrl(): Collection;
158 158
 
159
-  public function hasPreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): bool;
159
+    public function hasPreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): bool;
160 160
 
161
-  public function addPreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): void;
161
+    public function addPreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): void;
162 162
 
163
-  public function removePreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): void;
163
+    public function removePreviousRelativeUrl(ArticlePreviousRelativeUrlInterface $previousRelativeUrl): void;
164 164
 
165
-  public function getData(): ?MetadataInterface;
165
+    public function getData(): ?MetadataInterface;
166 166
 
167
-  public function setData(?MetadataInterface $metadata): void;
167
+    public function setData(?MetadataInterface $metadata): void;
168 168
 
169
-  public function getExtraTextFields(): Collection;
169
+    public function getExtraTextFields(): Collection;
170 170
 
171
-  public function getExtraEmbedFields(): Collection;
171
+    public function getExtraEmbedFields(): Collection;
172 172
 
173
-  public function setExtraFields(array $extra): void;
173
+    public function setExtraFields(array $extra): void;
174 174
 
175
-  public function getExtraByKey(string $key): ?ArticleExtraFieldInterface;
175
+    public function getExtraByKey(string $key): ?ArticleExtraFieldInterface;
176 176
 
177
-  public function getExtraArray(): array;
177
+    public function getExtraArray(): array;
178 178
 
179
-  public function isPublishable(): bool;
179
+    public function isPublishable(): bool;
180 180
 
181
-  public function setPublishable(bool $boolean): void;
181
+    public function setPublishable(bool $boolean): void;
182 182
 
183
-  public function setPublishStartDate(\DateTime $startDate = null);
183
+    public function setPublishStartDate(\DateTime $startDate = null);
184 184
 
185
-  public function getPublishStartDate();
185
+    public function getPublishStartDate();
186 186
 
187
-  public function setPublishEndDate(\DateTime $endDate = null);
187
+    public function setPublishEndDate(\DateTime $endDate = null);
188 188
 
189
-  public function getPublishEndDate();
189
+    public function getPublishEndDate();
190 190
 }
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Migrations/2018/10/Version20181008115755.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * @param Schema $schema
41 41
      */
42
-   public function postUp(Schema $schema) : void
42
+    public function postUp(Schema $schema) : void
43 43
     {
44 44
         $entityManager = $this->container->get('doctrine.orm.default_entity_manager');
45 45
         $query = $entityManager
Please login to merge, or discard this patch.