Test Failed
Push — master ( 766a39...696a12 )
by Dispositif
09:33
created
src/Infrastructure/InternetDomainParser.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
 class InternetDomainParser
22 22
 {
23
-    private const PATH_CACHE_PUBLIC_SUFFIX_LIST = __DIR__ . '/resources/public_suffix_list.dat';
23
+    private const PATH_CACHE_PUBLIC_SUFFIX_LIST = __DIR__.'/resources/public_suffix_list.dat';
24 24
 
25 25
     /**
26 26
      * https://www.google.fr => google.fr
Please login to merge, or discard this patch.
src/Domain/Publisher/GoogleBookMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             'titre' => $volume->title,
52 52
             'sous-titre' => $this->filterSubtitle($volume),
53 53
             'année' => $this->convertDate2Year($volume->publishedDate ?? null),
54
-            'pages totales' => (string)$volume->pageCount ?? null,
54
+            'pages totales' => (string) $volume->pageCount ?? null,
55 55
             'isbn' => $this->convertIsbn($volume),
56 56
             'présentation en ligne' => $this->presentationEnLigne($volume),
57 57
             'lire en ligne' => $this->lireEnLigne($volume),
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         // so isbn-13 replace isbn-10
113 113
         // todo refac algo (if 2x isbn13?)
114 114
         $isbn = null;
115
-        $ids = (array)$volume->industryIdentifiers;
115
+        $ids = (array) $volume->industryIdentifiers;
116 116
         foreach ($ids as $id) {
117 117
             if (!$isbn && in_array($id->type, ['ISBN_10', 'ISBN_13'])) {
118 118
                 $isbn = $id->identifier;
Please login to merge, or discard this patch.
src/Domain/Publisher/GoogleBooksUtil.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
         // todo verify http_build_query() enc_type parameter
114 114
         // todo http_build_query() process an urlencode, but a not encoded q= value ("fu+bar") is beautiful
115
-        return $googleURL . '?' . http_build_query($dat);
115
+        return $googleURL.'?'.http_build_query($dat);
116 116
     }
117 117
 
118 118
     /**
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public static function isGoogleBookURL(string $text): bool
122 122
     {
123
-        return preg_match('#^' . self::GOOGLEBOOKS_START_URL_PATTERN . '[^>\]} \n]+$#i', $text) > 0;
123
+        return preg_match('#^'.self::GOOGLEBOOKS_START_URL_PATTERN.'[^>\]} \n]+$#i', $text) > 0;
124 124
     }
125 125
 
126 126
     /**
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
      */
153 153
     private static function isNewGoogleBookUrl(string $url): bool
154 154
     {
155
-        return (bool)preg_match(
156
-            '#^' . self::GOOGLEBOOKS_NEW_START_URL_PATTERN . self::GOOGLEBOOKS_ID_REGEX . '(?:&.+)?#',
155
+        return (bool) preg_match(
156
+            '#^'.self::GOOGLEBOOKS_NEW_START_URL_PATTERN.self::GOOGLEBOOKS_ID_REGEX.'(?:&.+)?#',
157 157
             $url
158 158
         );
159 159
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     private static function getIDFromNewGBurl(string $url): ?string
232 232
     {
233 233
         if (preg_match(
234
-            '#^' . self::GOOGLEBOOKS_NEW_START_URL_PATTERN . '(' . self::GOOGLEBOOKS_ID_REGEX . ')(?:&.+)?#',
234
+            '#^'.self::GOOGLEBOOKS_NEW_START_URL_PATTERN.'('.self::GOOGLEBOOKS_ID_REGEX.')(?:&.+)?#',
235 235
             $url,
236 236
             $matches
237 237
         )
@@ -244,6 +244,6 @@  discard block
 block discarded – undo
244 244
 
245 245
     protected static function validateGoogleBooksId(string $id): bool
246 246
     {
247
-        return preg_match('#' . self::GOOGLEBOOKS_ID_REGEX . '#', $id) > 0;
247
+        return preg_match('#'.self::GOOGLEBOOKS_ID_REGEX.'#', $id) > 0;
248 248
     }
249 249
 }
Please login to merge, or discard this patch.
src/Domain/Utils/ArrayProcessTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     public function deleteEmptyValueArray(array $array): array
28 28
     {
29
-        return array_filter($array, function ($value) {
29
+        return array_filter($array, function($value) {
30 30
             return (null !== $value && '' !== $value);
31 31
         });
32 32
     }
Please login to merge, or discard this patch.