Skip to content

Commit

Permalink
update namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
William Benjamim Menezes Sampaio committed Aug 12, 2024
1 parent c1c0453 commit e96b2e0
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 38 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Twig integration is not mandatory, as you can see in this example, where the foc
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;
use WilliamSampaio\SlimFlashMessages\Flash;
use WilliamSampaio\SlimFlashMessages\FlashMiddleware;
use WilliamSampaio\SlimFlashMessages\FlashProvider;
use SlimFlashMessages\Flash;
use SlimFlashMessages\FlashMiddleware;
use SlimFlashMessages\FlashProvider;

require __DIR__ . '/../vendor/autoload.php';

Expand Down Expand Up @@ -110,10 +110,10 @@ use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;
use Slim\Views\Twig;
use Slim\Views\TwigMiddleware;
use WilliamSampaio\SlimFlashMessages\Flash;
use WilliamSampaio\SlimFlashMessages\FlashMiddleware;
use WilliamSampaio\SlimFlashMessages\FlashProvider;
use WilliamSampaio\SlimFlashMessages\FlashTwigExtension;
use SlimFlashMessages\Flash;
use SlimFlashMessages\FlashMiddleware;
use SlimFlashMessages\FlashProvider;
use SlimFlashMessages\FlashTwigExtension;

require __DIR__ . '/../vendor/autoload.php';

Expand Down
14 changes: 7 additions & 7 deletions build/logs/clover.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1723495737">
<project timestamp="1723495737">
<package name="WilliamSampaio\SlimFlashMessages">
<coverage generated="1723496990">
<project timestamp="1723496990">
<package name="SlimFlashMessages">
<file name="/var/www/html/src/Flash.php">
<class name="WilliamSampaio\SlimFlashMessages\Flash" namespace="WilliamSampaio\SlimFlashMessages">
<class name="SlimFlashMessages\Flash" namespace="SlimFlashMessages">
<metrics complexity="3" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="4" coveredstatements="4" elements="6" coveredelements="6"/>
</class>
<line num="11" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="1"/>
Expand All @@ -15,7 +15,7 @@
<metrics loc="24" ncloc="24" classes="1" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="4" coveredstatements="4" elements="6" coveredelements="6"/>
</file>
<file name="/var/www/html/src/FlashMiddleware.php">
<class name="WilliamSampaio\SlimFlashMessages\FlashMiddleware" namespace="WilliamSampaio\SlimFlashMessages">
<class name="SlimFlashMessages\FlashMiddleware" namespace="SlimFlashMessages">
<metrics complexity="7" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="19" elements="23" coveredelements="23"/>
</class>
<line num="18" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="3"/>
Expand Down Expand Up @@ -44,7 +44,7 @@
<metrics loc="86" ncloc="67" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="19" elements="23" coveredelements="23"/>
</file>
<file name="/var/www/html/src/FlashProvider.php">
<class name="WilliamSampaio\SlimFlashMessages\FlashProvider" namespace="WilliamSampaio\SlimFlashMessages">
<class name="SlimFlashMessages\FlashProvider" namespace="SlimFlashMessages">
<metrics complexity="35" methods="10" coveredmethods="10" conditionals="0" coveredconditionals="0" statements="47" coveredstatements="47" elements="57" coveredelements="57"/>
</class>
<line num="26" type="method" name="__construct" visibility="public" complexity="8" crap="8" count="19"/>
Expand Down Expand Up @@ -107,7 +107,7 @@
<metrics loc="199" ncloc="130" classes="1" methods="10" coveredmethods="10" conditionals="0" coveredconditionals="0" statements="47" coveredstatements="47" elements="57" coveredelements="57"/>
</file>
<file name="/var/www/html/src/FlashTwigExtension.php">
<class name="WilliamSampaio\SlimFlashMessages\FlashTwigExtension" namespace="WilliamSampaio\SlimFlashMessages">
<class name="SlimFlashMessages\FlashTwigExtension" namespace="SlimFlashMessages">
<metrics complexity="13" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="34" elements="41" coveredelements="39"/>
</class>
<line num="14" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="7"/>
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"license": "MIT",
"autoload": {
"psr-4": {
"WilliamSampaio\\SlimFlashMessages\\": "src/"
"SlimFlashMessages\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
"SlimFlashMessages\\Tests\\": "tests/"
}
},
"authors": [
Expand Down
6 changes: 3 additions & 3 deletions example1/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;
use WilliamSampaio\SlimFlashMessages\Flash;
use WilliamSampaio\SlimFlashMessages\FlashMiddleware;
use WilliamSampaio\SlimFlashMessages\FlashProvider;
use SlimFlashMessages\Flash;
use SlimFlashMessages\FlashMiddleware;
use SlimFlashMessages\FlashProvider;

require __DIR__ . '/../vendor/autoload.php';

Expand Down
8 changes: 4 additions & 4 deletions example2/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
use Slim\Factory\AppFactory;
use Slim\Views\Twig;
use Slim\Views\TwigMiddleware;
use WilliamSampaio\SlimFlashMessages\Flash;
use WilliamSampaio\SlimFlashMessages\FlashMiddleware;
use WilliamSampaio\SlimFlashMessages\FlashProvider;
use WilliamSampaio\SlimFlashMessages\FlashTwigExtension;
use SlimFlashMessages\Flash;
use SlimFlashMessages\FlashMiddleware;
use SlimFlashMessages\FlashProvider;
use SlimFlashMessages\FlashTwigExtension;

require __DIR__ . '/../vendor/autoload.php';

Expand Down
2 changes: 1 addition & 1 deletion src/Flash.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace WilliamSampaio\SlimFlashMessages;
namespace SlimFlashMessages;

use RuntimeException;

Expand Down
2 changes: 1 addition & 1 deletion src/FlashMiddleware.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace WilliamSampaio\SlimFlashMessages;
namespace SlimFlashMessages;

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/FlashProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace WilliamSampaio\SlimFlashMessages;
namespace SlimFlashMessages;

use Psr\Http\Message\ServerRequestInterface;
use ArrayAccess;
Expand Down
2 changes: 1 addition & 1 deletion src/FlashTwigExtension.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace WilliamSampaio\SlimFlashMessages;
namespace SlimFlashMessages;

use Slim\App;
use Twig\Extension\AbstractExtension;
Expand Down
6 changes: 3 additions & 3 deletions tests/FlashMiddlewareTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Tests;
namespace SlimFlashMessages\Tests;

use DI\Container;
use PHPUnit\Framework\Attributes\CoversClass;
Expand All @@ -11,8 +11,8 @@
use Slim\Psr7\Factory\ResponseFactory;
use Slim\Psr7\Response;
use Slim\App;
use WilliamSampaio\SlimFlashMessages\FlashMiddleware;
use WilliamSampaio\SlimFlashMessages\FlashProvider;
use SlimFlashMessages\FlashMiddleware;
use SlimFlashMessages\FlashProvider;
use RuntimeException;

#[CoversClass(FlashMiddleware::class)]
Expand Down
4 changes: 2 additions & 2 deletions tests/FlashProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php declare(strict_types=1);

namespace Tests;
namespace SlimFlashMessages\Tests;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Slim\Factory\ServerRequestCreatorFactory;
use WilliamSampaio\SlimFlashMessages\FlashProvider;
use SlimFlashMessages\FlashProvider;
use InvalidArgumentException;
use RuntimeException;

Expand Down
6 changes: 3 additions & 3 deletions tests/FlashTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php declare(strict_types=1);

namespace Tests;
namespace SlimFlashMessages\Tests;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\UsesClass;
use PHPUnit\Framework\TestCase;
use WilliamSampaio\SlimFlashMessages\Flash;
use WilliamSampaio\SlimFlashMessages\FlashProvider;
use SlimFlashMessages\Flash;
use SlimFlashMessages\FlashProvider;
use RuntimeException;

#[CoversClass(Flash::class)]
Expand Down
6 changes: 3 additions & 3 deletions tests/FlashTwigExtensionTest.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php declare(strict_types=1);

namespace Tests;
namespace SlimFlashMessages\Tests;

use DI\Container;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\UsesClass;
use PHPUnit\Framework\TestCase;
use Slim\Psr7\Factory\ResponseFactory;
use Slim\App;
use SlimFlashMessages\FlashProvider;
use SlimFlashMessages\FlashTwigExtension;
use Twig\TwigFunction;
use WilliamSampaio\SlimFlashMessages\FlashProvider;
use WilliamSampaio\SlimFlashMessages\FlashTwigExtension;
use RuntimeException;

#[CoversClass(FlashTwigExtension::class)]
Expand Down

0 comments on commit e96b2e0

Please sign in to comment.