Passed
Branch feature/2.0 (d2af8f)
by Jonathan
13:07
created
src/Webtrees/Functions/Functions.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 	 *
33 33
 	 * @param string $text Text to display
34 34
 	 */
35
-	static public function promptAlert($text){
35
+	static public function promptAlert($text) {
36 36
 		echo '<script>';
37
-		echo 'alert("',fw\Filter::escapeHtml($text),'")';
37
+		echo 'alert("', fw\Filter::escapeHtml($text), '")';
38 38
 		echo '</script>';
39 39
 	}
40 40
 	
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	 * @return float Result of the safe division
48 48
 	 */
49 49
 	public static function safeDivision($num, $denom, $default = 0) {
50
-		if($denom && $denom!=0){
50
+		if ($denom && $denom != 0) {
51 51
 			return $num / $denom;
52 52
 		}
53 53
 		return $default;
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	 * @param float $default Default value if denominator null or 0
62 62
 	 * @return float Percentage
63 63
 	 */
64
-	public static function getPercentage($num, $denom, $default = 0){
64
+	public static function getPercentage($num, $denom, $default = 0) {
65 65
 		return 100 * self::safeDivision($num, $denom, $default);
66 66
 	}
67 67
 	
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
 	 * @param int $target	The final max width/height
73 73
 	 * @return array array of ($width, $height). One of them must be $target
74 74
 	 */
75
-	static public function getResizedImageSize($file, $target=25){
76
-		list($width, $height, , ) = getimagesize($file);
75
+	static public function getResizedImageSize($file, $target = 25) {
76
+		list($width, $height,,) = getimagesize($file);
77 77
 		$max = max($width, $height);
78 78
 		$rapp = $target / $max;
79 79
 		$width = intval($rapp * $width);
@@ -103,21 +103,21 @@  discard block
 block discarded – undo
103 103
 	 * @param int $length Length of the token, default to 32
104 104
 	 * @return string Random token
105 105
 	 */
106
-	public static function generateRandomToken($length=32) {
106
+	public static function generateRandomToken($length = 32) {
107 107
 		$chars = str_split('abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789');
108 108
 		$len_chars = count($chars);
109 109
 		$token = '';
110 110
 		
111 111
 		for ($i = 0; $i < $length; $i++)
112
-			$token .= $chars[ mt_rand(0, $len_chars - 1) ];
112
+			$token .= $chars[mt_rand(0, $len_chars - 1)];
113 113
 		
114 114
 		# Number of 32 char chunks
115
-		$chunks = ceil( strlen($token) / 32 );
115
+		$chunks = ceil(strlen($token) / 32);
116 116
 		$md5token = '';
117 117
 		
118 118
 		# Run each chunk through md5
119
-		for ( $i=1; $i<=$chunks; $i++ )
120
-			$md5token .= md5( substr($token, $i * 32 - 32, 32) );
119
+		for ($i = 1; $i <= $chunks; $i++)
120
+			$md5token .= md5(substr($token, $i * 32 - 32, 32));
121 121
 		
122 122
 			# Trim the token
123 123
 		return substr($md5token, 0, $length);		
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	 */
131 131
 	protected static function getBase64EncryptionKey() {	    
132 132
 	    $key = 'STANDARDKEYIFNOSERVER';
133
-	    if(!empty(Filter::server('SERVER_NAME')) && !empty(Filter::server('SERVER_SOFTWARE')))
133
+	    if (!empty(Filter::server('SERVER_NAME')) && !empty(Filter::server('SERVER_SOFTWARE')))
134 134
 	        $key = md5(Filter::server('SERVER_NAME').Filter::server('SERVER_SOFTWARE'));
135 135
 	    
136 136
 	    return $key;
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	 * @param string $data Text to encrypt
144 144
 	 * @return string Encrypted and encoded text
145 145
 	 */
146
-	public static function encryptToSafeBase64($data){		
146
+	public static function encryptToSafeBase64($data) {		
147 147
 		$nonce = random_bytes(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES);	
148 148
 		$id = sodium_crypto_secretbox($data, $nonce, self::getBase64EncryptionKey());
149 149
 		$encrypted = base64_encode($nonce.$id);
@@ -163,12 +163,12 @@  discard block
 block discarded – undo
163 163
 	 * @param string $encrypted Text to decrypt
164 164
 	 * @return string Decrypted text
165 165
 	 */
166
-	public static function decryptFromSafeBase64($encrypted){
166
+	public static function decryptFromSafeBase64($encrypted) {
167 167
 		$encrypted = str_replace('-', '+', $encrypted);
168 168
 		$encrypted = str_replace('_', '/', $encrypted);
169 169
 		$encrypted = str_replace('*', '=', $encrypted);
170 170
 		$encrypted = base64_decode($encrypted);
171
-		if($encrypted === false)
171
+		if ($encrypted === false)
172 172
 			throw new \InvalidArgumentException('The encrypted value is not in correct base64 format.');
173 173
 		
174 174
 		if (mb_strlen($encrypted, '8bit') < (SODIUM_CRYPTO_SECRETBOX_NONCEBYTES + SODIUM_CRYPTO_SECRETBOX_MACBYTES))
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         
180 180
         $decrypted = sodium_crypto_secretbox_open($ciphertext, $nonce, self::getBase64EncryptionKey());
181 181
 		
182
-        if($decrypted === false) {
182
+        if ($decrypted === false) {
183 183
             throw new \InvalidArgumentException('The message has been tampered with in transit.');
184 184
         }
185 185
         
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
 	 * @param string $string Filesystem encoded string to encode
195 195
 	 * @return string UTF-8 encoded string
196 196
 	 */
197
-	public static function encodeFileSystemToUtf8($string){
197
+	public static function encodeFileSystemToUtf8($string) {
198 198
 		if (strtoupper(substr(php_uname('s'), 0, 7)) === 'WINDOWS') {
199
-		    return iconv('cp1252', 'utf-8//IGNORE',$string);
199
+		    return iconv('cp1252', 'utf-8//IGNORE', $string);
200 200
 		}
201 201
 		return $string;
202 202
 	}
@@ -207,9 +207,9 @@  discard block
 block discarded – undo
207 207
 	 * @param string $string UTF-8 encoded string to encode
208 208
 	 * @return string Filesystem encoded string
209 209
 	 */
210
-	public static function encodeUtf8ToFileSystem($string){
210
+	public static function encodeUtf8ToFileSystem($string) {
211 211
 		if (preg_match('//u', $string) && strtoupper(substr(php_uname('s'), 0, 7)) === 'WINDOWS') {
212
-			return iconv('utf-8', 'cp1252//IGNORE' ,  $string);
212
+			return iconv('utf-8', 'cp1252//IGNORE', $string);
213 213
 		}
214 214
 		return $string;
215 215
 	}
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 	 * @return boolean True if path valid
223 223
 	 */
224 224
 	public static function isValidPath($filename, $acceptfolder = FALSE) {		
225
-		if(strpbrk($filename, $acceptfolder ? '?%*:|"<>' : '\\/?%*:|"<>') === FALSE) return true;
225
+		if (strpbrk($filename, $acceptfolder ? '?%*:|"<>' : '\\/?%*:|"<>') === FALSE) return true;
226 226
 		return false;
227 227
 	}
228 228
 	
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 	 * @return array Array of month short names
235 235
 	 */
236 236
 	public static function getCalendarShortMonths($calendarId = 0) {
237
-		if(!isset(self::$calendarShortMonths[$calendarId])) {
237
+		if (!isset(self::$calendarShortMonths[$calendarId])) {
238 238
 			$calendar_info = cal_info($calendarId);
239 239
 			self::$calendarShortMonths[$calendarId] = $calendar_info['abbrevmonths'];
240 240
 		}		
Please login to merge, or discard this patch.
src/Webtrees/Module/PatronymicLineage/Http/RequestHandlers/LineagesPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,16 +75,16 @@
 block discarded – undo
75 75
 
76 76
         $initial = mb_substr($surname, 0, 1);
77 77
         $initials_list = collect($this->indilist_module->surnameAlpha($tree, false, false, I18N::locale()))
78
-            ->reject(function ($count, $initial): bool {
78
+            ->reject(function($count, $initial): bool {
79 79
 
80 80
                 return $initial === '@' || $initial === ',';
81 81
             });
82 82
 
83
-        $title = I18N::translate('Patronymic Lineages') . ' — ' . $surname;
83
+        $title = I18N::translate('Patronymic Lineages').' — '.$surname;
84 84
 
85 85
         $lineages = app()->make(LineageBuilder::class, ['surname' => $surname])->buildLineages();
86 86
 
87
-        return $this->viewResponse($this->module->name() . '::lineages-page', [
87
+        return $this->viewResponse($this->module->name().'::lineages-page', [
88 88
             'title'         =>  $title,
89 89
             'module'        =>  $this->module,
90 90
             'tree'          =>  $tree,
Please login to merge, or discard this patch.
src/Webtrees/Module/PatronymicLineage/Http/RequestHandlers/SurnamesList.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         $initial = $request->getAttribute('alpha');
74 74
         $initials_list = collect($this->indilist_module->surnameAlpha($tree, false, false, I18N::locale()))
75
-            ->reject(function ($count, $initial): bool {
75
+            ->reject(function($count, $initial): bool {
76 76
 
77 77
                 return $initial === '@' || $initial === ',';
78 78
             });
@@ -80,17 +80,17 @@  discard block
 block discarded – undo
80 80
         $show_all = $request->getQueryParams()['show_all'] ?? 'no';
81 81
 
82 82
         if ($show_all === 'yes') {
83
-            $title = I18N::translate('Patronymic Lineages') . ' — ' . I18N::translate('All');
83
+            $title = I18N::translate('Patronymic Lineages').' — '.I18N::translate('All');
84 84
             $surnames = $this->indilist_module->surnames($tree, '', '', false, false, I18N::locale());
85 85
         } elseif ($initial !== null && mb_strlen($initial) == 1) {
86
-            $title = I18N::translate('Patronymic Lineages') . ' — ' . $initial;
86
+            $title = I18N::translate('Patronymic Lineages').' — '.$initial;
87 87
             $surnames = $this->indilist_module->surnames($tree, '', $initial, false, false, I18N::locale());
88 88
         } else {
89
-            $title =  I18N::translate('Patronymic Lineages');
89
+            $title = I18N::translate('Patronymic Lineages');
90 90
             $surnames = [];
91 91
         }
92 92
 
93
-        return $this->viewResponse($this->module->name() . '::surnames-page', [
93
+        return $this->viewResponse($this->module->name().'::surnames-page', [
94 94
             'title'         =>  $title,
95 95
             'module'        =>  $this->module,
96 96
             'tree'          =>  $tree,
Please login to merge, or discard this patch.
src/Webtrees/Module/PatronymicLineage/PatronymicLineageModule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function loadRoutes(Map $router): void
63 63
     {
64
-        $router->attach('', '', static function (Map $router): void {
64
+        $router->attach('', '', static function(Map $router): void {
65 65
 
66
-            $router->attach('', '/module-maj/lineages', static function (Map $router): void {
66
+            $router->attach('', '/module-maj/lineages', static function(Map $router): void {
67 67
 
68
-                $router->attach('', '/Page', static function (Map $router): void {
68
+                $router->attach('', '/Page', static function(Map $router): void {
69 69
 
70 70
                     $router->get(SurnamesList::class, '/{tree}/list{/alpha}', SurnamesList::class);
71 71
                     $router->get(LineagesPage::class, '/{tree}/lineage/{surname}', LineagesPage::class);
@@ -122,6 +122,6 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function headContent(): string
124 124
     {
125
-        return '<link rel="stylesheet" href="' . e($this->moduleCssUrl()) . '">';
125
+        return '<link rel="stylesheet" href="'.e($this->moduleCssUrl()).'">';
126 126
     }
127 127
 }
Please login to merge, or discard this patch.
src/Webtrees/Module/WelcomeBlock/Http/RequestHandlers/MatomoStats.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,11 +64,11 @@
 block discarded – undo
64 64
         $nb_visits_year = $nb_visits_today = null;
65 65
 
66 66
         if ($block_id !== false && $this->module->isMatomoEnabled($block_id)) {
67
-            $nb_visits_today = (int) $this->matomo_service->visitsToday($this->module, $block_id);
68
-            $nb_visits_year = (int) $this->matomo_service->visitsThisYear($this->module, $block_id) + $nb_visits_today;
67
+            $nb_visits_today = (int)$this->matomo_service->visitsToday($this->module, $block_id);
68
+            $nb_visits_year = (int)$this->matomo_service->visitsThisYear($this->module, $block_id) + $nb_visits_today;
69 69
         }
70 70
 
71
-        return $this->viewResponse($this->module->name() . '::matomo-stats', [
71
+        return $this->viewResponse($this->module->name().'::matomo-stats', [
72 72
             'visits_year'   =>  $nb_visits_year,
73 73
             'visits_today'  =>  $nb_visits_today
74 74
         ]);
Please login to merge, or discard this patch.
src/Webtrees/Module/WelcomeBlock/WelcomeBlockModule.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function loadRoutes(Map $router): void
59 59
     {
60
-        $router->attach('', '', static function (Map $router): void {
60
+        $router->attach('', '', static function(Map $router): void {
61 61
 
62
-            $router->attach('', '/module-maj/welcomeblock/{block_id}', static function (Map $router): void {
62
+            $router->attach('', '/module-maj/welcomeblock/{block_id}', static function(Map $router): void {
63 63
 
64 64
                 $router->get(MatomoStats::class, '/matomostats', MatomoStats::class);
65 65
             });
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $fab_login_block_view = app(\Fisharebest\Webtrees\Module\LoginBlockModule::class)
88 88
             ->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_EMBED);
89 89
 
90
-        $content = view($this->name() . '::block-embed', [
90
+        $content = view($this->name().'::block-embed', [
91 91
             'block_id'                  =>  $block_id,
92 92
             'fab_welcome_block_view'    =>  $fab_welcome_block_view,
93 93
             'fab_login_block_view'      =>  $fab_login_block_view,
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function editBlockConfiguration(Tree $tree, int $block_id): string
124 124
     {
125
-        return view($this->name() . '::config', $this->matomoSettings($block_id));
125
+        return view($this->name().'::config', $this->matomoSettings($block_id));
126 126
     }
127 127
 
128 128
     /**
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void
133 133
     {
134
-        $params = (array) $request->getParsedBody();
134
+        $params = (array)$request->getParsedBody();
135 135
 
136 136
         $matomo_enabled = $params['matomo_enabled'] == 'yes';
137 137
         $this->setBlockSetting($block_id, 'matomo_enabled', $matomo_enabled ? 'yes' : 'no');
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             ->setBlockSetting($block_id, 'matomo_token', trim($params['matomo_token']))
155 155
             ->setBlockSetting($block_id, 'matomo_siteid', $params['matomo_siteid']);
156 156
 
157
-        app('cache.files')->forget($this->name() . '-matomovisits-yearly-' . $block_id);
157
+        app('cache.files')->forget($this->name().'-matomovisits-yearly-'.$block_id);
158 158
     }
159 159
 
160 160
     /**
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             'matomo_enabled' => $this->isMatomoEnabled($block_id),
181 181
             'matomo_url' => $this->getBlockSetting($block_id, 'matomo_url'),
182 182
             'matomo_token' => $this->getBlockSetting($block_id, 'matomo_token'),
183
-            'matomo_siteid'  => (int) $this->getBlockSetting($block_id, 'matomo_siteid', '0')
183
+            'matomo_siteid'  => (int)$this->getBlockSetting($block_id, 'matomo_siteid', '0')
184 184
         ];
185 185
     }
186 186
 }
Please login to merge, or discard this patch.
src/Webtrees/Module/WelcomeBlock/Services/MatomoStatsService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
         $cache = Registry::cache()->file();
44 44
 
45 45
         return $cache->remember(
46
-            $module->name() . '-matomovisits-yearly-' . $block_id,
47
-            function () use ($module, $block_id): ?int {
46
+            $module->name().'-matomovisits-yearly-'.$block_id,
47
+            function() use ($module, $block_id): ?int {
48 48
                 $visits_year = $this->visits($module, $block_id, 'year');
49 49
                 if ($visits_year === null) {
50 50
                     return null;
51 51
                 }
52
-                $visits_today = (int) $this->visits($module, $block_id, 'day');
52
+                $visits_today = (int)$this->visits($module, $block_id, 'day');
53 53
 
54 54
                 return $visits_year - $visits_today;
55 55
             },
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
     public function visitsToday(WelcomeBlockModule $module, int $block_id): ?int
68 68
     {
69 69
         return app('cache.array')->remember(
70
-            $module->name() . '-matomovisits-daily-' . $block_id,
71
-            function () use ($module, $block_id): ?int {
70
+            $module->name().'-matomovisits-daily-'.$block_id,
71
+            function() use ($module, $block_id) : ?int {
72 72
                 return $this->visits($module, $block_id, 'day');
73 73
             }
74 74
         );
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 ]);
111 111
 
112 112
                 if ($response->getStatusCode() === StatusCodeInterface::STATUS_OK) {
113
-                    $result = json_decode((string) $response->getBody(), true)['value'] ?? null;
113
+                    $result = json_decode((string)$response->getBody(), true)['value'] ?? null;
114 114
                     if ($result !== null) {
115 115
                         return (int)$result;
116 116
                     }
Please login to merge, or discard this patch.
src/Webtrees/Module/AdminTasks/AdminTasksModule.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     //How to update the database schema for this module
52 52
     private const SCHEMA_TARGET_VERSION   = 2;
53 53
     private const SCHEMA_SETTING_NAME     = 'MAJ_ADMTASKS_SCHEMA_VERSION';
54
-    private const SCHEMA_MIGRATION_PREFIX = __NAMESPACE__ . '\Schema';
54
+    private const SCHEMA_MIGRATION_PREFIX = __NAMESPACE__.'\Schema';
55 55
 
56 56
     /**
57 57
      * {@inheritDoc}
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function loadRoutes(Map $router): void
93 93
     {
94
-        $router->attach('', '', static function (Map $router): void {
94
+        $router->attach('', '', static function(Map $router): void {
95 95
 
96
-            $router->attach('', '/module-maj/admintasks', static function (Map $router): void {
96
+            $router->attach('', '/module-maj/admintasks', static function(Map $router): void {
97 97
 
98
-                $router->attach('', '/admin', static function (Map $router): void {
98
+                $router->attach('', '/admin', static function(Map $router): void {
99 99
 
100 100
                     $router->extras([
101 101
                         'middleware' => [
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                     ]);
105 105
                     $router->get(AdminConfigPage::class, '/config', AdminConfigPage::class);
106 106
 
107
-                    $router->attach('', '/tasks', static function (Map $router): void {
107
+                    $router->attach('', '/tasks', static function(Map $router): void {
108 108
 
109 109
                         $router->get(TasksList::class, '', TasksList::class);
110 110
                         $router->get(TaskEditPage::class, '/{task}', TaskEditPage::class);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function bodyContent(): string
148 148
     {
149
-        return view($this->name() . '::snippet', [ 'url' => route(TaskTrigger::class) ]);
149
+        return view($this->name().'::snippet', ['url' => route(TaskTrigger::class)]);
150 150
     }
151 151
 
152 152
     /**
Please login to merge, or discard this patch.
src/Webtrees/Module/AdminTasks/Http/RequestHandlers/TasksList.php 1 patch
Spacing   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         }
75 75
 
76 76
         $task_schedules = $this->taskschedules_service->all(true, true)
77
-            ->map(function (TaskSchedule $value): array {
77
+            ->map(function(TaskSchedule $value): array {
78 78
 
79 79
                 $row = $value->toArray();
80 80
                 $task = $this->taskschedules_service->findTask($row['task_id']);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $sort_columns   = ['task_name', 'enabled', 'last_run'];
87 87
         $module_name = $this->module->name();
88 88
 
89
-        $callback = function (array $row) use ($module_name): array {
89
+        $callback = function(array $row) use ($module_name): array {
90 90
 
91 91
             $row['frequency']->setLocale(I18N::locale()->code());
92 92
 
@@ -109,21 +109,20 @@  discard block
 block discarded – undo
109 109
             ];
110 110
 
111 111
             $datum = [
112
-                view($module_name . '::admin/tasks-table-options', $task_options_params),
113
-                view($module_name . '::components/yes-no-icons', ['yes' => $row['enabled']]),
114
-                '<span dir="auto">' . e($row['task_name']) . '</span>',
112
+                view($module_name.'::admin/tasks-table-options', $task_options_params),
113
+                view($module_name.'::components/yes-no-icons', ['yes' => $row['enabled']]),
114
+                '<span dir="auto">'.e($row['task_name']).'</span>',
115 115
                 $row['last_run']->unix() === 0 ?
116
-                view('components/datetime', ['timestamp' => $row['last_run']]) :
117
-                view('components/datetime-diff', ['timestamp' => $row['last_run']]),
118
-                view($module_name . '::components/yes-no-icons', ['yes' => $row['last_result']]),
119
-                '<span dir="auto">' . e($row['frequency']->cascade()->forHumans()) . '</span>',
116
+                view('components/datetime', ['timestamp' => $row['last_run']]) : view('components/datetime-diff', ['timestamp' => $row['last_run']]),
117
+                view($module_name.'::components/yes-no-icons', ['yes' => $row['last_result']]),
118
+                '<span dir="auto">'.e($row['frequency']->cascade()->forHumans()).'</span>',
120 119
                 $row['nb_occurrences'] > 0 ? I18N::number($row['nb_occurrences']) : I18N::translate('Unlimited'),
121
-                view($module_name . '::components/yes-no-icons', [
120
+                view($module_name.'::components/yes-no-icons', [
122 121
                     'yes' => $row['is_running'],
123 122
                     'text_yes' => I18N::translate('Running'),
124 123
                     'text_no' => I18N::translate('Not running')
125 124
                 ]),
126
-                view($module_name . '::admin/tasks-table-run', $task_run_params)
125
+                view($module_name.'::admin/tasks-table-run', $task_run_params)
127 126
             ];
128 127
 
129 128
             return $datum;
Please login to merge, or discard this patch.