浏览代码

Change auth badge to lowercase, fix lint

shalvah 5 年之前
父节点
当前提交
b252f8bf7c
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      phpstan.neon
  2. 1 1
      resources/views/components/badges/auth.blade.php

+ 1 - 0
phpstan.neon

@@ -8,6 +8,7 @@ parameters:
         - '#Call to an undefined static method Illuminate\\Support\\Facades\\URL::formatRoot()#'
         - '#Cannot access offset .+ on Illuminate\\Contracts\\Foundation\\Application.#'
         - '#Call to an undefined method Illuminate\\Routing\\Route::versions().#'
+        - '#Call to an undefined method Illuminate\\Contracts\\Validation\\Validator::getRules().#'
         - '#(.*)NunoMaduro\\Collision(.*)#'
         - '#Instantiated class Whoops\\Exception\\Inspector not found\.#'
         - '#.+Dingo.+#'

+ 1 - 1
resources/views/components/badges/auth.blade.php

@@ -1,3 +1,3 @@
-@if($authenticated)@component('scribe::components.badges.base', ['colour' => "darkred", 'text' => 'REQUIRES AUTHENTICATION'])
+@if($authenticated)@component('scribe::components.badges.base', ['colour' => "darkred", 'text' => 'requires authentication'])
 @endcomponent
 @endif