1 | <?php |
||
2 | /** |
||
3 | * SnsDescription.php |
||
4 | * Copyright (c) 2019 [email protected]. |
||
5 | * |
||
6 | * This file is part of Firefly III (https://github.com/firefly-iii). |
||
7 | * |
||
8 | * This program is free software: you can redistribute it and/or modify |
||
9 | * it under the terms of the GNU Affero General Public License as |
||
10 | * published by the Free Software Foundation, either version 3 of the |
||
11 | * License, or (at your option) any later version. |
||
12 | * |
||
13 | * This program is distributed in the hope that it will be useful, |
||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
16 | * GNU Affero General Public License for more details. |
||
17 | * |
||
18 | * You should have received a copy of the GNU Affero General Public License |
||
19 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
||
20 | */ |
||
21 | declare(strict_types=1); |
||
22 | |||
23 | namespace FireflyIII\Import\Specifics; |
||
24 | |||
25 | /** |
||
26 | * Class SnsDescription. |
||
27 | * |
||
28 | * @codeCoverageIgnore |
||
29 | * @deprecated |
||
30 | */ |
||
31 | class SnsDescription implements SpecificInterface |
||
0 ignored issues
–
show
|
|||
32 | { |
||
33 | /** |
||
34 | * Get description of specific. |
||
35 | * |
||
36 | * @return string |
||
37 | * @codeCoverageIgnore |
||
38 | */ |
||
39 | public static function getDescription(): string |
||
40 | { |
||
41 | return 'import.specific_sns_descr'; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Get name of specific. |
||
46 | * |
||
47 | * @return string |
||
48 | * @codeCoverageIgnore |
||
49 | */ |
||
50 | public static function getName(): string |
||
51 | { |
||
52 | return 'import.specific_sns_name'; |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * Run specific. |
||
57 | * |
||
58 | * @param array $row |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | public function run(array $row): array |
||
63 | { |
||
64 | $row = array_values($row); |
||
65 | if (!isset($row[17])) { |
||
66 | return $row; |
||
67 | } |
||
68 | $row[17] = ltrim($row[17], "'"); |
||
69 | $row[17] = rtrim($row[17], "'"); |
||
70 | |||
71 | return $row; |
||
72 | } |
||
73 | } |
||
74 |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.