This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Doctrine/ruleset.xml b/lib/Doctrine/ruleset.xml | |
index c0bf70b..128acc9 100644 | |
--- a/lib/Doctrine/ruleset.xml | |
+++ b/lib/Doctrine/ruleset.xml | |
@@ -144,8 +144,6 @@ | |
<property name="linesCountBetweenUses" value="0"/> | |
</properties> | |
</rule> | |
- <!-- Forbid dead code --> | |
- <rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
int a = 200; | |
if (a == 200) { | |
print('its 200'); | |
} | |
int b = 400; | |
if (b == 200) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Http\Middleware; | |
use Closure; | |
use Exception; | |
use Illuminate\Http\Request; | |
use Illuminate\Validation\ValidationException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Methods/EloquentBuilderForwardsCallsExtension.php b/src/Methods/EloquentBuilderForwardsCallsExtension.php | |
index cd212f3..35623d1 100644 | |
--- a/src/Methods/EloquentBuilderForwardsCallsExtension.php | |
+++ b/src/Methods/EloquentBuilderForwardsCallsExtension.php | |
@@ -16,6 +16,7 @@ use PHPStan\Reflection\MethodsClassReflectionExtension; | |
use PHPStan\Reflection\ParametersAcceptorSelector; | |
use PHPStan\ShouldNotHappenException; | |
use PHPStan\Type\Generic\GenericObjectType; | |
+use PHPStan\Type\Generic\TemplateMixedType; | |
use PHPStan\Type\MixedType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Twitter</title> | |
<link rel="stylesheet" type="text/css" href="./css/tailwind.css"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH ProductDiscounts (ProductName, Discount) | |
AS | |
( | |
SELECT p.Name, AVG(so.DiscountPct) as Discount FROM Production.Product p | |
JOIN Sales.SpecialOfferProduct sop ON p.ProductID = sop.ProductID | |
JOIN Sales.SpecialOffer so ON so.SpecialOfferID = sop.SpecialOfferID | |
WHERE so.DiscountPct > 0.0 | |
GROUP BY p.Name | |
) | |
SELECT ProductName, (Discount*100) as disc |