@@ -173,9 +173,9 @@ |
||
| 173 | 173 | */ |
| 174 | 174 | public function minutesSinceLastEdit(string $title): int |
| 175 | 175 | { |
| 176 | - $time = $this->getTimestamp($title); // 2011-09-02T16:31:13Z |
|
| 176 | + $time = $this->getTimestamp($title); // 2011-09-02T16:31:13Z |
|
| 177 | 177 | |
| 178 | - return (int)round((time() - strtotime($time)) / 60); |
|
| 178 | + return (int) round((time() - strtotime($time)) / 60); |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | /** |
@@ -23,6 +23,6 @@ |
||
| 23 | 23 | $this::assertTrue(Bot::isEditionRestricted('{{3R}} bla')); |
| 24 | 24 | $this::assertTrue(Bot::isEditionRestricted('{{nobots}} bla')); |
| 25 | 25 | $this::assertTrue(Bot::isEditionRestricted('{{bots|deny=Bob,FuBot}} bla', 'FuBot')); |
| 26 | - $this::assertFalse(Bot::isEditionRestricted('{{bots|deny=Bob,FuBot}} bla'));; |
|
| 26 | + $this::assertFalse(Bot::isEditionRestricted('{{bots|deny=Bob,FuBot}} bla')); ; |
|
| 27 | 27 | } |
| 28 | 28 | } |
@@ -153,12 +153,12 @@ |
||
| 153 | 153 | return $tac; |
| 154 | 154 | } |
| 155 | 155 | // 214 : nouvelle zone 2019 |
| 156 | - if ($tac = $this->xpath2string('//mxc:datafield[@tag="214"]/mxc:subfield[@code="c"]',' / ')) { |
|
| 156 | + if ($tac = $this->xpath2string('//mxc:datafield[@tag="214"]/mxc:subfield[@code="c"]', ' / ')) { |
|
| 157 | 157 | return $tac; |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | // 219 ancienne zone ? |
| 161 | - if ($tac = $this->xpath2string('//mxc:datafield[@tag="219"]/mxc:subfield[@code="c"]',' / ')) { |
|
| 161 | + if ($tac = $this->xpath2string('//mxc:datafield[@tag="219"]/mxc:subfield[@code="c"]', ' / ')) { |
|
| 162 | 162 | return $tac; |
| 163 | 163 | } |
| 164 | 164 | |