Completed
Push — 3.2.x ( eabb04...b8f3d7 )
by Erwan
02:27
created
ext.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
 class ext extends \phpbb\extension\base
18 18
 {
19 19
 	/**
20
-	* Enable extension if requirements are met
21
-	*
22
-	* @return bool
23
-	* @aceess public
24
-	*/
20
+	 * Enable extension if requirements are met
21
+	 *
22
+	 * @return bool
23
+	 * @aceess public
24
+	 */
25 25
 	public function is_enableable()
26 26
 	{
27 27
 		$php_ini = $this->container->get('php_ini');
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 	}
43 43
 
44 44
 	/**
45
-	* Single enable step that installs any included migrations
46
-	*
47
-	* @param mixed $old_state State returned by previous call of this method
48
-	* @return mixed Returns false after last step, otherwise temporary state
49
-	*/
45
+	 * Single enable step that installs any included migrations
46
+	 *
47
+	 * @param mixed $old_state State returned by previous call of this method
48
+	 * @return mixed Returns false after last step, otherwise temporary state
49
+	 */
50 50
 	public function enable_step($old_state)
51 51
 	{
52 52
 		switch ($old_state)
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
 	}
81 81
 
82 82
 	/**
83
-	* Single disable step that does nothing
84
-	*
85
-	* @param mixed $old_state State returned by previous call of this method
86
-	* @return mixed Returns false after last step, otherwise temporary state
87
-	*/
83
+	 * Single disable step that does nothing
84
+	 *
85
+	 * @param mixed $old_state State returned by previous call of this method
86
+	 * @return mixed Returns false after last step, otherwise temporary state
87
+	 */
88 88
 	public function disable_step($old_state)
89 89
 	{
90 90
 		switch ($old_state)
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
 	}
113 113
 
114 114
 	/**
115
-	* Single purge step that reverts any included and installed migrations
116
-	*
117
-	* @param mixed $old_state State returned by previous call of this method
118
-	* @return mixed Returns false after last step, otherwise temporary state
119
-	*/
115
+	 * Single purge step that reverts any included and installed migrations
116
+	 *
117
+	 * @param mixed $old_state State returned by previous call of this method
118
+	 * @return mixed Returns false after last step, otherwise temporary state
119
+	 */
120 120
 	public function purge_step($old_state)
121 121
 	{
122 122
 		switch ($old_state)
@@ -144,16 +144,16 @@  discard block
 block discarded – undo
144 144
 	}
145 145
 
146 146
 	/**
147
-	* Notification handler to call notification enable/disable/purge steps
148
-	*
149
-	* @author VSEphpbb (Matt Friedman)
150
-	* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
151
-	* @license GNU General Public License, version 2 (GPL-2.0)
152
-	* @param string $step The step (enable, disable, purge)
153
-	* @param array $notification_types The notification type names
154
-	* @return string Return notifications as temporary state
155
-	* @access protected
156
-	*/
147
+	 * Notification handler to call notification enable/disable/purge steps
148
+	 *
149
+	 * @author VSEphpbb (Matt Friedman)
150
+	 * @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
151
+	 * @license GNU General Public License, version 2 (GPL-2.0)
152
+	 * @param string $step The step (enable, disable, purge)
153
+	 * @param array $notification_types The notification type names
154
+	 * @return string Return notifications as temporary state
155
+	 * @access protected
156
+	 */
157 157
 	protected function notification_handler($step, $notification_types)
158 158
 	{
159 159
 		$phpbb_notifications = $this->container->get('notification_manager');
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 			return false;
33 33
 		}
34 34
 
35
-		if (!file_exists($this->extension_path. 'vendor/autoload.php'))
35
+		if (!file_exists($this->extension_path.'vendor/autoload.php'))
36 36
 		{
37 37
 			return false;
38 38
 		}
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 				if (!class_exists('\E1379\SpeakingUrl\SpeakingUrl'))
70 70
 				{
71 71
 					// When migration is executed, phpBB doesn't know yet extension dependencies, so we need to manually include autoload file
72
-					require($this->extension_path. 'vendor/autoload.php');
72
+					require($this->extension_path.'vendor/autoload.php');
73 73
 				}
74 74
 
75 75
 				// Run parent enable step method
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
 		foreach ($notification_types as $notification_type)
162 162
 		{
163
-			call_user_func(array($phpbb_notifications, $step . '_notifications'), $notification_type);
163
+			call_user_func(array($phpbb_notifications, $step.'_notifications'), $notification_type);
164 164
 		}
165 165
 
166 166
 		return 'notifications';
Please login to merge, or discard this patch.