Completed
Push — master ( fb8886...624979 )
by Matthew
9s
created
api/Controllers/ManagerController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
     $draft_id = (int)$request->get('draft_id');
18 18
     $manager_id = (int)$request->get('manager_id');
19 19
 
20
-    if(empty($draft_id) || $draft_id == 0) {
20
+    if (empty($draft_id) || $draft_id == 0) {
21 21
       throw new \Exception("Unable to load draft.");
22 22
     }
23 23
 
24 24
     $draft = $app['phpdraft.DraftRepository']->Load($draft_id);
25 25
 
26
-    if(!$draft->using_depth_charts) {
26
+    if (!$draft->using_depth_charts) {
27 27
       $response = $app['phpdraft.ResponseFactory'](false, array("Draft is not configured to use depth charts."));
28 28
       return $app->json($response, $response->responseType());
29 29
     }
Please login to merge, or discard this patch.
api/Controllers/AuthenticationController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     try {
23 23
       $credentialValidity = $app['phpdraft.LoginUserValidator']->areLoginCredentialsValid($email, $password);
24 24
 
25
-      if($credentialValidity->success == false) {
25
+      if ($credentialValidity->success == false) {
26 26
         throw new UsernameNotFoundException(sprintf('Email %s does not exist', $email));
27 27
       }
28 28
 
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
         $response->auth_timeout = $authTimeout->format('Y-m-d H:i:s');
43 43
 
44 44
         //If user is enabled, provided valid password and has a verification (pwd reset) key, wipe it (no longer needed)
45
-        if($user->hasVerificationKey()) {
45
+        if ($user->hasVerificationKey()) {
46 46
           $app['phpdraft.LoginUserRepository']->EraseVerificationKey($user->getEmail());
47 47
         }
48 48
       }
49 49
     } catch (UsernameNotFoundException $e) {
50 50
       $response->success = false;
51
-      $response->errors[] =  'Invalid credentials.';
51
+      $response->errors[] = 'Invalid credentials.';
52 52
     }
53 53
 
54 54
     return $app->json($response, $response->responseType());
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
   public function Register(Application $app, Request $request) {
58 58
     $validity = $app['phpdraft.LoginUserValidator']->IsRegistrationUserValid($request);
59 59
 
60
-    if(!$validity->success) {
60
+    if (!$validity->success) {
61 61
       return $app->json($validity, Response::HTTP_BAD_REQUEST);
62 62
     }
63 63
 
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
     $captcha = $request->get('_recaptcha');
71 71
     $userIp = $request->getClientIp();
72 72
 
73
-    if(!in_array($userIp, $whitelist)){
73
+    if (!in_array($userIp, $whitelist)) {
74 74
 
75 75
       $recaptcha = new \ReCaptcha\ReCaptcha(RECAPTCHA_SECRET);
76 76
       $recaptchaResponse = $recaptcha->verify($captcha, $userIp);
77 77
 
78
-      if(!$recaptchaResponse->isSuccess()) {
78
+      if (!$recaptchaResponse->isSuccess()) {
79 79
         $response = new PhpDraftResponse(false, array());
80 80
         $response->errors = $recaptchaResponse->getErrorCodes();
81 81
         return $app->json($response, $response->responseType());
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
   public function VerifyAccount(Application $app, Request $request) {
97 97
     $validity = $app['phpdraft.LoginUserValidator']->IsVerificationValid($request);
98 98
 
99
-    if(!$validity->success) {
99
+    if (!$validity->success) {
100 100
       return $app->json($validity, Response::HTTP_BAD_REQUEST);
101 101
     }
102 102
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
   public function LostPassword(Application $app, Request $request) {
113 113
     $validity = $app['phpdraft.LoginUserValidator']->IsForgottenPasswordUserValid($request);
114 114
 
115
-    if(!$validity->success) {
115
+    if (!$validity->success) {
116 116
       return $app->json($validity, Response::HTTP_BAD_REQUEST);
117 117
     }
118 118
 
@@ -127,12 +127,12 @@  discard block
 block discarded – undo
127 127
     $captcha = $request->get('_recaptcha');
128 128
     $userIp = $request->getClientIp();
129 129
 
130
-    if(!in_array($userIp, $whitelist)){
130
+    if (!in_array($userIp, $whitelist)) {
131 131
 
132 132
       $recaptcha = new \ReCaptcha\ReCaptcha(RECAPTCHA_SECRET);
133 133
       $recaptchaResponse = $recaptcha->verify($captcha, $userIp);
134 134
 
135
-      if(!$recaptchaResponse->isSuccess()) {
135
+      if (!$recaptchaResponse->isSuccess()) {
136 136
         $response = new PhpDraftResponse(false, array());
137 137
         $response->errors = $recaptchaResponse->getErrorCodes();
138 138
         return $app->json($response, $response->responseType());
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
   public function ResetPassword(Application $app, Request $request) {
159 159
     $validity = $app['phpdraft.LoginUserValidator']->IsResetPasswordRequestValid($request);
160 160
 
161
-    if(!$validity->success) {
161
+    if (!$validity->success) {
162 162
       return $app->json($validity, Response::HTTP_BAD_REQUEST);
163 163
     }
164 164
 
Please login to merge, or discard this patch.
api/Domain/Services/DatabaseCacheService.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace PhpDraft\Domain\Services;
3 3
 
4 4
 use Silex\Application;
5
-use Symfony\Component\HttpFoundation\Request;
6 5
 use phpFastCache\CacheManager;
7 6
 
8 7
 //A wrapper service for the PHP-based caching to save on several MySQL reads
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
   public function GetCachedItem($itemKey) {
28 28
     $cachedItem = $this->_LoadCacheObject($itemKey);
29 29
 
30
-    if(!$cachedItem->isHit()) {
30
+    if (!$cachedItem->isHit()) {
31 31
       return null;
32 32
     }
33 33
 
Please login to merge, or discard this patch.
api/config/_registerValidators.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 //Validators
8 8
 //Validators are for ensuring that request data is valid, and ensures save data
9 9
 //does not result in corrupt data.
10
-$app['phpdraft.LoginUserValidator'] = function () use ($app) {
10
+$app['phpdraft.LoginUserValidator'] = function() use ($app) {
11 11
   return new \PhpDraft\Domain\Validators\LoginUserValidator($app);
12 12
 };
13 13
 
@@ -15,26 +15,26 @@  discard block
 block discarded – undo
15 15
   return new \PhpDraft\Domain\Validators\DraftValidator($app);
16 16
 };
17 17
 
18
-$app['phpdraft.RoundTimeValidator'] = function () use ($app) {
18
+$app['phpdraft.RoundTimeValidator'] = function() use ($app) {
19 19
   return new \PhpDraft\Domain\Validators\RoundTimeValidator($app);
20 20
 };
21 21
 
22
-$app['phpdraft.ManagerValidator'] = function () use ($app) {
22
+$app['phpdraft.ManagerValidator'] = function() use ($app) {
23 23
   return new \PhpDraft\Domain\Validators\ManagerValidator($app);
24 24
 };
25 25
 
26
-$app['phpdraft.TradeValidator'] = function () use ($app) {
26
+$app['phpdraft.TradeValidator'] = function() use ($app) {
27 27
   return new \PhpDraft\Domain\Validators\TradeValidator($app);
28 28
 };
29 29
 
30
-$app['phpdraft.PickValidator'] = function () use ($app) {
30
+$app['phpdraft.PickValidator'] = function() use ($app) {
31 31
   return new \PhpDraft\Domain\Validators\PickValidator($app);
32 32
 };
33 33
 
34
-$app['phpdraft.ProPlayerValidator'] = function () use ($app) {
34
+$app['phpdraft.ProPlayerValidator'] = function() use ($app) {
35 35
   return new \PhpDraft\Domain\Validators\ProPlayerValidator($app);
36 36
 };
37 37
 
38
-$app['phpdraft.DepthChartPositionValidator'] = function () use ($app) {
38
+$app['phpdraft.DepthChartPositionValidator'] = function() use ($app) {
39 39
   return new \PhpDraft\Domain\Validators\DepthChartPositionValidator($app);
40 40
 };
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
api/config/_registerServices.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -16,42 +16,42 @@
 block discarded – undo
16 16
   return new \PhpDraft\Domain\Services\EmailService($app);
17 17
 };
18 18
 
19
-$app['phpdraft.LoginUserService'] = function () use ($app) {
19
+$app['phpdraft.LoginUserService'] = function() use ($app) {
20 20
   return new \PhpDraft\Domain\Services\LoginUserService($app);
21 21
 };
22 22
 
23
-$app['phpdraft.DraftService'] = function () use ($app) {
23
+$app['phpdraft.DraftService'] = function() use ($app) {
24 24
   return new \PhpDraft\Domain\Services\DraftService($app);
25 25
 };
26 26
 
27
-$app['phpdraft.RoundTimeService'] = function () use ($app) {
27
+$app['phpdraft.RoundTimeService'] = function() use ($app) {
28 28
   return new \PhpDraft\Domain\Services\RoundTimeService($app);
29 29
 };
30 30
 
31
-$app['phpdraft.ManagerService'] = function () use ($app) {
31
+$app['phpdraft.ManagerService'] = function() use ($app) {
32 32
   return new \PhpDraft\Domain\Services\ManagerService($app);
33 33
 };
34 34
 
35
-$app['phpdraft.ProPlayerService'] = function () use ($app) {
35
+$app['phpdraft.ProPlayerService'] = function() use ($app) {
36 36
   return new \PhpDraft\Domain\Services\ProPlayerService($app);
37 37
 };
38 38
 
39
-$app['phpdraft.TradeService'] = function () use ($app) {
39
+$app['phpdraft.TradeService'] = function() use ($app) {
40 40
   return new \PhpDraft\Domain\Services\TradeService($app);
41 41
 };
42 42
 
43
-$app['phpdraft.PickService'] = function () use ($app) {
43
+$app['phpdraft.PickService'] = function() use ($app) {
44 44
   return new \PhpDraft\Domain\Services\PickService($app);
45 45
 };
46 46
 
47
-$app['phpdraft.UtilityService'] = function () use ($app) {
47
+$app['phpdraft.UtilityService'] = function() use ($app) {
48 48
   return new \PhpDraft\Domain\Services\UtilityService($app);
49 49
 };
50 50
 
51
-$app['phpdraft.DepthChartPositionService'] = function () use ($app) {
51
+$app['phpdraft.DepthChartPositionService'] = function() use ($app) {
52 52
   return new \PhpDraft\Domain\Services\DepthChartPositionService($app);
53 53
 };
54 54
 
55
-$app['phpdraft.DatabaseCacheService'] = function () use ($app) {
55
+$app['phpdraft.DatabaseCacheService'] = function() use ($app) {
56 56
   return new \PhpDraft\Domain\Services\DatabaseCacheService($app);
57 57
 };
58 58
\ No newline at end of file
Please login to merge, or discard this patch.
deploy/_deploy_tasks.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
     'deploy:prepare',
8 8
     'deploy:lock',
9 9
     'deploy:release',
10
-	'phpdraft:upload_files',
11
-	'phpdraft:remote_yarn',
10
+  'phpdraft:upload_files',
11
+  'phpdraft:remote_yarn',
12 12
     'phpdraft:remote_composer',
13 13
     'phpdraft:breakpoint',
14 14
     'phpdraft:migrate',
15
-	'deploy:symlink',
16
-	//'phpdraft:restart_fpm',
15
+  'deploy:symlink',
16
+  //'phpdraft:restart_fpm',
17 17
     'deploy:unlock',
18 18
     'cleanup',
19 19
     'success'
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
     $settings_location = ask("What is the absolute (local) path of where your settings files are located?",
33 33
         "~/phpdraft_settings");
34 34
 
35
-	runLocally("cp $settings_location/.htaccess .htaccess");
35
+  runLocally("cp $settings_location/.htaccess .htaccess");
36 36
     runLocally("cp $settings_location/appsettings.php appsettings.php");
37
-	runLocally("cp $settings_location/config.js js/config.js");
37
+  runLocally("cp $settings_location/config.js js/config.js");
38 38
     runLocally("cp $settings_location/deploy.php deploy.php");
39
-	runLocally("cp $settings_location/index.html index.html");
40
-	runLocally("cp $settings_location/phinx.yml phinx.yml");
41
-	runLocally("cp $settings_location/web.config web.config");
39
+  runLocally("cp $settings_location/index.html index.html");
40
+  runLocally("cp $settings_location/phinx.yml phinx.yml");
41
+  runLocally("cp $settings_location/web.config web.config");
42 42
 
43 43
     writeln("\n\n<info>Success! I imported those settings for you, you should be ready to deploy now.</info>\n");
44 44
 });
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
         'db',
76 76
         'fonts',
77 77
         'images',
78
-		'js',
78
+    'js',
79 79
         '.htaccess',
80 80
         'appsettings.php',
81 81
         'composer.json',
82
-		'composer.lock',
83
-		'package.json',
82
+    'composer.lock',
83
+    'package.json',
84 84
         'phinx.yml',
85 85
         'deploy',
86 86
         'index.html',
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
 desc('Install NPM dependencies remotely');
97 97
 task('phpdraft:remote_yarn', function() {
98
-	cd('{{release_path}}');
98
+  cd('{{release_path}}');
99 99
 
100 100
     run('yarn --production');
101 101
 
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
 
144 144
 desc('Run Phinx migrations');
145 145
 task('phpdraft:migrate', function() {
146
-	cd('{{release_path}}');
146
+  cd('{{release_path}}');
147 147
 
148
-	set('phpdraft_rollback_required', true);
148
+  set('phpdraft_rollback_required', true);
149 149
 
150 150
     run('php deploy/phinx.phar migrate -e production');
151 151
 
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
 task('phpdraft:rollback', function() {
157 157
     writeln('<comment>Rolling back database migrations...</comment>');
158 158
     if(get("phpdraft_rollback_required") == true) {
159
-       cd('{{release_path}}');
160
-       run('php deploy/phinx.phar rollback -e production');
161
-       cd('{{deploy_path}}');
159
+        cd('{{release_path}}');
160
+        run('php deploy/phinx.phar rollback -e production');
161
+        cd('{{deploy_path}}');
162 162
     }
163 163
 })->setPrivate();
164 164
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
         'vendor'
56 56
     ];
57 57
 
58
-    foreach($items_required_for_deploy as $file) {
59
-        if(file_exists($file) !== true) {
58
+    foreach ($items_required_for_deploy as $file) {
59
+        if (file_exists($file) !== true) {
60 60
             writeln("<error>File or directory $file does not exist, cannot deploy.</error>\n");
61 61
             writeln("<comment>Ensure you have downloaded a compiled release from https://github.com/mattheworres/phpdraft/releases</comment>\n");
62 62
             writeln("<comment>Or, if you are building from sourcecode, consult the wiki on how to properly prepare a release.</comment>\n");
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 desc('Rollback migrations on failure');
156 156
 task('phpdraft:rollback', function() {
157 157
     writeln('<comment>Rolling back database migrations...</comment>');
158
-    if(get("phpdraft_rollback_required") == true) {
158
+    if (get("phpdraft_rollback_required") == true) {
159 159
        cd('{{release_path}}');
160 160
        run('php deploy/phinx.phar rollback -e production');
161 161
        cd('{{deploy_path}}');
Please login to merge, or discard this patch.
deploy/_setup_tasks.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
 
14 14
 desc('PHP Draft: Offer to backup current settings for future upgrade imports');
15 15
 task('backup', function() {
16
-	if (file_exists("js/config.js") == false) {
17
-		writeln("<error>Looks like js/config.js doesn't exist - I can't back up your settings.</error>\n");
18
-		writeln("<comment>Ensure you have downloaded a compiled release from https://github.com/mattheworres/phpdraft/releases</comment>\n");
19
-		writeln("<comment>Or, if you are building from sourcecode, consult the wiki on how to properly prepare a release.</comment>\n");
20
-		throw new \Exception("PHP Draft is not in a exportable state (use downloads from Releases on Github)");
21
-	}
16
+  if (file_exists("js/config.js") == false) {
17
+    writeln("<error>Looks like js/config.js doesn't exist - I can't back up your settings.</error>\n");
18
+    writeln("<comment>Ensure you have downloaded a compiled release from https://github.com/mattheworres/phpdraft/releases</comment>\n");
19
+    writeln("<comment>Or, if you are building from sourcecode, consult the wiki on how to properly prepare a release.</comment>\n");
20
+    throw new \Exception("PHP Draft is not in a exportable state (use downloads from Releases on Github)");
21
+  }
22 22
 
23 23
   writeln("\n\n<info>Looking great! Hey, if you want I can back up these snazzy settings files "
24 24
     ."I just created for you. This will make it WAY easier to update PHP Draft in the future!</info>\n");
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
     runLocally("cp js/config.js $backup_location/config.js");
36 36
     runLocally("cp phinx.yml $backup_location/phinx.yml");
37 37
     runLocally("cp deploy.php $backup_location/deploy.php");
38
-		runLocally("cp .htaccess $backup_location/.htaccess");
39
-		runLocally("cp index.html $backup_location/index.html");
38
+    runLocally("cp .htaccess $backup_location/.htaccess");
39
+    runLocally("cp index.html $backup_location/index.html");
40 40
     runLocally("cp web.config $backup_location/web.config");
41 41
   }
42 42
 });
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     ."I just created for you. This will make it WAY easier to update PHP Draft in the future!</info>\n");
25 25
   $answer = askConfirmation("Should I back up your settings for you?", false);
26 26
 
27
-  if($answer == true) {
27
+  if ($answer == true) {
28 28
     writeln("\n\n<info>Awesome! Wherever you tell me to back your settings up to, you should make sure "
29 29
       ."that only your user has permissions to view the file (if the server you're installing on "
30 30
       ."is more important, you should probably ensure your disk is encrypted, too).</info>\n");
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
   $answer = askConfirmation($message, false);
50 50
 
51
-  if($answer == false) {
51
+  if ($answer == false) {
52 52
     throw new \Exception("Quitting setup at the user's request. BYE FELICIA.");
53 53
   }
54 54
 })->setPrivate();
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
     'deploy.php'
147 147
   ];
148 148
 
149
-  foreach(get('phpdraft_setup_variables') as $property => $value) {
150
-    foreach($files_to_replace_in as $file) {
149
+  foreach (get('phpdraft_setup_variables') as $property => $value) {
150
+    foreach ($files_to_replace_in as $file) {
151 151
       //TODO: Is there something more platform agnostic we can use?
152 152
       runLocally("sed -i '' 's|{phpdraft.$property}|$value|g' $file $file");
153 153
     }
Please login to merge, or discard this patch.
api/config/_app.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3
-require_once dirname(__FILE__).'/../../vendor/autoload.php';
3
+require_once dirname(__FILE__) . '/../../vendor/autoload.php';
4 4
 
5 5
 $app = new Silex\Application();
6 6
 
7 7
 //Handles settings users can define
8 8
 //Please see README.md for instructions on how to setup
9
-require_once dirname(__FILE__).'/../../appsettings.php';
9
+require_once dirname(__FILE__) . '/../../appsettings.php';
10 10
 
11 11
 $app['debug'] = DEBUG_MODE;
12 12
 
13
-require_once dirname(__FILE__).'/_database.php';      //Sets up database connections
14
-require_once dirname(__FILE__).'/_log.php';           //Sets up logging
13
+require_once dirname(__FILE__) . '/_database.php'; //Sets up database connections
14
+require_once dirname(__FILE__) . '/_log.php'; //Sets up logging
15 15
 
16 16
 //Registrations with Pimple DI
17
-require_once dirname(__FILE__).'/_registerServices.php';
18
-require_once dirname(__FILE__).'/_registerRepositories.php';
19
-require_once dirname(__FILE__).'/_registerValidators.php';
20
-require_once dirname(__FILE__).'/_registerFactories.php';
21
-
22
-require_once dirname(__FILE__).'/_middlewares.php';   //Defines middleware handlers for shared logic, like ensuring a draft is editable
23
-require_once dirname(__FILE__).'/_router.php';        //Sets up controller routing
24
-require_once dirname(__FILE__).'/_security.php';      //Sets up Symfony-based security & user authentication
17
+require_once dirname(__FILE__) . '/_registerServices.php';
18
+require_once dirname(__FILE__) . '/_registerRepositories.php';
19
+require_once dirname(__FILE__) . '/_registerValidators.php';
20
+require_once dirname(__FILE__) . '/_registerFactories.php';
21
+
22
+require_once dirname(__FILE__) . '/_middlewares.php'; //Defines middleware handlers for shared logic, like ensuring a draft is editable
23
+require_once dirname(__FILE__) . '/_router.php'; //Sets up controller routing
24
+require_once dirname(__FILE__) . '/_security.php'; //Sets up Symfony-based security & user authentication
25 25
 
26 26
 return $app;
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
api/Domain/Validators/ProPlayerValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,19 +21,19 @@
 block discarded – undo
21 21
     $errors = array();
22 22
     $sports = $this->app['phpdraft.DraftDataRepository']->GetSports();
23 23
 
24
-    if(empty($sport)) {
24
+    if (empty($sport)) {
25 25
       $errors[] = "One or more missing fields.";
26 26
       $valid = false;
27 27
     }
28 28
 
29
-    if(!array_key_exists($sport, $sports)) {
29
+    if (!array_key_exists($sport, $sports)) {
30 30
       $errors[] = "Sport $sport is an invalid value.";
31 31
       $valid = false;
32 32
     }
33 33
 
34 34
     if (!isset($file)) {
35 35
       $valid = false;
36
-      $errors[] =  "Must upload a CSV file";
36
+      $errors[] = "Must upload a CSV file";
37 37
     } else {
38 38
       $fileErrorCode = $file->getError();
39 39
 
Please login to merge, or discard this patch.