Completed
Push — master ( d676b1...ecc147 )
by Dispositif
02:12
created
src/Domain/Models/Wiki/AbstractWikiTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         // todo verify/useless ?
100 100
         if (is_int($name)) {
101
-            $name = (string)$name;
101
+            $name = (string) $name;
102 102
         }
103 103
 
104 104
         // that parameter exists in template ?
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
         } catch (Throwable $e) {
238 238
             unset($e);
239 239
             // hack : 1 => "ouvrage collectif"
240
-            $name = (string)$name;
240
+            $name = (string) $name;
241 241
             $this->log[] = "parameter $name not found";
242 242
             $this->parametersErrorFromHydrate[$name] = $value;
243 243
 
Please login to merge, or discard this patch.
src/Application/Examples/EditProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@
 block discarded – undo
305 305
             '%s [%s/%s] %s %s : %s',
306 306
             $prefix,
307 307
             str_replace('v', '', $this->bot::getGitVersion()),
308
-            str_replace(['v0.','v1.'], '', $this->citationVersion),
308
+            str_replace(['v0.', 'v1.'], '', $this->citationVersion),
309 309
             self::TASK_NAME,
310 310
             $this->nbRows,
311 311
             $citeSummary
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
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         return array_filter(
24 24
             $myArray,
25
-            function ($value) {
25
+            function($value) {
26 26
                 return !is_null($value) && '' !== $value;
27 27
             }
28 28
         );
Please login to merge, or discard this patch.
src/Domain/OuvrageOptimize.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 //    {
130 130
 //        $value = $this->getParam($param);
131 131
 //        // note : strval() condition because intval('4c') = 4
132
-          // opti : $number can also be of type double
132
+            // opti : $number can also be of type double
133 133
 //        if ($value && intval($value) > 0 && intval($value) <= 10 && strval(intval($value)) === $value) {
134 134
 //            $number = abs(intval($value));
135 135
 //            $roman = NumberUtil::arab2roman($number);
@@ -473,8 +473,8 @@  discard block
 block discarded – undo
473 473
                 $this->log('°titre');
474 474
             }
475 475
 
476
-             // desactivé à cause de l'exception décrite ci-dessus
477
-             // si langue=VIDE : ajout langue= à partir de langue titre
476
+                // desactivé à cause de l'exception décrite ci-dessus
477
+                // si langue=VIDE : ajout langue= à partir de langue titre
478 478
 //            if (self::WIKI_LANGUAGE !== $lang && empty($this->getParam('langue'))) {
479 479
 //                $this->setParam('langue', $lang);
480 480
 //                $this->log('+langue='.$lang);
Please login to merge, or discard this patch.
src/Domain/Publisher/GoogleBookMapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             'titre' => $volume->title,
43 43
             'sous-titre' => $this->filterSubtitle($volume),
44 44
             'année' => $this->convertDate2Year($volume->publishedDate),
45
-            'pages totales' => (string)$volume->pageCount ?? null,
45
+            'pages totales' => (string) $volume->pageCount ?? null,
46 46
             'isbn' => $this->convertIsbn($volume),
47 47
             //            'présentation en ligne' => $this->presentationEnLigne($volume),
48 48
             'lire en ligne' => $this->lireEnLigne($volume),
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             return null;
80 80
         }
81 81
         if (preg_match('/[^0-9]?([12][0-9]{3})[^0-9]?/', $data, $matches) > 0) {
82
-            return (string)$matches[1];
82
+            return (string) $matches[1];
83 83
         }
84 84
 
85 85
         return null;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         // so isbn-13 replace isbn-10
99 99
         // todo refac algo (if 2x isbn13?)
100 100
         $isbn = null;
101
-        $ids = (array)$volume->industryIdentifiers;
101
+        $ids = (array) $volume->industryIdentifiers;
102 102
         foreach ($ids as $id) {
103 103
             if (!isset($isbn) && in_array($id->type, ['ISBN_10', 'ISBN_13'])) {
104 104
                 $isbn = $id->identifier;
Please login to merge, or discard this patch.