Skip to content

Commit 02f18a1

Browse files
committed
refactor: updated to Mago 1.0.2
1 parent 40617d0 commit 02f18a1

File tree

9 files changed

+22
-38
lines changed

9 files changed

+22
-38
lines changed

composer.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpmyfaq/src/phpMyFAQ/Attachment/AttachmentException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@
2626
*
2727
* @package phpMyFAQ\Attachment
2828
*/
29-
class AttachmentException extends Exception
30-
{
31-
}
29+
class AttachmentException extends Exception {}

phpmyfaq/src/phpMyFAQ/Attachment/Filesystem/File/FileException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@
2626
*
2727
* @package phpMyFAQ\Attachment\Filesystem\File
2828
*/
29-
class FileException extends AttachmentException
30-
{
31-
}
29+
class FileException extends AttachmentException {}

phpmyfaq/src/phpMyFAQ/Auth/AuthException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,4 @@
2121

2222
use phpMyFAQ\Core\Exception;
2323

24-
class AuthException extends Exception
25-
{
26-
}
24+
class AuthException extends Exception {}

phpmyfaq/src/phpMyFAQ/Plugin/PluginException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,4 @@
2121

2222
use phpMyFAQ\Core\Exception;
2323

24-
class PluginException extends Exception
25-
{
26-
}
24+
class PluginException extends Exception {}

phpmyfaq/src/phpMyFAQ/Search/Exception.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,4 @@
2424
*
2525
* @package phpMyFAQ\Search
2626
*/
27-
class Exception extends \Exception
28-
{
29-
}
27+
class Exception extends \Exception {}

phpmyfaq/src/phpMyFAQ/Setup/Upgrade.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ public function checkFilesystem(): bool
9595
!is_file(PMF_CONTENT_DIR . '/core/config/constants.php')
9696
|| !is_file(PMF_CONTENT_DIR . '/core/config/database.php')
9797
) {
98-
throw new Exception(
99-
message: 'The files /content/core/config/constant.php and /content/core/config/database.php are missing.',
100-
);
98+
throw new Exception(message: 'The files /content/core/config/constant.php and'
99+
. ' /content/core/config/database.php are missing.');
101100
}
102101

103102
if (
@@ -112,8 +111,7 @@ public function checkFilesystem(): bool
112111
}
113112

114113
if (
115-
$this->configuration->isSignInWithMicrosoftActive()
116-
&& !is_file(PMF_CONTENT_DIR . '/core/config/azure.php')
114+
$this->configuration->isSignInWithMicrosoftActive() && !is_file(PMF_CONTENT_DIR . '/core/config/azure.php')
117115
) {
118116
throw new Exception(message: 'The file /content/core/config/azure.php is missing.');
119117
}

phpmyfaq/src/phpMyFAQ/Twig/TemplateException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@
2626
*
2727
* @package phpMyFAQ\Template
2828
*/
29-
class TemplateException extends Exception
30-
{
31-
}
29+
class TemplateException extends Exception {}

phpmyfaq/src/phpMyFAQ/User/UserException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,4 @@
2121

2222
use phpMyFAQ\Core\Exception;
2323

24-
class UserException extends Exception
25-
{
26-
}
24+
class UserException extends Exception {}

0 commit comments

Comments
 (0)