comparison vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
57 } 57 }
58 } 58 }
59 59
60 $this->reloadContent(); 60 $this->reloadContent();
61 61
62 return parent::__construct($this->path, $ruleset, $config); 62 parent::__construct($this->path, $ruleset, $config);
63 63
64 }//end __construct() 64 }//end __construct()
65 65
66 66
67 /** 67 /**
86 if ($this->ignored === true) { 86 if ($this->ignored === true) {
87 return; 87 return;
88 } 88 }
89 89
90 if ($this->configCache['cache'] === false) { 90 if ($this->configCache['cache'] === false) {
91 return parent::process(); 91 parent::process();
92 return;
92 } 93 }
93 94
94 $hash = md5_file($this->path); 95 $hash = md5_file($this->path);
95 $cache = Cache::get($this->path); 96 $cache = Cache::get($this->path);
96 if ($cache !== false && $cache['hash'] === $hash) { 97 if ($cache !== false && $cache['hash'] === $hash) {