Completed
Push — master ( 544e34...6465ee )
by Jonathan
06:11
created
src/Webtrees/Module/Certificates/Model/CertificateProviderInterface.php 2 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -17,41 +17,41 @@
 block discarded – undo
17 17
  */
18 18
 interface CertificateProviderInterface  {
19 19
     
20
-    /**
21
-     * Returns the certificates directory path as it is really (within the firewall directory).
22
-     *
23
-     * @return string Real certificates directory path
24
-     */
25
-    function getRealCertificatesDirectory();
20
+	/**
21
+	 * Returns the certificates directory path as it is really (within the firewall directory).
22
+	 *
23
+	 * @return string Real certificates directory path
24
+	 */
25
+	function getRealCertificatesDirectory();
26 26
     
27
-    /**
28
-     * Returns an array of the folders (cities) in the certificate directory.
29
-     * Cities name are UTF8 encoded.
30
-     *
31
-     * @return array Array of cities name
32
-     */
33
-    function getCitiesList();
27
+	/**
28
+	 * Returns an array of the folders (cities) in the certificate directory.
29
+	 * Cities name are UTF8 encoded.
30
+	 *
31
+	 * @return array Array of cities name
32
+	 */
33
+	function getCitiesList();
34 34
     
35
-    /**
36
-     * Returns the list of available certificates for a specified city.
37
-     * Format of the list :
38
-     * < file name , date of the certificate , type of certificate , name of the certificate >
39
-     * Data are UTF8 encoded.
40
-     *
41
-     * @param string $selCity City to look in
42
-     * @return array List of certificates
43
-     */
44
-    function getCertificatesList($selCity);
35
+	/**
36
+	 * Returns the list of available certificates for a specified city.
37
+	 * Format of the list :
38
+	 * < file name , date of the certificate , type of certificate , name of the certificate >
39
+	 * Data are UTF8 encoded.
40
+	 *
41
+	 * @param string $selCity City to look in
42
+	 * @return array List of certificates
43
+	 */
44
+	function getCertificatesList($selCity);
45 45
     
46
-    /**
47
-     * Return the list of certificates from a city $city and containing the characters $contains
48
-     *
49
-     * @param string $city City to search in
50
-     * @param string $contains Characters to match
51
-     * @param string $limit Maximum number of results
52
-     * @return array Array of matching certificates
53
-     */
54
-    function getCertificatesListBeginWith($city, $contains, $limit);
46
+	/**
47
+	 * Return the list of certificates from a city $city and containing the characters $contains
48
+	 *
49
+	 * @param string $city City to search in
50
+	 * @param string $contains Characters to match
51
+	 * @param string $limit Maximum number of results
52
+	 * @return array Array of matching certificates
53
+	 */
54
+	function getCertificatesListBeginWith($city, $contains, $limit);
55 55
     
56 56
 }
57 57
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 /**
16 16
  * Interface for providers of certificates
17 17
  */
18
-interface CertificateProviderInterface  {
18
+interface CertificateProviderInterface {
19 19
     
20 20
     /**
21 21
      * Returns the certificates directory path as it is really (within the firewall directory).
Please login to merge, or discard this patch.
src/Webtrees/Module/Certificates/AdminConfigController.php 3 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -35,39 +35,39 @@  discard block
 block discarded – undo
35 35
     protected function update() {
36 36
         global $WT_TREE;
37 37
         
38
-        if(Auth::isAdmin()){
38
+        if (Auth::isAdmin()) {
39 39
             
40 40
             $this->module->setSetting('MAJ_SHOW_CERT', Filter::post('MAJ_SHOW_CERT'));
41 41
             $this->module->setSetting('MAJ_SHOW_NO_WATERMARK', Filter::post('MAJ_SHOW_NO_WATERMARK'));
42 42
             
43
-            if($MAJ_WM_DEFAULT = Filter::post('MAJ_WM_DEFAULT')) {
43
+            if ($MAJ_WM_DEFAULT = Filter::post('MAJ_WM_DEFAULT')) {
44 44
                 $this->module->setSetting('MAJ_WM_DEFAULT', $MAJ_WM_DEFAULT);
45 45
             }
46 46
             
47
-            if($MAJ_WM_FONT_MAXSIZE = Filter::postInteger('MAJ_WM_FONT_MAXSIZE')) {
47
+            if ($MAJ_WM_FONT_MAXSIZE = Filter::postInteger('MAJ_WM_FONT_MAXSIZE')) {
48 48
                 $this->module->setSetting('MAJ_WM_FONT_MAXSIZE', $MAJ_WM_FONT_MAXSIZE);
49 49
             }
50 50
             
51 51
             // Only accept valid color for MAJ_WM_FONT_COLOR
52 52
             $MAJ_WM_FONT_COLOR = Filter::post('MAJ_WM_FONT_COLOR', '#([a-fA-F0-9]{3}){1,2}');            
53
-            if($MAJ_WM_FONT_COLOR) {
53
+            if ($MAJ_WM_FONT_COLOR) {
54 54
                 $this->module->setSetting('MAJ_WM_FONT_COLOR', $MAJ_WM_FONT_COLOR);
55 55
             }
56 56
             
57 57
             // Only accept valid folders for MAJ_CERT_ROOTDIR
58
-            $MAJ_CERT_ROOTDIR = preg_replace('/[\/\\\\]+/', '/', Filter::post('MAJ_CERT_ROOTDIR') . '/');
58
+            $MAJ_CERT_ROOTDIR = preg_replace('/[\/\\\\]+/', '/', Filter::post('MAJ_CERT_ROOTDIR').'/');
59 59
             if (substr($MAJ_CERT_ROOTDIR, 0, 1) === '/') {
60 60
                 $MAJ_CERT_ROOTDIR = substr($MAJ_CERT_ROOTDIR, 1);
61 61
             }
62 62
             
63 63
             if ($MAJ_CERT_ROOTDIR) {
64
-                if (is_dir(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)) {
64
+                if (is_dir(WT_DATA_DIR.$MAJ_CERT_ROOTDIR)) {
65 65
                     $this->module->setSetting('MAJ_CERT_ROOTDIR', $MAJ_CERT_ROOTDIR);
66
-                } elseif (File::mkdir(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)) {
66
+                } elseif (File::mkdir(WT_DATA_DIR.$MAJ_CERT_ROOTDIR)) {
67 67
                     $this->module->setSetting('MAJ_CERT_ROOTDIR', $MAJ_CERT_ROOTDIR);
68
-                    FlashMessages::addMessage(I18N::translate('The folder %s has been created.', Html::filename(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)), 'info');
68
+                    FlashMessages::addMessage(I18N::translate('The folder %s has been created.', Html::filename(WT_DATA_DIR.$MAJ_CERT_ROOTDIR)), 'info');
69 69
                 } else {
70
-                    FlashMessages::addMessage(I18N::translate('The folder %s does not exist, and it could not be created.', Html::filename(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)), 'danger');
70
+                    FlashMessages::addMessage(I18N::translate('The folder %s does not exist, and it could not be created.', Html::filename(WT_DATA_DIR.$MAJ_CERT_ROOTDIR)), 'danger');
71 71
                 }
72 72
             }
73 73
             
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         global $WT_TREE;
89 89
         
90 90
         $action = Filter::post('action');        
91
-        if($action == 'update' && Filter::checkCsrf()) $this->update();
91
+        if ($action == 'update' && Filter::checkCsrf()) $this->update();
92 92
         
93 93
         Theme::theme(new AdministrationTheme)->init($WT_TREE);        
94 94
         $ctrl = new PageController();
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,9 @@
 block discarded – undo
88 88
         global $WT_TREE;
89 89
         
90 90
         $action = Filter::post('action');        
91
-        if($action == 'update' && Filter::checkCsrf()) $this->update();
91
+        if($action == 'update' && Filter::checkCsrf()) {
92
+        	$this->update();
93
+        }
92 94
         
93 95
         Theme::theme(new AdministrationTheme)->init($WT_TREE);        
94 96
         $ctrl = new PageController();
Please login to merge, or discard this patch.
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -28,77 +28,77 @@
 block discarded – undo
28 28
  */
29 29
 class AdminConfigController extends MvcController
30 30
 {
31
-    /**
32
-     * Manage updates sent from the AdminConfig@index form.
33
-     */
34
-    protected function update() {
31
+	/**
32
+	 * Manage updates sent from the AdminConfig@index form.
33
+	 */
34
+	protected function update() {
35 35
         
36
-        if(Auth::isAdmin()){
36
+		if(Auth::isAdmin()){
37 37
             
38
-            $this->module->setSetting('MAJ_SHOW_CERT', Filter::post('MAJ_SHOW_CERT'));
39
-            $this->module->setSetting('MAJ_SHOW_NO_WATERMARK', Filter::post('MAJ_SHOW_NO_WATERMARK'));
38
+			$this->module->setSetting('MAJ_SHOW_CERT', Filter::post('MAJ_SHOW_CERT'));
39
+			$this->module->setSetting('MAJ_SHOW_NO_WATERMARK', Filter::post('MAJ_SHOW_NO_WATERMARK'));
40 40
             
41
-            if($MAJ_WM_DEFAULT = Filter::post('MAJ_WM_DEFAULT')) {
42
-                $this->module->setSetting('MAJ_WM_DEFAULT', $MAJ_WM_DEFAULT);
43
-            }
41
+			if($MAJ_WM_DEFAULT = Filter::post('MAJ_WM_DEFAULT')) {
42
+				$this->module->setSetting('MAJ_WM_DEFAULT', $MAJ_WM_DEFAULT);
43
+			}
44 44
             
45
-            if($MAJ_WM_FONT_MAXSIZE = Filter::postInteger('MAJ_WM_FONT_MAXSIZE')) {
46
-                $this->module->setSetting('MAJ_WM_FONT_MAXSIZE', $MAJ_WM_FONT_MAXSIZE);
47
-            }
45
+			if($MAJ_WM_FONT_MAXSIZE = Filter::postInteger('MAJ_WM_FONT_MAXSIZE')) {
46
+				$this->module->setSetting('MAJ_WM_FONT_MAXSIZE', $MAJ_WM_FONT_MAXSIZE);
47
+			}
48 48
             
49
-            // Only accept valid color for MAJ_WM_FONT_COLOR
50
-            $MAJ_WM_FONT_COLOR = Filter::post('MAJ_WM_FONT_COLOR', '#([a-fA-F0-9]{3}){1,2}');            
51
-            if($MAJ_WM_FONT_COLOR) {
52
-                $this->module->setSetting('MAJ_WM_FONT_COLOR', $MAJ_WM_FONT_COLOR);
53
-            }
49
+			// Only accept valid color for MAJ_WM_FONT_COLOR
50
+			$MAJ_WM_FONT_COLOR = Filter::post('MAJ_WM_FONT_COLOR', '#([a-fA-F0-9]{3}){1,2}');            
51
+			if($MAJ_WM_FONT_COLOR) {
52
+				$this->module->setSetting('MAJ_WM_FONT_COLOR', $MAJ_WM_FONT_COLOR);
53
+			}
54 54
             
55
-            // Only accept valid folders for MAJ_CERT_ROOTDIR
56
-            $MAJ_CERT_ROOTDIR = preg_replace('/[\/\\\\]+/', '/', Filter::post('MAJ_CERT_ROOTDIR') . '/');
57
-            if (substr($MAJ_CERT_ROOTDIR, 0, 1) === '/') {
58
-                $MAJ_CERT_ROOTDIR = substr($MAJ_CERT_ROOTDIR, 1);
59
-            }
55
+			// Only accept valid folders for MAJ_CERT_ROOTDIR
56
+			$MAJ_CERT_ROOTDIR = preg_replace('/[\/\\\\]+/', '/', Filter::post('MAJ_CERT_ROOTDIR') . '/');
57
+			if (substr($MAJ_CERT_ROOTDIR, 0, 1) === '/') {
58
+				$MAJ_CERT_ROOTDIR = substr($MAJ_CERT_ROOTDIR, 1);
59
+			}
60 60
             
61
-            if ($MAJ_CERT_ROOTDIR) {
62
-                if (is_dir(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)) {
63
-                    $this->module->setSetting('MAJ_CERT_ROOTDIR', $MAJ_CERT_ROOTDIR);
64
-                } elseif (File::mkdir(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)) {
65
-                    $this->module->setSetting('MAJ_CERT_ROOTDIR', $MAJ_CERT_ROOTDIR);
66
-                    FlashMessages::addMessage(I18N::translate('The folder %s has been created.', Html::filename(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)), 'info');
67
-                } else {
68
-                    FlashMessages::addMessage(I18N::translate('The folder %s does not exist, and it could not be created.', Html::filename(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)), 'danger');
69
-                }
70
-            }
61
+			if ($MAJ_CERT_ROOTDIR) {
62
+				if (is_dir(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)) {
63
+					$this->module->setSetting('MAJ_CERT_ROOTDIR', $MAJ_CERT_ROOTDIR);
64
+				} elseif (File::mkdir(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)) {
65
+					$this->module->setSetting('MAJ_CERT_ROOTDIR', $MAJ_CERT_ROOTDIR);
66
+					FlashMessages::addMessage(I18N::translate('The folder %s has been created.', Html::filename(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)), 'info');
67
+				} else {
68
+					FlashMessages::addMessage(I18N::translate('The folder %s does not exist, and it could not be created.', Html::filename(WT_DATA_DIR . $MAJ_CERT_ROOTDIR)), 'danger');
69
+				}
70
+			}
71 71
             
72
-            FlashMessages::addMessage(I18N::translate('The preferences for the module “%s” have been updated.', $this->module->getTitle()), 'success');
72
+			FlashMessages::addMessage(I18N::translate('The preferences for the module “%s” have been updated.', $this->module->getTitle()), 'success');
73 73
             
74
-            return;
75
-        }
76
-    }
74
+			return;
75
+		}
76
+	}
77 77
     
78
-    /**
79
-     * Pages
80
-     */
78
+	/**
79
+	 * Pages
80
+	 */
81 81
         
82
-    /**
83
-     * AdminConfig@index
84
-     */
85
-    public function index() {      
86
-        global $WT_TREE;
82
+	/**
83
+	 * AdminConfig@index
84
+	 */
85
+	public function index() {      
86
+		global $WT_TREE;
87 87
         
88
-        $action = Filter::post('action');        
89
-        if($action == 'update' && Filter::checkCsrf()) $this->update();
88
+		$action = Filter::post('action');        
89
+		if($action == 'update' && Filter::checkCsrf()) $this->update();
90 90
         
91
-        Theme::theme(new AdministrationTheme)->init($WT_TREE);        
92
-        $ctrl = new PageController();
93
-        $ctrl
94
-            ->restrictAccess(Auth::isAdmin())
95
-            ->setPageTitle($this->module->getTitle());
91
+		Theme::theme(new AdministrationTheme)->init($WT_TREE);        
92
+		$ctrl = new PageController();
93
+		$ctrl
94
+			->restrictAccess(Auth::isAdmin())
95
+			->setPageTitle($this->module->getTitle());
96 96
 
97
-        $view_bag = new ViewBag();
98
-        $view_bag->set('title', $ctrl->getPageTitle());
99
-        $view_bag->set('module', $this->module);
97
+		$view_bag = new ViewBag();
98
+		$view_bag->set('title', $ctrl->getPageTitle());
99
+		$view_bag->set('module', $this->module);
100 100
         
101
-        ViewFactory::make('AdminConfig', $this, $ctrl, $view_bag)->render();
102
-    }
101
+		ViewFactory::make('AdminConfig', $this, $ctrl, $view_bag)->render();
102
+	}
103 103
         
104 104
 }
105 105
\ No newline at end of file
Please login to merge, or discard this patch.
src/Webtrees/Module/Certificates/Views/CertificateView.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,17 +25,17 @@  discard block
 block discarded – undo
25 25
 	 * {@inhericDoc}
26 26
 	 * @see \MyArtJaub\Webtrees\Mvc\View\AbstractView::renderContent()
27 27
 	 */
28
-    protected function renderContent() {
29
-        ?>                
28
+	protected function renderContent() {
29
+		?>                
30 30
         <div id="maj-cert-page" class="center">
31 31
 			<h2><?php echo $this->data->get('title'); ?></h2>
32 32
 			
33 33
     		<?php if($this->data->get('has_certif', false)) { 
34
-    		    /** @var Certificate $certificate   */
35
-    		  $certificate = $this->data->get('certificate');
36
-    		  $has_linked_indis = $this->data->get('has_linked_indis', false);
37
-    		  $has_linked_fams = $this->data->get('has_linked_fams', false);
38
-    		?>
34
+				/** @var Certificate $certificate   */
35
+			  $certificate = $this->data->get('certificate');
36
+			  $has_linked_indis = $this->data->get('has_linked_indis', false);
37
+			  $has_linked_fams = $this->data->get('has_linked_fams', false);
38
+			?>
39 39
     		<div id="certificate-details">
40 40
         		<h3>
41 41
         			<?php echo $certificate->getCity(); ?>
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     	</div>
87 87
     	
88 88
     	<?php 
89
-    }
89
+	}
90 90
     
91 91
 }
92 92
  
93 93
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         <div id="maj-cert-page" class="center">
31 31
 			<h2><?php echo $this->data->get('title'); ?></h2>
32 32
 			
33
-    		<?php if($this->data->get('has_certif', false)) { 
33
+    		<?php if ($this->data->get('has_certif', false)) { 
34 34
     		    /** @var Certificate $certificate   */
35 35
     		  $certificate = $this->data->get('certificate');
36 36
     		  $has_linked_indis = $this->data->get('has_linked_indis', false);
@@ -49,16 +49,16 @@  discard block
 block discarded – undo
49 49
     				<div id="certificate-edit">
50 50
     					<?php echo $certificate->displayImage(); ?>
51 51
     				</div>
52
-    				<?php if($has_linked_indis || $has_linked_fams) { ?>
52
+    				<?php if ($has_linked_indis || $has_linked_fams) { ?>
53 53
     				<ul>
54
-    					<?php if($has_linked_indis) { ?>
54
+    					<?php if ($has_linked_indis) { ?>
55 55
     					<li>
56 56
     						<a href="#indi-certificate">
57 57
     							<span id="indisource"><?php echo I18N::translate('Individuals'); ?></span>
58 58
     						</a>
59 59
     					</li>
60 60
     					<?php } ?>
61
-    					<?php if($has_linked_fams) { ?>
61
+    					<?php if ($has_linked_fams) { ?>
62 62
     					<li>
63 63
     						<a href="#fam-certificate">
64 64
     							<span id="famsource"><?php echo I18N::translate('Families'); ?></span>
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
     					<?php } ?>
68 68
     				</ul>
69 69
     				
70
-    				<?php if($has_linked_indis) { ?>
70
+    				<?php if ($has_linked_indis) { ?>
71 71
     				<div id="indi-certificate">
72 72
     					<?php echo FunctionsPrintLists::individualTable($this->data->get('linked_indis')); ?>
73 73
     				</div>
74 74
 					<?php } ?>
75 75
 					
76
-					<?php if($has_linked_fams) { ?>
76
+					<?php if ($has_linked_fams) { ?>
77 77
     				<div id="fam-certificate">
78 78
     					<?php echo FunctionsPrintLists::familyTable($this->data->get('linked_fams')); ?>
79 79
     				</div>
Please login to merge, or discard this patch.
src/Webtrees/Module/Certificates/Views/AdminConfigView.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
 	 * {@inhericDoc}
27 27
 	 * @see \MyArtJaub\Webtrees\Mvc\View\AbstractView::renderContent()
28 28
 	 */
29
-    protected function renderContent() {
29
+	protected function renderContent() {
30 30
         
31
-        /** @var AbstractModule $module  */
32
-        $module = $this->data->get('module');        
33
-        ?>        
31
+		/** @var AbstractModule $module  */
32
+		$module = $this->data->get('module');        
33
+		?>        
34 34
         <ol class="breadcrumb small">
35 35
         	<li><a href="admin.php"><?php echo I18N::translate('Control panel'); ?></a></li>
36 36
 			<li><a href="admin_modules.php"><?php echo I18N::translate('Module administration'); ?></a></li>
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         </form>
187 187
 		
188 188
 		<?php        
189
-    }
189
+	}
190 190
     
191 191
 }
192 192
  
193 193
\ No newline at end of file
Please login to merge, or discard this patch.
src/Webtrees/Module/Certificates/Views/CertificatesListView.php 3 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
 	 * {@inhericDoc}
26 26
 	 * @see \MyArtJaub\Webtrees\Mvc\View\AbstractView::renderContent()
27 27
 	 */
28
-    protected function renderContent() {
28
+	protected function renderContent() {
29 29
         
30
-        $cities = $this->data->get('cities');
31
-        $selected_city = $this->data->get('selected_city');
30
+		$cities = $this->data->get('cities');
31
+		$selected_city = $this->data->get('selected_city');
32 32
         
33
-        ?>                
33
+		?>                
34 34
         <div id="maj-cert-list-page" class="center">
35 35
 			<h2><?php echo $this->data->get('title'); ?></h2>
36 36
 			
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
     				</thead>
62 62
     				<tbody>
63 63
     				<?php foreach ($this->data->get('certificate_list') as $certificate) { 
64
-    				    /** @var \MyArtJaub\Webtrees\Module\Certificates\Model\Certificate $certificate */
65
-    				    ?>
64
+						/** @var \MyArtJaub\Webtrees\Module\Certificates\Model\Certificate $certificate */
65
+						?>
66 66
     					<tr>
67 67
     						<!-- Certificate date -->
68 68
     						<?php if($date = $certificate->getCertificateDate()) { ?>
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
     						<td><?php echo Filter::escapeHtml($certificate->getCertificateType() ?: '');  ?></td>
77 77
     						<!--  Certificate Name -->
78 78
     						<?php 
79
-    						$name = $certificate->getCertificateDetails() ?: '';
80
-    						$sortname = "";
81
-    						$ct_names=preg_match("/([A-Z]{2,})/", $name, $match);
82
-    						if($ct_names > 0) $sortname = $match[1].'_';
83
-    						$sortname .= $name;
84
-    						?>
79
+							$name = $certificate->getCertificateDetails() ?: '';
80
+							$sortname = "";
81
+							$ct_names=preg_match("/([A-Z]{2,})/", $name, $match);
82
+							if($ct_names > 0) $sortname = $match[1].'_';
83
+							$sortname .= $name;
84
+							?>
85 85
     						<td><?php echo Filter::escapeHtml($sortname); ?></td>
86 86
     						<td>
87 87
     							<a href="<?php echo $certificate->getHtmlUrl(); ?>"><?php echo Filter::escapeHtml($name); ?></a>
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     	</div>
96 96
     	
97 97
     	<?php 
98
-    }
98
+	}
99 99
     
100 100
 }
101 101
  
102 102
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
     			<input type="hidden" name="ged" value="<?= $this->data->get('url_ged') ?>">
40 40
     			<select name="city">
41 41
     			<?php foreach ($cities as $city) { ?>
42
-    				<option value="<?= Functions::encryptToSafeBase64($city) ?>" <?php if(trim($city) == trim($selected_city)) echo 'selected="selected"'?> ><?= $city ?></option>
42
+    				<option value="<?= Functions::encryptToSafeBase64($city) ?>" <?php if (trim($city) == trim($selected_city)) echo 'selected="selected"'?> ><?= $city ?></option>
43 43
     			<?php } ?>
44 44
     			</select>
45 45
     			<input type="submit" value="<?= I18N::translate('Show') ?>" />
46 46
     		</form>
47 47
     		
48
-    		<?php if($this->data->get('has_list', false)) { ?>
48
+    		<?php if ($this->data->get('has_list', false)) { ?>
49 49
     		<div class="loading-image">&nbsp;</div>
50 50
     		<div class="certificate-list">
51 51
     			<table id="<?= $this->data->get('table_id') ?>">
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     				    ?>
63 63
     					<tr>
64 64
     						<!-- Certificate date -->
65
-    						<?php if($date = $certificate->getCertificateDate()) { ?>
65
+    						<?php if ($date = $certificate->getCertificateDate()) { ?>
66 66
     						<td data-sort="<?= $date->julianDay() ?>"><?= $date->display() ?></td>
67 67
     						<?php } else { ?>
68 68
     						<td data-sort="0">&nbsp;</td>
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
     						<?php 
74 74
     						$name = $certificate->getCertificateDetails() ?: '';
75 75
     						$sortname = "";
76
-    						$ct_names=preg_match("/([A-Z]{2,})/", $name, $match);
77
-    						if($ct_names > 0) $sortname = $match[1].'_';
76
+    						$ct_names = preg_match("/([A-Z]{2,})/", $name, $match);
77
+    						if ($ct_names > 0) $sortname = $match[1].'_';
78 78
     						$sortname .= $name;
79 79
     						?>
80 80
     						<td data-sort="<?= Filter::escapeHtml($sortname) ?>">
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,8 @@  discard block
 block discarded – undo
39 39
     			<input type="hidden" name="ged" value="<?= $this->data->get('url_ged') ?>">
40 40
     			<select name="city">
41 41
     			<?php foreach ($cities as $city) { ?>
42
-    				<option value="<?= Functions::encryptToSafeBase64($city) ?>" <?php if(trim($city) == trim($selected_city)) echo 'selected="selected"'?> ><?= $city ?></option>
42
+    				<option value="<?= Functions::encryptToSafeBase64($city) ?>" <?php if(trim($city) == trim($selected_city)) {
43
+	echo 'selected="selected"'?> ><?= $city ?></option>
43 44
     			<?php } ?>
44 45
     			</select>
45 46
     			<input type="submit" value="<?= I18N::translate('Show') ?>" />
@@ -72,9 +73,12 @@  discard block
 block discarded – undo
72 73
     						<!--  Certificate Name -->
73 74
     						<?php 
74 75
     						$name = $certificate->getCertificateDetails() ?: '';
76
+}
75 77
     						$sortname = "";
76 78
     						$ct_names=preg_match("/([A-Z]{2,})/", $name, $match);
77
-    						if($ct_names > 0) $sortname = $match[1].'_';
79
+    						if($ct_names > 0) {
80
+    							$sortname = $match[1].'_';
81
+    						}
78 82
     						$sortname .= $name;
79 83
     						?>
80 84
     						<td data-sort="<?= Filter::escapeHtml($sortname) ?>">
Please login to merge, or discard this patch.
src/Webtrees/Module/PatronymicLineageModule.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      public function getMenu(fw\Tree $tree, $reference) {
49 49
          $tree_url = $tree ? $tree->getNameUrl() : '';
50 50
          $surname = $reference && is_string($reference) ? $reference : '';
51
-         return new fw\Menu($this->getTitle(), 'module.php?mod=' . $this->getName() . '&mod_action=Lineage&ged=' . $tree_url . '&surname=' . $surname , 'menu-maj-list-lineage', array('rel' => 'nofollow'));
51
+         return new fw\Menu($this->getTitle(), 'module.php?mod='.$this->getName().'&mod_action=Lineage&ged='.$tree_url.'&surname='.$surname, 'menu-maj-list-lineage', array('rel' => 'nofollow'));
52 52
      }
53 53
 
54 54
 }
Please login to merge, or discard this patch.
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -18,40 +18,40 @@
 block discarded – undo
18 18
  * Patronymic Lineage Module.
19 19
  */
20 20
 class PatronymicLineageModule extends fw\Module\AbstractModule 
21
-    implements ModuleMenuItemInterface
21
+	implements ModuleMenuItemInterface
22 22
 {
23
-    /** @var string For custom modules - link for support, upgrades, etc. */
24
-    const CUSTOM_WEBSITE = 'https://github.com/jon48/webtrees-lib';
23
+	/** @var string For custom modules - link for support, upgrades, etc. */
24
+	const CUSTOM_WEBSITE = 'https://github.com/jon48/webtrees-lib';
25 25
         
26
-    /**
27
-     * {@inhericDoc}
28
-     */
29
-    public function getTitle() {
30
-        return /* I18N: Name of the “Patronymic lineage” module */ I18N::translate('Patronymic Lineages');
31
-    }
26
+	/**
27
+	 * {@inhericDoc}
28
+	 */
29
+	public function getTitle() {
30
+		return /* I18N: Name of the “Patronymic lineage” module */ I18N::translate('Patronymic Lineages');
31
+	}
32 32
     
33
-    /**
34
-     * {@inhericDoc}
35
-     */
36
-    public function getDescription() {
37
-        return /* I18N: Description of the “Patronymic lineage” module */ I18N::translate('Display lineages of people holding the same surname.');
38
-    }
33
+	/**
34
+	 * {@inhericDoc}
35
+	 */
36
+	public function getDescription() {
37
+		return /* I18N: Description of the “Patronymic lineage” module */ I18N::translate('Display lineages of people holding the same surname.');
38
+	}
39 39
     
40
-    /**
41
-     * {@inhericDoc}
42
-     */
43
-    public function modAction($mod_action) {
44
-        \MyArtJaub\Webtrees\Mvc\Dispatcher::getInstance()->handle($this, $mod_action);
45
-    }

46
-     /** 
47
-      * {@inhericDoc}
48
-      * @see \MyArtJaub\Webtrees\Module\ModuleMenuItemInterface::getMenu()
49
-      */
50
-     public function getMenu(fw\Tree $tree, $reference) {
51
-         $tree_url = $tree ? $tree->getNameUrl() : '';
52
-         $surname = $reference && is_string($reference) ? $reference : '';
53
-         return new fw\Menu($this->getTitle(), 'module.php?mod=' . $this->getName() . '&mod_action=Lineage&ged=' . $tree_url . '&surname=' . $surname , 'menu-maj-list-lineage', array('rel' => 'nofollow'));
54
-     }
40
+	/**
41
+	 * {@inhericDoc}
42
+	 */
43
+	public function modAction($mod_action) {
44
+		\MyArtJaub\Webtrees\Mvc\Dispatcher::getInstance()->handle($this, $mod_action);
45
+	}

46
+	 /** 
47
+	  * {@inhericDoc}
48
+	  * @see \MyArtJaub\Webtrees\Module\ModuleMenuItemInterface::getMenu()
49
+	  */
50
+	 public function getMenu(fw\Tree $tree, $reference) {
51
+		 $tree_url = $tree ? $tree->getNameUrl() : '';
52
+		 $surname = $reference && is_string($reference) ? $reference : '';
53
+		 return new fw\Menu($this->getTitle(), 'module.php?mod=' . $this->getName() . '&mod_action=Lineage&ged=' . $tree_url . '&surname=' . $surname , 'menu-maj-list-lineage', array('rel' => 'nofollow'));
54
+	 }
55 55
 
56 56
 }
57 57
  
58 58
\ No newline at end of file
Please login to merge, or discard this patch.
src/Webtrees/Module/WelcomeBlock/Views/WelcomeBlockView.php 2 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -24,16 +24,16 @@  discard block
 block discarded – undo
24 24
 	 * {@inhericDoc}
25 25
 	 * @see \MyArtJaub\Webtrees\Mvc\View\AbstractView::renderContent()
26 26
 	 */
27
-    protected function renderContent() {        
28
-        /** @var \Fisharebest\Webtrees\Individual $indi */
29
-        $indi = $this->data->get('indi');
27
+	protected function renderContent() {        
28
+		/** @var \Fisharebest\Webtrees\Individual $indi */
29
+		$indi = $this->data->get('indi');
30 30
         
31
-        /** @var \Fisharebest\Webtrees\Tree $tree */
32
-        $tree = $this->data->get('tree');
31
+		/** @var \Fisharebest\Webtrees\Tree $tree */
32
+		$tree = $this->data->get('tree');
33 33
                 
34
-        //Welcome section - gedcom title, date, statistics - based on gedcom_block        
35
-        $content = 
36
-            '<table>
34
+		//Welcome section - gedcom title, date, statistics - based on gedcom_block        
35
+		$content = 
36
+			'<table>
37 37
                 <tr>
38 38
                     <td>
39 39
                         <a href="pedigree.php?rootid=' . $indi->getXref() . '&amp;ged=' . $tree->getNameUrl() . '">
@@ -46,33 +46,33 @@  discard block
 block discarded – undo
46 46
                         </a>
47 47
                     </td>';
48 48
         
49
-        if (Site::getPreference('USE_REGISTRATION_MODULE') && !Auth::check()) {
50
-            $content .= '
49
+		if (Site::getPreference('USE_REGISTRATION_MODULE') && !Auth::check()) {
50
+			$content .= '
51 51
                     <td>
52 52
                         <a href="' . WT_LOGIN_URL . '?action=register">
53 53
                             <i class="icon-user_add"></i><br>'.I18N::translate('Request new user account').'
54 54
                         </a>
55 55
                     </td>';
56
-        }
57
-        $content .= '
56
+		}
57
+		$content .= '
58 58
                 </tr>
59 59
             </table>';
60 60
         
61
-        // Piwik Statistics        
62
-        if ($this->data->get('piwik_enabled', false)){
63
-            $content .= '
61
+		// Piwik Statistics        
62
+		if ($this->data->get('piwik_enabled', false)){
63
+			$content .= '
64 64
                 <div class="center">
65 65
                     <div id="piwik_stats">
66 66
                         <i class="icon-loading-small"></i>&nbsp;' . I18N::translate('Retrieving Piwik statistics...') . '
67 67
                     </div>
68 68
                 </div>';
69
-        }
69
+		}
70 70
         
71
-        $content .=  '<hr />';
71
+		$content .=  '<hr />';
72 72
         
73
-        // Login section - based on login_block
74
-        if (Auth::check()) {
75
-            $content .= '
73
+		// Login section - based on login_block
74
+		if (Auth::check()) {
75
+			$content .= '
76 76
             <div class="center">
77 77
                 <form method="post" action="logout.php" name="logoutform" onsubmit="return true;">
78 78
                     <br>
@@ -82,14 +82,14 @@  discard block
 block discarded – undo
82 82
                     <br><br>
83 83
                 </form>
84 84
             </div>';
85
-        } else {
86
-            $content .= '
85
+		} else {
86
+			$content .= '
87 87
             <div id="maj-login-box">
88 88
                 <form id="maj-login-form" name="maj-login-form" method="post" action="'.WT_LOGIN_URL.'">
89 89
 					<input type="hidden" name="action" value="login">
90 90
 				    <div>
91 91
 					    <label for="maj-username">'. I18N::translate('Username').
92
-							    '<input type="text" id="maj-username" name="username" class="formField">
92
+								'<input type="text" id="maj-username" name="username" class="formField">
93 93
 						</label>
94 94
 					</div>
95 95
 					<div>
@@ -103,17 +103,17 @@  discard block
 block discarded – undo
103 103
 					<div>
104 104
 						<a href="#" id="maj-passwd_click">'. I18N::translate('Request new password').'</a>
105 105
 					</div>';
106
-            if (Site::getPreference('USE_REGISTRATION_MODULE')) {
107
-                $content.= '
106
+			if (Site::getPreference('USE_REGISTRATION_MODULE')) {
107
+				$content.= '
108 108
                     <div>
109 109
                         <a href="'.WT_LOGIN_URL.'?action=register">'. I18N::translate('Request new user account').'</a>
110 110
                     </div>';
111
-            }
112
-            $content.= '
111
+			}
112
+			$content.= '
113 113
                 </form>'; // close "login-form"
114 114
              
115
-            // hidden New Password block
116
-            $content.= '
115
+			// hidden New Password block
116
+			$content.= '
117 117
                 <div id="maj-new_passwd">
118 118
                     <form id="maj-new_passwd_form" name="new_passwd_form" action="'.WT_LOGIN_URL.'" method="post">
119 119
                         <input type="hidden" name="time" value="">
@@ -130,10 +130,10 @@  discard block
 block discarded – undo
130 130
                     </form>
131 131
                 </div>
132 132
             </div>';//"login-box"
133
-        }
133
+		}
134 134
         
135
-        return $content;
136
-    }
135
+		return $content;
136
+	}
137 137
     
138 138
 
139 139
 }
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -36,20 +36,20 @@  discard block
 block discarded – undo
36 36
             '<table>
37 37
                 <tr>
38 38
                     <td>
39
-                        <a href="pedigree.php?rootid=' . $indi->getXref() . '&amp;ged=' . $tree->getNameUrl() . '">
40
-                            <i class="icon-pedigree"></i><br>' . I18N::translate('Default chart') . '
39
+                        <a href="pedigree.php?rootid=' . $indi->getXref().'&amp;ged='.$tree->getNameUrl().'">
40
+                            <i class="icon-pedigree"></i><br>' . I18N::translate('Default chart').'
41 41
                         </a>
42 42
                     </td>
43 43
                     <td>
44
-                        <a href="individual.php?pid=' . $indi->getXref() . '&amp;ged=' . $tree->getNameUrl() . '">
45
-                            <i class="icon-indis"></i><br>' . I18N::translate('Default individual') . '
44
+                        <a href="individual.php?pid=' . $indi->getXref().'&amp;ged='.$tree->getNameUrl().'">
45
+                            <i class="icon-indis"></i><br>' . I18N::translate('Default individual').'
46 46
                         </a>
47 47
                     </td>';
48 48
         
49 49
         if (Site::getPreference('USE_REGISTRATION_MODULE') && !Auth::check()) {
50 50
             $content .= '
51 51
                     <td>
52
-                        <a href="' . WT_LOGIN_URL . '?action=register">
52
+                        <a href="' . WT_LOGIN_URL.'?action=register">
53 53
                             <i class="icon-user_add"></i><br>'.I18N::translate('Request new user account').'
54 54
                         </a>
55 55
                     </td>';
@@ -59,16 +59,16 @@  discard block
 block discarded – undo
59 59
             </table>';
60 60
         
61 61
         // Piwik Statistics        
62
-        if ($this->data->get('piwik_enabled', false)){
62
+        if ($this->data->get('piwik_enabled', false)) {
63 63
             $content .= '
64 64
                 <div class="center">
65 65
                     <div id="piwik_stats">
66
-                        <i class="icon-loading-small"></i>&nbsp;' . I18N::translate('Retrieving Piwik statistics...') . '
66
+                        <i class="icon-loading-small"></i>&nbsp;' . I18N::translate('Retrieving Piwik statistics...').'
67 67
                     </div>
68 68
                 </div>';
69 69
         }
70 70
         
71
-        $content .=  '<hr />';
71
+        $content .= '<hr />';
72 72
         
73 73
         // Login section - based on login_block
74 74
         if (Auth::check()) {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             <div class="center">
77 77
                 <form method="post" action="logout.php" name="logoutform" onsubmit="return true;">
78 78
                     <br>
79
-                    <a href="edituser.php" class="name2">' . I18N::translate('Logged in as ') . ' ' . Auth::user()->getRealNameHtml() . '</a>
79
+                    <a href="edituser.php" class="name2">' . I18N::translate('Logged in as ').' '.Auth::user()->getRealNameHtml().'</a>
80 80
                     <br><br>
81 81
                     <input type="submit" value="'.I18N::translate('Logout').'">
82 82
                     <br><br>
@@ -98,34 +98,34 @@  discard block
 block discarded – undo
98 98
 						</label>
99 99
 					</div>
100 100
 					<div>
101
-						<input type="submit" value="'. I18N::translate('Login'). '">
101
+						<input type="submit" value="'. I18N::translate('Login').'">
102 102
 					</div>
103 103
 					<div>
104 104
 						<a href="#" id="maj-passwd_click">'. I18N::translate('Request new password').'</a>
105 105
 					</div>';
106 106
             if (Site::getPreference('USE_REGISTRATION_MODULE')) {
107
-                $content.= '
107
+                $content .= '
108 108
                     <div>
109
-                        <a href="'.WT_LOGIN_URL.'?action=register">'. I18N::translate('Request new user account').'</a>
109
+                        <a href="'.WT_LOGIN_URL.'?action=register">'.I18N::translate('Request new user account').'</a>
110 110
                     </div>';
111 111
             }
112
-            $content.= '
112
+            $content .= '
113 113
                 </form>'; // close "login-form"
114 114
              
115 115
             // hidden New Password block
116
-            $content.= '
116
+            $content .= '
117 117
                 <div id="maj-new_passwd">
118 118
                     <form id="maj-new_passwd_form" name="new_passwd_form" action="'.WT_LOGIN_URL.'" method="post">
119 119
                         <input type="hidden" name="time" value="">
120 120
                         <input type="hidden" name="action" value="requestpw">
121 121
                         <h4>'. I18N::translate('Lost password request').'</h4>
122 122
                         <div>
123
-                            <label for="maj-new_passwd_username">'. I18N::translate('Username or email address') . '
123
+                            <label for="maj-new_passwd_username">'. I18N::translate('Username or email address').'
124 124
                                 <input type="text" id="maj-new_passwd_username" name="new_passwd_username" value="">
125 125
                             </label>
126 126
         				</div>
127 127
         				<div>
128
-                            <input type="submit" value="'. I18N::translate('Continue'). '">
128
+                            <input type="submit" value="'. I18N::translate('Continue').'">
129 129
                         </div>
130 130
                     </form>
131 131
                 </div>
Please login to merge, or discard this patch.
src/Webtrees/Module/WelcomeBlock/Views/PiwikStatsView.php 3 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -22,20 +22,20 @@
 block discarded – undo
22 22
 	 * {@inhericDoc}
23 23
 	 * @see \MyArtJaub\Webtrees\Mvc\View\AbstractView::renderContent()
24 24
 	 */
25
-    protected function renderContent() {    
26
-        if($this->data->get('has_stats', false)) {
27
-            $html = I18N::translate('%1$s visits since the beginning of %2$s<br>(%3$s today)' ,
28
-                '<span class="odometer">' . I18N::number($this->data->get('visits_year')) . '</span>',
29
-                date('Y'),
30
-                '<span class="odometer">' . I18N::number($this->data->get('visits_today')) . '</span>'
31
-                );
32
-        }
33
-        else {
34
-            $html = I18N::translate('No statistics could be retrieved from Piwik.');
35
-        }
25
+	protected function renderContent() {    
26
+		if($this->data->get('has_stats', false)) {
27
+			$html = I18N::translate('%1$s visits since the beginning of %2$s<br>(%3$s today)' ,
28
+				'<span class="odometer">' . I18N::number($this->data->get('visits_year')) . '</span>',
29
+				date('Y'),
30
+				'<span class="odometer">' . I18N::number($this->data->get('visits_today')) . '</span>'
31
+				);
32
+		}
33
+		else {
34
+			$html = I18N::translate('No statistics could be retrieved from Piwik.');
35
+		}
36 36
         
37
-        return $html;
38
-    }
37
+		return $html;
38
+	}
39 39
     
40 40
 
41 41
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
 	 * @see \MyArtJaub\Webtrees\Mvc\View\AbstractView::renderContent()
24 24
 	 */
25 25
     protected function renderContent() {    
26
-        if($this->data->get('has_stats', false)) {
27
-            $html = I18N::translate('%1$s visits since the beginning of %2$s<br>(%3$s today)' ,
28
-                '<span class="odometer">' . I18N::number($this->data->get('visits_year')) . '</span>',
26
+        if ($this->data->get('has_stats', false)) {
27
+            $html = I18N::translate('%1$s visits since the beginning of %2$s<br>(%3$s today)',
28
+                '<span class="odometer">'.I18N::number($this->data->get('visits_year')).'</span>',
29 29
                 date('Y'),
30
-                '<span class="odometer">' . I18N::number($this->data->get('visits_today')) . '</span>'
30
+                '<span class="odometer">'.I18N::number($this->data->get('visits_today')).'</span>'
31 31
                 );
32 32
         }
33 33
         else {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
                 date('Y'),
30 30
                 '<span class="odometer">' . I18N::number($this->data->get('visits_today')) . '</span>'
31 31
                 );
32
-        }
33
-        else {
32
+        } else {
34 33
             $html = I18N::translate('No statistics could be retrieved from Piwik.');
35 34
         }
36 35
         
Please login to merge, or discard this patch.
src/Webtrees/Module/WelcomeBlock/Views/WelcomeBlockConfigView.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -23,51 +23,51 @@
 block discarded – undo
23 23
 	 * {@inhericDoc}
24 24
 	 * @see \MyArtJaub\Webtrees\Mvc\View\AbstractView::renderContent()
25 25
 	 */
26
-    protected function renderContent() {     
26
+	protected function renderContent() {     
27 27
         
28
-        return '
28
+		return '
29 29
             <tr>
30 30
                 <td class="descriptionbox wrap width33">' .
31
-                I18N::translate('Enable Piwik Statistics') .
32
-                // Ideally, would like to add helpLink, but this does not work for modules...
33
-                // FunctionsPrint::helpLink('piwik_enabled', $this->getName());
34
-                '</td>
31
+				I18N::translate('Enable Piwik Statistics') .
32
+				// Ideally, would like to add helpLink, but this does not work for modules...
33
+				// FunctionsPrint::helpLink('piwik_enabled', $this->getName());
34
+				'</td>
35 35
                 <td class="optionbox">' .
36
-                FunctionsEdit::editFieldYesNo('piwik_enabled', $this->data->get('piwik_enabled', '0')) .
37
-                '</td>
36
+				FunctionsEdit::editFieldYesNo('piwik_enabled', $this->data->get('piwik_enabled', '0')) .
37
+				'</td>
38 38
             </tr>' .
39 39
             
40
-            '<tr>
40
+			'<tr>
41 41
                 <td class="descriptionbox wrap width33">' .
42
-                I18N::translate('Piwik URL') .
43
-                '</td>
42
+				I18N::translate('Piwik URL') .
43
+				'</td>
44 44
                 <td class="optionbox">
45 45
                     <input type="text" name="piwik_url" size="45" value="' . 
46
-                    $this->data->get('piwik_url', '') . '" />
46
+					$this->data->get('piwik_url', '') . '" />
47 47
                 </td>
48 48
             </tr>' .
49 49
             
50
-            '<tr>
50
+			'<tr>
51 51
                 <td class="descriptionbox wrap width33">' .
52
-                    I18N::translate('Piwik Token') .
53
-                '</td>
52
+					I18N::translate('Piwik Token') .
53
+				'</td>
54 54
                 <td class="optionbox">
55 55
                     <input type="text" name="piwik_token" size="45" value="' . 
56
-                    $this->data->get('piwik_token', '') . '" />
56
+					$this->data->get('piwik_token', '') . '" />
57 57
                 </td>
58 58
             </tr>' .
59 59
             
60
-            '<tr>
60
+			'<tr>
61 61
                 <td class="descriptionbox wrap width33">' .
62
-                    I18N::translate('Piwik Site ID') .
63
-                '</td>
62
+					I18N::translate('Piwik Site ID') .
63
+				'</td>
64 64
                 <td class="optionbox">
65 65
                     <input type="text" name="piwik_siteid" size="4" value="' . 
66
-                    $this->data->get('piwik_siteid', '') . '" />
66
+					$this->data->get('piwik_siteid', '') . '" />
67 67
                 </td>
68 68
             </tr>' ;
69 69
         
70
-    }
70
+	}
71 71
     
72 72
 
73 73
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,42 +28,42 @@
 block discarded – undo
28 28
         return '
29 29
             <tr>
30 30
                 <td class="descriptionbox wrap width33">' .
31
-                I18N::translate('Enable Piwik Statistics') .
31
+                I18N::translate('Enable Piwik Statistics').
32 32
                 // Ideally, would like to add helpLink, but this does not work for modules...
33 33
                 // FunctionsPrint::helpLink('piwik_enabled', $this->getName());
34 34
                 '</td>
35 35
                 <td class="optionbox">' .
36
-                FunctionsEdit::editFieldYesNo('piwik_enabled', $this->data->get('piwik_enabled', '0')) .
36
+                FunctionsEdit::editFieldYesNo('piwik_enabled', $this->data->get('piwik_enabled', '0')).
37 37
                 '</td>
38 38
             </tr>' .
39 39
             
40 40
             '<tr>
41 41
                 <td class="descriptionbox wrap width33">' .
42
-                I18N::translate('Piwik URL') .
42
+                I18N::translate('Piwik URL').
43 43
                 '</td>
44 44
                 <td class="optionbox">
45 45
                     <input type="text" name="piwik_url" size="45" value="' . 
46
-                    $this->data->get('piwik_url', '') . '" />
46
+                    $this->data->get('piwik_url', '').'" />
47 47
                 </td>
48 48
             </tr>' .
49 49
             
50 50
             '<tr>
51 51
                 <td class="descriptionbox wrap width33">' .
52
-                    I18N::translate('Piwik Token') .
52
+                    I18N::translate('Piwik Token').
53 53
                 '</td>
54 54
                 <td class="optionbox">
55 55
                     <input type="text" name="piwik_token" size="45" value="' . 
56
-                    $this->data->get('piwik_token', '') . '" />
56
+                    $this->data->get('piwik_token', '').'" />
57 57
                 </td>
58 58
             </tr>' .
59 59
             
60 60
             '<tr>
61 61
                 <td class="descriptionbox wrap width33">' .
62
-                    I18N::translate('Piwik Site ID') .
62
+                    I18N::translate('Piwik Site ID').
63 63
                 '</td>
64 64
                 <td class="optionbox">
65 65
                     <input type="text" name="piwik_siteid" size="4" value="' . 
66
-                    $this->data->get('piwik_siteid', '') . '" />
66
+                    $this->data->get('piwik_siteid', '').'" />
67 67
                 </td>
68 68
             </tr>' ;
69 69
         
Please login to merge, or discard this patch.