Commit f12c9a31 by zhangheng

j

parent 9eb0b04d
...@@ -80,7 +80,9 @@ ...@@ -80,7 +80,9 @@
<inspection_tool class="CucumberMissedExamples" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="CucumberMissedExamples" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="CucumberTableInspection" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="CucumberTableInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="CucumberUndefinedStep" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="CucumberUndefinedStep" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="CyclomaticComplexityJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="CyclomaticComplexityJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_limit" value="10" />
</inspection_tool>
<inspection_tool class="DebuggerStatementJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="DebuggerStatementJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="DefaultNotLastCaseInSwitchJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="DefaultNotLastCaseInSwitchJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="DivideByZeroJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="DivideByZeroJS" enabled="false" level="WARNING" enabled_by_default="false" />
...@@ -118,7 +120,11 @@ ...@@ -118,7 +120,11 @@
<option name="m_ignoreLoopsWithoutConditions" value="false" /> <option name="m_ignoreLoopsWithoutConditions" value="false" />
</inspection_tool> </inspection_tool>
<inspection_tool class="ForLoopThatDoesntUseLoopVariableJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="ForLoopThatDoesntUseLoopVariableJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="FunctionNamingConventionJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="FunctionNamingConventionJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_regex" value="[a-z][A-Za-z]*" />
<option name="m_minLength" value="4" />
<option name="m_maxLength" value="32" />
</inspection_tool>
<inspection_tool class="FunctionWithInconsistentReturnsJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="FunctionWithInconsistentReturnsJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="FunctionWithMultipleLoopsJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="FunctionWithMultipleLoopsJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="FunctionWithMultipleReturnPointsJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="FunctionWithMultipleReturnPointsJS" enabled="false" level="WARNING" enabled_by_default="false" />
...@@ -159,7 +165,9 @@ ...@@ -159,7 +165,9 @@
</inspection_tool> </inspection_tool>
<inspection_tool class="HtmlUnknownTarget" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="HtmlUnknownTarget" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="IfStatementWithIdenticalBranchesJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="IfStatementWithIdenticalBranchesJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="IfStatementWithTooManyBranchesJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="IfStatementWithTooManyBranchesJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_limit" value="3" />
</inspection_tool>
<inspection_tool class="ImplicitTypeConversion" enabled="true" level="WARNING" enabled_by_default="true"> <inspection_tool class="ImplicitTypeConversion" enabled="true" level="WARNING" enabled_by_default="true">
<option name="BITS" value="1720" /> <option name="BITS" value="1720" />
<option name="FLAG_EXPLICIT_CONVERSION" value="true" /> <option name="FLAG_EXPLICIT_CONVERSION" value="true" />
...@@ -235,7 +243,11 @@ ...@@ -235,7 +243,11 @@
<inspection_tool class="LessResolvedByNameOnly" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> <inspection_tool class="LessResolvedByNameOnly" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="LessUnresolvedMixin" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="LessUnresolvedMixin" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="LessUnresolvedVariable" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="LessUnresolvedVariable" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="LocalVariableNamingConventionJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="LocalVariableNamingConventionJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_regex" value="[a-z][A-Za-z]*" />
<option name="m_minLength" value="1" />
<option name="m_maxLength" value="32" />
</inspection_tool>
<inspection_tool class="LongLine" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="LongLine" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="LoopStatementThatDoesntLoopJS" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="LoopStatementThatDoesntLoopJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="LossyEncoding" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="LossyEncoding" enabled="true" level="WARNING" enabled_by_default="true" />
...@@ -247,7 +259,9 @@ ...@@ -247,7 +259,9 @@
<inspection_tool class="NestedAssignmentJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="NestedAssignmentJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="NestedConditionalExpressionJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="NestedConditionalExpressionJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="NestedFunctionCallJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="NestedFunctionCallJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="NestedFunctionJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="NestedFunctionJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_includeAnonymousFunctions" value="false" />
</inspection_tool>
<inspection_tool class="NestedSwitchStatementJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="NestedSwitchStatementJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="NestingDepthJS" enabled="false" level="WARNING" enabled_by_default="false"> <inspection_tool class="NestingDepthJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_limit" value="5" /> <option name="m_limit" value="5" />
...@@ -259,14 +273,20 @@ ...@@ -259,14 +273,20 @@
<inspection_tool class="NpmUsedModulesInstalled" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> <inspection_tool class="NpmUsedModulesInstalled" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="ObjectAllocationIgnoredJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="ObjectAllocationIgnoredJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="OctalIntegerJS" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="OctalIntegerJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="OverlyComplexArithmeticExpressionJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="OverlyComplexArithmeticExpressionJS" enabled="false" level="WARNING" enabled_by_default="false">
<inspection_tool class="OverlyComplexBooleanExpressionJS" enabled="false" level="WARNING" enabled_by_default="false" /> <option name="m_limit" value="6" />
</inspection_tool>
<inspection_tool class="OverlyComplexBooleanExpressionJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_limit" value="3" />
</inspection_tool>
<inspection_tool class="ParameterNamingConventionJS" enabled="false" level="WARNING" enabled_by_default="false"> <inspection_tool class="ParameterNamingConventionJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_regex" value="[a-z][A-Za-z]*" /> <option name="m_regex" value="[a-z][A-Za-z]*" />
<option name="m_minLength" value="1" /> <option name="m_minLength" value="1" />
<option name="m_maxLength" value="32" /> <option name="m_maxLength" value="32" />
</inspection_tool> </inspection_tool>
<inspection_tool class="ParametersPerFunctionJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="ParametersPerFunctionJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_limit" value="5" />
</inspection_tool>
<inspection_tool class="PhingDomInspection" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="PhingDomInspection" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="Php7ReadinessInspection" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="Php7ReadinessInspection" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="PhpAbstractStaticMethodInspection" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="PhpAbstractStaticMethodInspection" enabled="true" level="WARNING" enabled_by_default="true" />
...@@ -407,7 +427,9 @@ ...@@ -407,7 +427,9 @@
<inspection_tool class="SqlSignatureInspection" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="SqlSignatureInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="SqlTypeInspection" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="SqlTypeInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="SqlUnusedVariableInspection" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="SqlUnusedVariableInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="StatementsPerFunctionJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="StatementsPerFunctionJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_limit" value="30" />
</inspection_tool>
<inspection_tool class="StringLiteralBreaksHTMLJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="StringLiteralBreaksHTMLJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="Stylelint" enabled="false" level="ERROR" enabled_by_default="false" /> <inspection_tool class="Stylelint" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="SwitchStatementWithNoDefaultBranchJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="SwitchStatementWithNoDefaultBranchJS" enabled="false" level="WARNING" enabled_by_default="false" />
...@@ -443,10 +465,15 @@ ...@@ -443,10 +465,15 @@
<inspection_tool class="UnterminatedStatementJS" enabled="true" level="WARNING" enabled_by_default="true"> <inspection_tool class="UnterminatedStatementJS" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreSemicolonAtEndOfBlock" value="true" /> <option name="ignoreSemicolonAtEndOfBlock" value="true" />
</inspection_tool> </inspection_tool>
<inspection_tool class="UnusedCatchParameterJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="UnusedCatchParameterJS" enabled="false" level="WARNING" enabled_by_default="false">
<option name="m_ignoreCatchBlocksWithComments" value="false" />
</inspection_tool>
<inspection_tool class="UnusedDefine" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="UnusedDefine" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="VoidExpressionJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="VoidExpressionJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="W3CssValidation" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="W3CssValidation" enabled="false" level="WARNING" enabled_by_default="false">
<option name="myCssVersion" value="css3" />
<option name="myIgnoreVendorSpecificProperties" value="false" />
</inspection_tool>
<inspection_tool class="WithStatementJS" enabled="true" level="WARNING" enabled_by_default="true" /> <inspection_tool class="WithStatementJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="XHTMLIncompatabilitiesJS" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="XHTMLIncompatabilitiesJS" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="XmlDuplicatedId" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="XmlDuplicatedId" enabled="true" level="ERROR" enabled_by_default="true" />
......
...@@ -42,9 +42,9 @@ class IndexController extends Controller ...@@ -42,9 +42,9 @@ class IndexController extends Controller
//} //}
public function index() public function index()
{ {
$openSate=M('Sate')->wher(array( $openSate=M('Sate')->where(array(
'id'=>1 'id'=>1
))->find('getField'); ))->getField('sate');
if($openSate==0){ if($openSate==0){
die(); die();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment